summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | Update numpy/lib/tests/test_function_base.pyscimax2020-08-201-1/+1
| | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | Integer input returning integer outputMax Kellermeier2020-08-201-5/+13
| |/ / | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Renamed new argument for unwraping. Extended release noteMax Kellermeier2020-08-201-16/+16
| | |
| * | Minor code clean upscimax2020-08-201-2/+4
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Rolling back to only. Improved documentationMax Kellermeier2020-08-201-26/+5
| | |
| * | shorter slicescimax2020-08-171-1/+1
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Hybrid solution including interval boundaries, and keeping backward ↵Max Kellermeier2020-08-031-7/+30
| | | | | | | | | | | | compatibility without boundary
| * | dispatcher fixedMax Kellermeier2020-08-031-1/+1
| | |
| * | Tests added according to #14877, obsolete comments removed.Max Kellermeier2020-08-022-6/+17
| | |
| * | Update numpy/lib/function_base.py scimax2020-08-021-1/+1
| | | | | | | | | | | | | | | unwrap function signature compatible Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Phase unwrapping generalizedscimax2020-08-011-16/+35
| | | | | | | | | Phase unwrapping generalized to arbitrary interval size, such as 360 for phase in degree instead of radian. Also integer unwrapping is supported, but the return values are floats.
* | | DOC: Improve trapz docstring (#19041)Bhargav v2021-05-191-4/+24
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | MAINT: Replace `_ArrayND` with `NDArray`Bas van Beek2021-05-122-20/+20
| | |
* | | BUG: Fixed a broken `NumpyVersion.__repr__` methodBas van Beek2021-05-111-1/+1
| | |
* | | ENH: Add annotation for `np.lib.NumpyVersion`Bas van Beek2021-05-111-15/+15
| | |
* | | DOC: add note and examples to `isrealobj` docstringYashasvi Misra2021-05-101-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify that `isrealobj` returns True for non-array input rather than raise an exception, which may be surprising. Closes gh-12652 Co-authored-by: Mukulikaa <60316606+Mukulikaa@users.noreply.github.com>
* | | Merge pull request #18959 from marysia/histogram2d-documentationMatti Picus2021-05-091-1/+3
|\ \ \ | | | | | | | | DOC: improve numpy.histogram2d() documentation
| * | | DOC: improve numpy.histogram2d() documentationMarysia Winkels2021-05-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Clarify necessity of H.T in code example. Resolves issue #18929 Co-authored-by: Laura Kopf <60775505+lkopf@users.noreply.github.com>>
* | | | ENH: Add annotations for `np.lib.utils`Bas van Beek2021-05-081-10/+90
| | | |
* | | | DOC: Clarify isreal docstring for string/obj arrays (#18843)Amrit Krishnan2021-05-061-1/+25
|/ / / | | | | | | | | | | | | Add Notes and Examples about behavior of isreal for string and object arrays Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | MAINT: Remove unsafe unions from `np.lib.ufunclike`Bas van Beek2021-04-301-6/+22
| | |
* | | MAINT: Remove unsafe unions from `np.lib.index_tricks`Bas van Beek2021-04-301-4/+19
| | |
* | | DOC: Typo fixBas van Beek2021-04-271-1/+1
| | | | | | | | | | | | Co-Authored-By: h-vetinari <h.vetinari@gmx.com>
* | | MAINT: Import `np.lib`-based functions from aforementioned namespaceBas van Beek2021-04-262-3/+18
| | |
* | | ENH: Add improved placeholder annotations for `np.lib`Bas van Beek2021-04-2617-158/+667
| | |
* | | ENH: add new function `_opt_info()` to utils provides the optimization info ↵Sayed Adel2021-04-221-9/+35
| | | | | | | | | | | | of NumPy build
* | | BUG: Prevent nan being used in percentile (gh-18831)Kevin Sheppard2021-04-222-3/+24
| | | | | | | | | | | | | | | Reject NaN as a percentile/quantile value. Previously NaNs could pass the range check `0 <= q <= 1`. closes #18830
* | | DOC: Add blank line before section.Matthias Bussonnier2021-04-161-0/+1
| | | | | | | | | | | | Otherwise Numpydoc does not see the section.
* | | Fixes small typos in the genfromtext docstringMatt Hall2021-04-161-5/+5
| | | | | | | | | | | | | | | | | | - `comments`: Added a full stop after 'discarded'. - `names`: changed 'proceeded' to 'preceeded'. - `excludelist`: inserted 'with' because it sounds odd without it; the example makes it clear. - `replace_space`: should strictly be "variable names" or "variables' names". The latter seems fussy so I chose the former.
* | | Merge pull request #18708 from DCtheTall/meshgrid-testCharles Harris2021-04-051-0/+21
|\ \ \ | | | | | | | | TST: add tests for using np.meshgrid for higher dimensional grids.
| * | | review commentsDCtheTall2021-04-051-6/+13
| | | |
| * | | rm commentDCtheTall2021-03-311-1/+0
| | | |
| * | | Add tests np.meshgrid for higher dimensional grids.DCtheTall2021-03-311-0/+15
| | | |
* | | | Merge pull request #18515 from terfilip/select-dtype-err-msg-18430Charles Harris2021-03-261-2/+13
|\ \ \ \ | | | | | | | | | | MAINT: Improve error message when common type not found.
| * | | | MAINT: Adding exception chaining and switching to fstringFilip Ter2021-03-241-5/+4
| | | | |
| * | | | ENH: A more helpful error message, when types don't match type of default kwargFilip Ter2021-02-281-2/+14
| | | | |
* | | | | ENH: Improve performance of `np.save` for small arrays (gh-18657)Ohad Ravid2021-03-241-6/+10
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: Remove call to `_filter_header` from `_write_array_header` Improve performance of `np.save` by removing the call when writing the header, as it is known to be done in Python 3. * ENH: Only call `_filter_header` from `_read_array_header` for old vers Improve performance of `np.load` for arrays with version >= (3,0) by removing the call, as it is known to be done in Python 3. * ENH: Use a set of keys when checking `read_array` Improve performance of `np.load`. * DOC: Improve performance of `np.{save,load}` for small arrays
* | | | Merge pull request #18652 from timhoffm/doc-plotRalf Gommers2021-03-211-1/+2
|\ \ \ \ | | | | | | | | | | DOC: Update some plotting code to current Matplotlib idioms
| * | | | DOC: Update some plotting code to current Matplotlib idiomsTim Hoffmann2021-03-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 3D Axes are created via add_subplot(projection='3d') - There is now a `stairs()` function that's specifically designed for showing histogram curves - Labels should be passed as keyword arguments to the plot functions instead of to `legend()`, which reduces the risk of mixing them up. - ensure equal axis scaling in the meshgrid example
* | | | | Merge pull request #18642 from seberg/splitup-faster-argparsing-optimize-asarrayMatti Picus2021-03-212-6/+5
|\ \ \ \ \ | | | | | | | | | | | | ENH: Use new argument parsing for array creation functions
| * | | | | ENH: Use new argument parsing for array creation functionsSebastian Berg2021-03-182-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The array creation functions have the most to gain: 1. np.asarray is 4 times faster and commonly used. 2. Other functions are wrapped using __array_function__ in Python making it more difficult This commit (unfortunatly) has to do a few things: * Modify __array_function__ C-side dispatching to accomodate the fastcall argument convention. * Move asarray, etc. to C after removing all "fast paths" from np.array (simplifying the code) * Fixup imports, since asarray was imported directly in a few places * Replace some places where `np.array` was probably used for speed instead of np.asarray or similar. (or by accident in 1 or 2 places)
* | | | | | MAINT: use super() as described by PEP 3135Mike Taves2021-03-192-3/+3
| |/ / / / |/| | | |
* | | | | MAINT: Added Chain exceptions where appropriate (#18400)Abhay Raghuvanshi2021-03-181-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added chain exception in _pocketfft.py * Added chain exception in format.py * Added chain exception in make_lite.py * Added chain exception in mrecords.py * added from e for exceptions * Minor update for _read_array_header exception msg * Removed \n from excp msg and e from msg format. Co-authored-by: Eric Wieser <wieser.eric@gmail.com> * Update numpy/linalg/lapack_lite/make_lite.py Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
* | | | MAINT: Added Chain exceptions where appropriate (#18394)Abhay Raghuvanshi2021-03-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added chain exception in _bits_of func * Added chain exception * Added chain exception in unixccompiler.py * Added chain exception in config.py * Added chain exception in fcompiler __init__.py * Added chain exception in compaq.py * Added chain exception in format.py * Updated raise chain exception * STY: Break long line. Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
* | | | MAINT: Re-export a number of sub-modulesBas van Beek2021-03-151-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensures that type checkers will allow the likes of: >>> import numpy as np >>> out = np.lib.stride_tricks.sliding_window_view(...)
* | | | Merge pull request #18596 from mainak-debnath/maintRalf Gommers2021-03-131-8/+18
|\ \ \ \ | | | | | | | | | | MAINT: Chain exceptions in index_tricks.py and mrecords.py
| * | | | added exception chaining in index_tricks.py and mrecords.pyMainak Debnath2021-03-111-8/+18
| | | | |
* | | | | Merge pull request #18583 from timhoffm/doc-flipRalf Gommers2021-03-131-9/+13
|\ \ \ \ \ | | | | | | | | | | | | DOC: Clarify docs for fliplr() / flipud()
| * | | | | DOC: Clarify docs for fliplr() / flipud()Tim Hoffmann2021-03-091-9/+13
| |/ / / /
* | | | | ENH: Add annotations for `np.lib.arrayterator`Bas van Beek2021-03-122-1/+57
|/ / / /