| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
regular tests. (#GH9416).
|
|\
| |
| | |
DOC: link to TESTS.rst.txt testing guidelines document, tweaks
|
| | |
|
|\ \
| | |
| | | |
BUG: Don't convert inputs to `np.float64` in digitize
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This converts digitize to a pure-python function that falls back on searchsorted.
Performance doesn't really matter here anyway - if you care about performance, then you should just call searchsorted directly, rather than checking the order of the bins.
Partially fixes gh-11022
|
|\ \ \
| |/ /
|/| | |
ENH: Add density argument to histogramdd.
|
| | |
| | |
| | |
| | | |
Fixes gh-4371
|
|\ \ \
| | | |
| | | | |
MAINT: Move add_newdocs into core, since it only adds docs to those pieces
|
| | | | |
|
|\ \ \ \
| |/ / /
| | | | |
MAINT: Move pytesttester outside of np.testing, to avoid creating unnecessary import dependencies
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
unnecessary import dependencies
pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports
Relates to #11457
|
|\ \ \ \
| |/ / /
| | | | |
MAINT: Remove python-side docstrings from add_newdocs.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
From the header comment in add_newdocs, it is only intended for C modules.
This also fixes `help(np.mgrid)`, which previously only showed the help for `nd_grid`
|
|\ \ \ \
| | | | |
| | | | | |
TST: Added regression test for #11395
|
| | |_|/
| |/| | |
|
|\ \ \ \
| |_|/ /
|/| | | |
BUG: fix interpolation with inf and NaN present
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Values like NaN and inf would result in wrong interpolated values on
exactly matching sampling points. To produce the correct behavior, we
add an additional check to avoid interpolation when handling such a
point.
Closes #11439
|
|\ \ \ \
| |/ / /
|/| | | |
DOC: Clear up confusion between np.where(cond) and np.where(cond, x, y)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Eliminates all mentions of `np.where(cond)`, instead pointing the reader to np.nonzero.
Also changes some example numbers to avoid collisions, making them easier to follow.
Some minor doc improvements for np.ma.where too.
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Silence many sphinx warnings
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
BUG: Fix incorrect deprecation logic for histogram(normed=...) (master)
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #11426, which was introduced in #11323 and #11352
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
DOC: Change array lengths/entries in broadcast_arrays example to reduce confusion.
|
| | | | | |
|
|\ \ \ \ \
| | |_|_|/
| |/| | | |
TST: Show that histogramdd's normed argument is histogram's density
|
| | |_|/
| |/| |
| | | |
| | | | |
Relevant to gh-4371
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Clarify requirement that histogram bins are monotonic.
|
| |/ / /
| | | |
| | | |
| | | | |
Close gh-631
|
|\ \ \ \
| | |_|/
| |/| | |
DEP: Actually deprecate the normed argument to histogram
|
| |/ /
| | |
| | |
| | | |
Documenting this argument at such length gives it authenticity it does not deserve.
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* update docstring of interp()
* change "calculate" to "evaluate" to be consistent
* remove "values"
* make "data points" consistent
|
|\ \
| | |
| | | |
BUG,MAINT: Ensure masked elements can be tested against nan and inf.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This brought to light two bugs in tests, which are fixed here, viz.,
that a sample ndarray subclass that tested propagation of an added
parameter was incomplete, in that in propagating the parameter in
__array_wrap__ it assumed it was there on self, but that assumption
could be broken when a view of self was taken (as is done by
x[~flagged] in the test routine), since there was no
__array_finalize__ defined.
The other subclass bug counted, incorrectly, on only needing to provide
one type of comparison, the __lt__ being explicitly tested. But flags
are compared with __eq__ and those flags will have the same subclass.
|
|\ \ \
| | | |
| | | | |
DOC: Fix doctest formatting in `rot90()` examples
|
| | | | |
|
|/ / / |
|
| | |
| | |
| | |
| | | |
Fixes #11028
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
np.ogrid was not tested anyway, so this was not caught.
|
| |\ \ \
| | | | |
| | | | | |
ENH: Add (put|take)_along_axis
|
| | |/ /
| | | |
| | | |
| | | | |
This is the reduced version that does not allow any insertion of extra dimensions
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* added function commonpts1d
* Update arraysetops.py
* Update arraysetops.py
* modified intersect1d to return common indices
Proposed this idea in previous pull request (https://github.com/numpy/numpy/pull/10683) and made suggested changes for implementing this idea to have relevant common indices that correspond to the values in the intersection of the two arrays.
* update intersect1d with suggested changes
* implemented return_indices options for intersect1d
I've tested out the above code and for the ~10 different test sets I've tried it's worked thus far. It's probably not the cleanest implementation but it works and is vectorized.
* cleaned up structure for intersect1d
* fixed copy-paste error, added second test, changed a conditional
* Testing return_indices in intersect1d
* formatting
* created separate test function for intersect1d indices, added spaces after commas
* fixed up example and some style
* fixed style
* style change
* removed one example
* removed extra space
* added version number for return_indices
* added 'return_indices' keyword for np.intersect1d
* fixed formatting
* updated return_indices entry
* fixed some typos and style
* added bit about first instance of a value being used
* STY: Fix comment formats
* DOC: missing space
* DOC: correct parameter names in docstring
* made suggested changes
* fixed a mistake from previous update
also added documentation for comm1, comm2 to match doc from np.unique
* added in tests for 2d inputs
* STY: Add missing spaces around commas
* TST: Correct array to actually be unique
* STY: Spaces at beginning of comments
|
| | |
| | |
| | |
| | | |
This makes it a little easier to tell the difference between the prepend and append functions
|
| | |
| | |
| | |
| | | |
This makes `_slice_first` almost a factor of two faster
|
| | | |
|
| |\ \
| | | |
| | | | |
Move remaining Matrix tests to matrixlib
|