| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
DEP: Deprecate non-tuple nd-indices
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Currently, arr[[None, 0]] and arr[(None, 0)] mean the same thing, yet arr[[0, 0]] and arr[(0, 0)] mean different things. This makes it super hard to make a subclass or duck array that behaves consistently with ndarray.
By deprecating this feature, we force downstream library code to stop using it, which in turn makes that library code use approaches that are easier to implement in subclasses and duck types.
|
|\ \ \
| | | |
| | | | |
DOC: cleanup NEP creation
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: add sanity-checks to be run at import time
|
|/ / / /
| | | |
| | | |
| | | | |
This checks for potential BLAS issues, which are useful to catch early.
|
|\ \ \ \
| | | | |
| | | | | |
TST: linalg: add regression test for gh-8577
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Add regression test that checks for certain bugs where results from sdot
change if certain libraries are imported first.
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: remove redundant code in MaskedArray.__new__
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
BUG: fix datetime.timedelta->timedelta64 unit detection logic
|
| | | | |
| | | | |
| | | | | |
Conversion from timedelta was only reliably broken for integer numbers of weeks (including 0)
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Fixes #11021
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: Skip ctypes dependent test that fails on Python < 2.7.7.
|
| | |_|/ /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: windows builds now properly support floating error states
|
| |/ / / / |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
datetime.datetime is a subclass of datetime.date, so it needs to be checked against first
Fixes #11106
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
BENCH: Add basic benchmarks for numpy.pad
|
| |/ / / |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
The vectorize version of this test was failing consistently on several of the Appveyor builds, ever since a recent pytest upgrade.
Our theory is that by random chance, things changed so that during the call to vectorize(op).__call__, python started running a garbage collection, which perturbed the refcounts that this test is checking. (Specifically this test is doing a weird thing and checking that the refcount of the object 1 doesn't decrease, and it's very plausible that some random bit of garbage was holding a reference to this object.)
Disabling the gc during the test makes this kind of refcount assertion more reliable, and seems to have fixed the appveyor builds, so I guess it's good.
|
|\ \ \
| | | |
| | | | |
DOC: Clarify tofile requirements
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Clarify that tofile requires a file that can be directly written to
and not a general file-like object
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Extract a helper function for prepending and appending
|
| | | | |
| | | | |
| | | | |
| | | | | |
This makes it a little easier to tell the difference between the prepend and append functions
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: turn some build warnings into errors
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| | |/ / /
| |/| | | |
MAINT: np.pad: Add helper functions for producing slices along axes
|
| | | | |
| | | | |
| | | | |
| | | | | |
This makes `_slice_first` almost a factor of two faster
|
| | |/ /
| |/| | |
|
|\ \ \ \
| |_|/ /
|/| | | |
MAINT: move remaining MaskedArray matrix tests to matrixlib.
|
|/ / / |
|
|\ \ \
| |/ /
|/| | |
BUG: Ensure that fully masked arrays pass assert_array_equal.
|
|/ /
| |
| |
| |
| | |
The underlying problem is that ma.all() evaluates to masked,
which is falsy, and thus triggers test failures.
|
|\ \
| | |
| | | |
ENH: Add keepdims argument for generalized ufuncs.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Both in the general documentation and in the release notes.
For the latter, also include a description of ``axes``,
which was missing so far.
|
| | |
| | |
| | |
| | |
| | | |
The argument can only be used if all inputs share the same
number of core dimension, and no output has any core dimensions.
|
|/ /
| |
| |
| |
| | |
Typo fix in variable name in core/numeric/binary_repr/warn_if_insufficient.
This only worked before because it used binwidth from the outer namespace.
|
|\ \
| | |
| | | |
MAINT: reduce code duplication in ufunc_frompyfunc
|
| | | |
|
|\ \ \
| |/ /
|/| | |
BUG: fix case of ISA selector in ufunc selection
|
|/ /
| |
| |
| |
| | |
The function expects lowercase so we accidentally turned of avx support
completely.
|