| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \
| | | | |
| | | | | |
ENH: np.angle: Remove unnecessary multiplication, and allow subclasses to pass through
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
BUG: fix np.load() of empty .npz file
|
| | |/ /
| |/| |
| | | |
| | | | |
Fixes #9989
|
|\ \ \ \
| |_|/ /
|/| | | |
BUG: don't silence __array_wrap__ errors in ufunc.reduce
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
in ufunc.__call__
Previously they were silenced
|
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: Added regression test for #11395
|
| | |/ / /
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
BUG: Fix incorrect deprecation logic for histogram(normed=...) (master)
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #11426, which was introduced in #11323 and #11352
|
|\ \ \ \ \
| |/ / / /
|/| / / /
| |/ / / |
TST: Show that histogramdd's normed argument is histogram's density
|
| | |/
| |/|
| | |
| | | |
Relevant to gh-4371
|
|/ /
| |
| |
| | |
Documenting this argument at such length gives it authenticity it does not deserve.
|
|/ |
|
|\
| |
| | |
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.
|
| |
| |
| |
| | |
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
|
|\
| |
| | |
Move remaining Matrix tests to matrixlib
|
| | |
|
|\ \
| | |
| | | |
BUG: np.histogramdd loses precision on its inputs, leading to incorrect results
|
| | |
| | |
| | |
| | | |
This is due to gh-11022.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously a fuzzy rounded comparison was used for the rightmost bin of histogramdd.
It's not clear why this was done, and it resulted in surprising behavior.
This also removes the restriction that bin edges must be floats, and allows integer arrays to be passed (and returned)
Fixes gh-10864
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The old way of creating the padded array padded with wrong values for
large integers because the new prepended / appended array was implicitly
created with dtype float64:
>>> (np.zeros(1) + (2 ** 64 - 1)).astype(np.uint64)
array([0], np.uint64)
>>> (np.zeros(1) + (2 ** 63 - 1)).astype(np.int64)
array([-9223372036854775808])
|
|/
|
|
|
|
|
|
|
| |
User- and non-user-facing typos.
Some source typos fixes as well.
Found via `codespell`.
|
|\
| |
| | |
ENH: Quantile
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fixed doc typo
* fixed lib typos
* fixed lapack_lite typos
* Revert "fixed lapack_lite typos"
This reverts commit e7dada860cb73af190234402508ab79965ecd079.
|
|\ \
| | |
| | | |
TST: Extract a helper function to test for reference cycles
|
| | |
| | |
| | |
| | |
| | |
| | | |
This also means we can now test that our test is actually able to detect the type of failure we expect
Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
|
| | |
| | |
| | |
| | | |
Closes #10847
|
| |/
|/|
| |
| | |
Fixes gh-10780
|
|\ \
| | |
| | | |
BUG: fix savetxt, loadtxt for '+-' in complex
|
| | | |
|
| |/
|/| |
|
|/
|
| |
Now falls back on sturges estimator when the IQR is zero
|
| |
|
| |
|
| |
|