| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
ENH: Add (put|take)_along_axis
|
| |
| |
| |
| | |
This is the reduced version that does not allow any insertion of extra dimensions
|
|\ \
| | |
| | | |
ENH: Have dtype transfer for equivalent user dtypes prefer user-defined `copyswapn`
|
| | |
| | |
| | |
| | | |
`copyswapn`
|
|\ \ \
| | | |
| | | | |
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
|
| | | | | |
|
| | |_|/
| |/| | |
|
| | | |
| | | |
| | | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | | |
Both in the general documentation and in the release notes.
For the latter, also include a description of ``axes``,
which was missing so far.
|
|\ \ \
| |_|/
|/| | |
DOC: Update genfromtxt docs to use StringIO and u-strings
|
| | |
| | |
| | |
| | |
| | |
| | | |
We could also instead use b-strings everywhere, but encouraging unicode seems like the right thing to do.
Fixes #8498
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* DOC: mention we can return unitinitialized values
* squash and rebase, extend explanation and improve docstring template
* MAINT: Spelling fixes for docstrings.
[ci skip]
* MAINT: Update following feedback.
|
|\ \ \
| | | |
| | | | |
DOC: add numpy.lib.format to docs and link to it
|
| | | | |
|
|\ \ \ \ |
|
| |\ \ \ \
| | | | | |
| | | | | | |
DOC: release walkthrough updates from 1.14.3
|
| | | | | |
| | | | | |
| | | | | | |
[ci skip]
|
| | | | | | |
|
| |\ \ \ \ \
| | |_|/ / /
| |/| | | | |
BUG: np.histogramdd loses precision on its inputs, leading to incorrect results
|
| | | |/ /
| | |/| |
| | | | |
| | | | | |
This covers the changes made in gh-10324 and gh-11023
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
BUG: void .item() doesn't hold reference to original array
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: expand reasoning behind npy_*floatstatus_barrer()
|
| | | | | | | |
|
| |\ \ \ \ \ \
| | |/ / / / /
| |/| | | | | |
MAINT: Improve performance of random permutation
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Use fancy indexing instead of a shuffle to avoid unnecessary
object access
closes #11013
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* BUG: optimizing compilers can reorder call to npy_get_floatstatus
* alternative fix for npy_get_floatstatus, npy_clear_floatstatus
* unify test with pr #11043
* use barrier form of functions in place of PyUFunc_{get,clear}fperr
* update doc, prevent segfault
* MAINT: Do some rewrite on the 1.15.0 release notes.
[ci skip]
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
User- and non-user-facing typos.
Some source typos fixes as well.
Found via `codespell`.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
[ci skip]
|
| | |_|/ /
| |/| | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Since linalg allows stacks of matrices generally, there is no
reason not to allow it for matrix_power.
|
|\ \ \ \
| | | | |
| | | | | |
DOC: cleanup documentation, continuation of nditer PR #9998
|
| |\ \ \ \ |
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | | |
DOC: link to governance, convert external link to internal
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: Implement initial kwarg for ufunc.add.reduce
|
| | | | | | |
|
| |/ / / /
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: test, fix PyArray_DiscardWritebackIfCopy refcount issue and docu…
|
| | | | | | |
|
| |/ / / /
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: Quantile
|