summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
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
|
* Merge pull request #9736 from eric-wieser/gradient-fixCharles Harris2017-09-211-7/+12
|\ | | | | 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-131-1/+3
| | | | | | | | | | | | 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-131-7/+11
| | | | | | | | This fixes gh-8292
* | DOC: BLD: fix lots of Sphinx warnings/errors.Ralf Gommers2017-06-101-1/+1
|/
* ENH: Spelling fixesVille Skyttä2017-05-091-1/+1
|
* DOC: Explain the behavior of diff on unsigned typesEric Wieser2017-04-251-0/+17
| | | | Fixes #2522
* DOC: Fix typos in percentile (#8900)Baurzhan Muftakhidinov2017-04-061-2/+2
|
* MAINT: Rename _validate_axis, and document itEric Wieser2017-03-281-2/+2
|
* MAINT: Use _validate_axis inside _ureduceEric Wieser2017-03-281-17/+14
| | | | This fixes an omission where duplicate axes would only be detected when positive
* MAINT: Reuse _validate_axis in np.gradientEric Wieser2017-03-281-13/+2
| | | | | | | This also means that its axis argument invokes operator.index like others do. _validate_axis currently accepts lists of axes, which is a bug.
* DOC: Include np. prefix in meshgrid examplesEgor Klenin2017-03-211-5/+5
| | | | Add "np." prefix to meshgrid calls for consistency
* BUG: Fix np.average with object array weightsDuke Vijitbenjaronk2017-03-071-1/+1
| | | | Fixes #8696
* DOC: Fixed small mistakes in numpy.copy documentation.Michael Seifert2017-02-261-68/+68
| | | | | | | Including missing backticks around link, included a missing colon in example and removed excessive indentation before "doctest skip directive". [skip ci]
* Merge pull request #8685 from eric-wieser/shape-to-ndimJulian Taylor2017-02-251-4/+4
|\ | | | | ENH: add dtype.ndim
| * MAINT: replace len(x.shape) with x.ndimEric Wieser2017-02-241-4/+4
| |
* | Merge pull request #8688 from madphysicist/patch-1Charles Harris2017-02-241-1/+8
|\ \ | | | | | | DOC: Added note to np.diff
| * | DOC: Added note to np.diffJoseph Fox-Rabinovitz2017-02-241-1/+8
| |/ | | | | | | Also noted that type is preserved. [ci skip]
* | MAINT: Fix use of Python 2.6 deprecated escape sequences.Charles Harris2017-02-241-2/+2
|/ | | | Closes #8687.
* ENH: gradient support for unevenly spaced dataAlessandro Pietro Bardelli2017-02-221-84/+235
| | | | | | | | | | | | | This somehow reverts #7618 and solves #6847, #7548 by implementing support for unevenly spaced data. Now the behaviour is similar to that of Matlab/Octave function. As argument it can take: 1. A single scalar to specify a sample distance for all dimensions. 2. N scalars to specify a constant sample distance for each dimension. i.e. `dx`, `dy`, `dz`, ... 3. N arrays to specify the coordinates of the values along each dimension of F. The length of the array must match the size of the corresponding dimension 4. Any combination of N scalars/arrays with the meaning of 2. and 3.
* MAINT: Use normalize_axis_index in all python axis checkingEric Wieser2017-02-201-9/+4
| | | | | | | As a result, some exceptions change from ValueError to IndexError This also changes the exception types raised in places where normalize_axis_index is not quite appropriate
* Merge pull request #8617 from eric-wieser/fix-8561Marten van Kerkwijk2017-02-141-10/+7
|\ | | | | BUG: Copy meshgrid after broadcasting
| * BUG: Copy meshgrid after broadcasting, fixing #8561Eric Wieser2017-02-131-10/+7
| | | | | | | | Also, remove some unused variables
* | DOC: Indicate that axis param to average may be a tuple of ints.Alex Rothberg2017-02-121-3/+10
|/
* Revert "DOC: gradient uses 1st order central difference in the interior"Alessandro Pietro Bardelli2017-02-121-3/+3
|
* DOC: gradient uses 1st order central difference in the interior (#8605)drabach2017-02-111-3/+3
| | | The gradient function uses 1st order central difference in the interior, not second order.
* MAINT: typo in histogram docstringdrlvk2017-01-281-1/+1
| | | "it's arguments" should be "its arguments"
* change int check to bool check for rowvar in covBrandon Carter2016-12-191-2/+2
|
* change rowvar param to boolean from int in corrcoefBrandon Carter2016-12-191-3/+3
|
* BUG: handle unmasked NaN in ma.median like normal medianJulian Taylor2016-12-121-17/+1
| | | | | | | | | | | This requires to base masked median on sort(endwith=False) as we need to distinguish Inf and NaN. Using Inf as filler element of the sort does not work as then the mask is not guaranteed to be at the end. Closes gh-8340 Also fixed 1d ma.median not handling np.inf correctly, the nd variant was ok.
* MAINT: let average preserve subclass information.Marten van Kerkwijk2016-11-191-13/+1
| | | | | | This behaviour matches that for most other numpy functions (such as np.mean). It was initially slated for 1.12, but replaced by a FutureWarning. Hence, this is for 1.13.
* Merge pull request #8194 from alvarosg/scalar-piecewiseseberg2016-11-091-5/+12
|\ | | | | BUG: np.piecewise not working for scalars
| * BUG: np.piecewise not working for scalarsalvarosg2016-10-261-5/+12
| |
* | Merge pull request #5302 from idfah/masterRalf Gommers2016-11-061-11/+7
|\ \ | |/ |/| Fixed meshgrid to return arrays with same dtype as arguments.
| * Fix to meshgrid allows passing array sub-classesElliott Forney2016-10-101-1/+1
| |
| * Fixed meshgrid to return arrays with same dtype as arguments.Elliott M Forney2014-11-201-11/+7
| |
* | ENH: add signature argument to vectorize for vectorizing like generalized ↵Stephan Hoyer2016-10-171-35/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ufuncs (#8054) * ENH: add signature argument to vectorize for generalized ufuncs Example usage (from the docstring): Vectorized convolution: >>> convolve = np.vectorize(np.convolve, signature='(n),(m)->(k)') >>> convolve(np.eye(4), [1, 2, 1]) array([[ 1., 2., 1., 0., 0., 0.], [ 0., 1., 2., 1., 0., 0.], [ 0., 0., 1., 2., 1., 0.], [ 0., 0., 0., 1., 2., 1.]]) * Use str.format rather than % * Fix spelling typo * BUG: fix np.vectorize for size 0 inputs * DOC: add vectorize to 1.12.0 release notes * [ci-skip] Remove outdated comment
* | DOC: change version references from x.y to x.y.zPierre de Buyl2016-09-071-3/+3
| |
* | DOC: change Numpy to NumPy in dosctrings and commentsPierre de Buyl2016-09-061-3/+3
| | | | | | | | The strings in error messages were left untouched
* | ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-021-15/+15
| |
* | Spelling and grammar fix.Daniel Ching2016-08-041-2/+2
| | | | | | Histogram documentation was missing an 'a' in the phrase 'all around performance'.
* | DOC: Misplaced parens in formulaJoseph Fox-Rabinovitz2016-07-061-1/+1
| |
* | "lambda" is not allowed to use as keyword arguments because it is a reserved ↵Toshihiro Kamishima2016-07-041-2/+2
| | | | | | | | word.
* | Merge pull request #7347 from erensezener/generalized_rot90Charles Harris2016-06-221-3/+89
|\ \ | | | | | | ENH Generalized rot90
| * | ENH: generalize rot90 with axes kwarg, move to function_base.py, and add testsDenis Alevi2016-03-201-3/+89
| | |
* | | MAINT: FutureWarning for changes to np.average subclass handlingAllan Haldane2016-06-141-1/+13
| | | | | | | | | | | | Fixes #7403