summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #16987 from scimax/masterCharles Harris2021-05-191-14/+53
|\ \ | | | | | | ENH: Phase unwrapping generalized to arbitrary interval size
| * | BUG: Fix missing "np." in docstring examples.Charles Harris2021-05-191-4/+4
| | |
| * | STY: Break long linesCharles Harris2021-05-191-9/+14
| | |
| * | Update numpy/lib/function_base.pyEric Wieser2021-02-161-1/+1
| | |
| * | Update numpy/lib/function_base.pyEric Wieser2021-02-161-0/+3
| | |
| * | Cleanup whitespaceEric Wieser2020-09-141-1/+1
| | |
| * | Add missing newlineEric Wieser2020-09-141-0/+1
| | |
| * | Cleanup whitespaceEric Wieser2020-09-141-1/+0
| | |
| * | Apply suggestions from code review Eric Wieser2020-09-141-3/+2
| | | | | | | | | Cleanup whitespace
| * | fix CI fails by blank linesMax Kellermeier2020-09-111-0/+3
| | |
| * | Update numpy/lib/function_base.pyEric Wieser2020-09-021-1/+1
| | |
| * | Comment in docs on discontinuity in unwrapMax Kellermeier2020-08-231-2/+3
| | |
| * | Apply suggestions from code reviewscimax2020-08-231-9/+10
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Minor corrections in unwrapping docstringsMax Kellermeier2020-08-231-3/+3
| | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Code cleanupscimax2020-08-211-5/+4
| | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | Updated incorrect argument in tests. boundary correction for int and float.Max Kellermeier2020-08-211-1/+3
| | | | | | | | | | | | 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-021-5/+0
| | |
| * | 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>
* | | BUG: Prevent nan being used in percentile (gh-18831)Kevin Sheppard2021-04-221-3/+2
| | | | | | | | | | | | | | | Reject NaN as a percentile/quantile value. Previously NaNs could pass the range check `0 <= q <= 1`. closes #18830
* | | 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
| | | |
* | | | 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
* | | | ENH: Use new argument parsing for array creation functionsSebastian Berg2021-03-181-5/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | API: make piecewise subclass safe using use zeros_like.Marten van Kerkwijk2021-02-221-2/+2
| | | | | | | | | | | | | | | | | | Subclass input of piecewise was already respected, so it seems more logical to ensure the output is the same subclass (possibly just an oversight that it was not done before).
* | | Specified the return type for trapz to include the possibility of ndarray ↵zolboo10242021-02-051-4/+7
| | | | | | | | | | | | being returned
* | | DOC: Avoid using "set of" when talking about an ordered list.Antony Lee2020-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... or when the input isn't/cannot be a set. I left a few usages, e.g. in random sampling, where "set" is reasonable as informal description of an array as the order doesn't matter; however, for e.g. np.gradient the order of the returned list is clearly important, so "set" is wrong. Also some other minor doc edits noticed during the grepping: using `shape` instead of `form` in `cov` is consistent with most other places; the wording in `Polynomial.trim` now matches other methods on the same class.
* | | Make it clearer that np.interp input must be monotonically increasingDavid Stansby2020-11-271-3/+3
| | |
* | | ENH: add dtype option to cov and corrcoef (#17456)Lisa Schwetlick2020-10-091-9/+24
| | | | | | | | | | | | | | | | | | | | | Adds a keyword-only dtype parameter to correlate and coerrcoef to allow user to specify the dtype of the output. Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | DOC: Fix syntax errors in docstrings for versionchanged, versionadded (#17338)Bradley Dice2020-09-171-1/+1
| | | | | | | | | * DOC: Fix typos in versionchanged.
* | | DOC: reformat meshgrid see also linksRoss Barnowski2020-09-091-4/+3
| | |
* | | Fix docstring cross-referencingAlbert Villanova del Moral2020-09-041-2/+2
| | |
* | | ENH: Make the window functions exactly symmetricEric Wieser2020-08-311-8/+8
| | | | | | | | | | | | | | | | | | This relies on the fact that `cos` is exactly symmetric around zero, but not around the floating-point approximation of `pi`. Closes gh-17169.
* | | BUG: revert trim_zeros changes from gh-16911mattip2020-08-271-56/+0
| | |
* | | DOC: Fix spacing in vectorize docKevin Sheppard2020-08-201-2/+2
| | | | | | | | | | | | Fix spacing that produced incorrect rendering
* | | Merge pull request #17058 from BvB93/trim_zeros2Matti Picus2020-08-191-8/+14
|\ \ \ | | | | | | | | MAINT: Revert boolean casting back to elementwise comparisons in `trim_zeros`
| * | | MAINT: Issue the DeprecationWarning after creating the to-be returned arrayBas van Beek2020-08-131-4/+5
| | | |
| * | | MAINT: Catching warnings is expensive; remove itBas van Beek2020-08-111-5/+6
| | | |
| * | | ENH: Use elementwise comparisons with 0 rather than boolean castingBas van Beek2020-08-111-2/+6
| | | |
* | | | API, BUG: Raise error on complex input to i0 (#17062)peterbell102020-08-121-13/+10
|/ / / | | | | | | | | | * BUG, API: Raise error on complex input to np.i0