summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* allow non-strictly increasing binsBrandon Carter2017-09-241-1/+1
|
* minor change to the logicBrandon Carter2017-09-241-1/+1
|
* BUG: fixes unsigned bins monotonicity check, see #9222Brandon Carter2017-09-241-1/+1
|
* TST: add test for unsigned bins monotonicity check, see #9222Brandon Carter2017-09-241-0/+8
|
* Merge pull request #9742 from charris/backport-pad-fixesCharles Harris2017-09-222-0/+19
|\ | | | | BUG: Fix np.pad for CVE-2017-12852
| * BUG: fix padding an empty array in reflect mode.Iryna Shcherbina2017-09-222-3/+15
| | | | | | | | Check that axes with non-zero padding are non-empty.
| * BUG: fix infinite loop when creating np.pad on an empty arrayIryna Shcherbina2017-09-222-0/+7
| |
* | Merge pull request #9736 from eric-wieser/gradient-fixCharles Harris2017-09-212-8/+20
|\ \ | |/ |/| BUG: various fixes to np.gradient
| * MAINT: Use clearer variableEric Wieser2017-07-131-1/+1
| |
| * BUG: Use np.ndim not asarray, to allow duck-typesEric Wieser2017-07-131-7/+6
| |
| * BUG: Only allow 1d distance arraysEric Wieser2017-07-132-1/+7
| | | | | | | | | | | | 2d arrays would work, but in unpredictable and undocumented ways. This at least makes gh-9401 give a better error message.
| * BUG: Allow 0d arrays instead of scalars in gradientEric Wieser2017-07-132-8/+15
| | | | | | | | This fixes gh-8292
* | Merge pull request #9390 from eric-wieser/poly1d-fixes-fixes-fixes-fixesCharles Harris2017-07-112-11/+17
|\ \ | | | | | | BUG: Return the coefficients array directly
| * | BUG: Return the coefficients array directlyEric Wieser2017-07-082-11/+17
| | | | | | | | | | | | | | | | | | | | | Turns out that this was relied upon downstream We also add a setter for coeffs, so that augmented assignment does not both change state and raise an exception suggesting state could not be changed.
* | | DOC: BLD: fix lots of Sphinx warnings/errors.Ralf Gommers2017-06-102-2/+2
| | |
* | | BUG: have as_strided() keep custom dtypesAntoine Pitrou2017-05-242-4/+11
| | | | | | | | | | | | Fixes issue #9161
* | | DEP: Deprecate incorrect behavior of expand_dims.Charles Harris2017-05-172-4/+40
| |/ |/| | | | | | | | | | | | | | | | | | | Expand_dims works as documented when the index of the inserted NewAxis in the resulting array satisfies -a.ndim - 1 <= index <= a.ndim. However, when index > a.ndim index is replaced by a.ndim and, when index < -a.ndim - 1, it is replaced by index + a.ndim + 1, which may be negative and results in incorrect placement. The latter two cases are now deprecated. Closes #9100.
* | Merge pull request #9070 from ahaldane/silence_join_byEric Wieser2017-05-102-6/+49
|\ \ | | | | | | BUG: Preserve field order in join_by, avoids FutureWarning
| * | BUG: Preserve field order in join_by, avoids FutureWarningAllan Haldane2017-05-092-6/+49
| | | | | | | | | | | | Fixes #8940
* | | ENH: Spelling fixesVille Skyttä2017-05-098-9/+9
|/ /
* | DOC: fix docstring for np.isinStephan Hoyer2017-05-071-0/+1
| |
* | ENH: add divmod support to NDArrayOperatorsMixinStephan Hoyer2017-05-072-40/+60
| |
* | BUG: np.ma.mr_['r',...] does not return masked arraysEric Wieser2017-05-051-3/+3
| |
* | BUG: np.r_['r',...] crashes on scalarsEric Wieser2017-05-052-1/+6
| |
* | BUG: np.r_['rc'] is treated as np.r_['r'], not an errorEric Wieser2017-05-052-1/+3
| |
* | TST: Add some tests for passing r and c to r_Eric Wieser2017-05-051-0/+13
| |
* | MAINT: Use enumerate instead of range(len(...))Eric Wieser2017-05-051-15/+14
| |
* | BUG: Remove mutable state from AxisConcatenatorEric Wieser2017-05-052-29/+37
| | | | | | | | Fixes #8815
* | MAINT: Remove code duplicated from np.r_ in np.ma.mr_Eric Wieser2017-05-051-1/+3
| | | | | | | | | | Also adds a test for the disabled-by-design behaviour - this would return raw matrices, not masked arrays
* | ENH: Add isin, genereralizing in1d to ND arrays (#8423)B R S Recht2017-05-053-7/+145
| | | | | | | | | | | | This fixes gh-8331 Also update the docs for arraysetops to remove the outdated "1D" from the description, which was already incorrect for np.unique.
* | ENH: add __pos__ to NDArrayOperatorsMixinStephan Hoyer2017-04-302-3/+4
| |
* | Merge pull request #8885 from juliantaylor/tracemallocCharles Harris2017-04-301-1/+2
|\ \ | | | | | | ENH: add support for python3.6 memory tracing
| * | ENH: add support for python3.6 memory tracingJulian Taylor2017-04-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.6 added a private API for tracing arbitrary memory allocations so the tracemalloc module [0] can be used with numpy. closes gh-4663 [0] https://docs.python.org/3/library/tracemalloc.html
* | | Merge pull request #9013 from eric-wieser/fix-nanfuncsCharles Harris2017-04-282-15/+31
|\ \ \ | |/ / |/| | BUG: Fix np.lib.nanfunctions on object arrays
| * | BUG: Fix incorrect behavior of nanfunctions on object arraysEric Wieser2017-04-292-8/+28
| | | | | | | | | | | | Fixes gh-8974 and gh-9008
| * | MAINT: Remove weird create-a-copy danceEric Wieser2017-04-271-6/+2
| | |
* | | Merge pull request #8996 from eric-wieser/fix-ufunclikeMarten van Kerkwijk2017-04-272-27/+84
|\ \ \ | | | | | | | | BUG/DEP: Make ufunclike functions more ufunc-like
| * | | BUG: Return scalars from ufunclike objectsEric Wieser2017-04-262-17/+35
| | | | | | | | | | | | | | | | | | | | | | | | No need to reinvent the wheel here - the ufunc machinery will handle the out arguments Fixes #8993
| * | | DEP: Deprecate calling the `out` argument `y`Eric Wieser2017-04-262-20/+59
| | | | | | | | | | | | | | | | Fixes gh-8995
* | | | Merge pull request #8988 from eric-wieser/document-2522Charles Harris2017-04-271-0/+17
|\ \ \ \ | | | | | | | | | | DOC: Explain the behavior of diff on unsigned types
| * | | | DOC: Explain the behavior of diff on unsigned typesEric Wieser2017-04-251-0/+17
| |/ / / | | | | | | | | | | | | Fixes #2522
* | | | MAINT: Set the __name__ of generated methodsEric Wieser2017-04-271-30/+37
| |/ / |/| | | | | | | | Barely useful, but means that the function name is helpful if printed.
* | | ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarrayStephan Hoyer2017-04-272-40/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarray Per our discussion in https://github.com/numpy/numpy/pull/8247#discussion_r112825050 * add back in accidentally dropped __repr__
* | | BUG: Fix ArrayLike(NDArrayOperatorsMixin) operations with object()Stephan Hoyer2017-04-272-12/+31
| | |
* | | ENH: Add NDArrayOperatorsMixin mixin class.Stephan Hoyer2017-04-273-0/+358
|/ / | | | | | | | | | | This mixin class provides an easy way to implement arithmetic operators that defer to __array_ufunc__ like numpy.ndarray in non-ndarray subclasses.
* | DOC: Correct shape of edges in np.histogram2d (#8980)Importance of Being Ernest2017-04-231-2/+2
| | | | | | | | | | If nx and ny are the bin counts (as stated in the bins argument's text), then the return H has indeed shape (nx, ny). However, the returned xedges and yedges will then have shape (nx+1,) and (ny+1,) respectively. Fixes #8979
* | Merge pull request #6632 from mcmtroffaes/feature/fromfile-ioopen-bugCharles Harris2017-04-141-2/+3
|\ \ | | | | | | TST/BUG: fromfile - fix test and expose bug with io class argument
| * | BUG: npy_PyFile_Dup2 - fix PyFile_AsFile failing on io style classesMatthias C. M. Troffaes2016-09-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug only manifests itself in the Python 2 code path. Falls back to the current Python 3 code path also on Python 2 because the Python 3 code path is written precisely to handle this situation. Also fix tests, and clarify in the documentation that the current implementation requires the stream to be seekable.
* | | Merge pull request #8643 from eric-wieser/fix-8642Eric Wieser2017-04-112-1/+18
|\ \ \ | | | | | | | | BUG: Fix double-wrapping of object scalars
| * | | BUG: Fix double-wrapping of object scalarsEric Wieser2017-04-062-1/+18
| | | | | | | | | | | | | | | | Fixes #8642