| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
|
|
|
|
|
|
| |
Unfortunately, the casting was not consistent and sometimes used
force casting (axis=None) while normally same kind casting was used.
This thus deprecates the `force_casting` corner case, so that
casting has to be provided in the future.
|
|
|
|
|
|
|
|
|
|
|
| |
* ENH: random: Make _shuffle_raw and _shuffle_int standalone functions.
* ENH: random: Add the method `permuted` to Generator.
The method permuted(x, axis=None, out=None) shuffles an array.
Unlike the existing shuffle method, it shuffles the slices along
the given axis independently.
Closes gh-5173.
|
|\
| |
| | |
DOC: Document `dtype.metadata`
|
| |
| |
| |
| |
| |
| | |
This adds some basic documentation to the ``dtype.metadata``
attribute. Note that none of the documentation mentions metadata
including https://numpy.org/devdocs/reference/arrays.dtypes.html
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* remove (R) from all MATLAB mentions except the first
* Update doc/source/user/numpy-for-matlab-users.rst
update the MATLAB case L53
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* change case of all M/matlab to MATLAB
* Update doc/source/user/numpy-for-matlab-users.rst
replace (R) in reference to Mathworks reference
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|\ \
| | |
| | | |
DOC: Canonical_urls
|
| | | |
|
| | | |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
DOC: use the pydata_sphinx_theme
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
This is motivated primarily as a proof that the datetime API is now unicode-safe, and generally seems harmless.
|
| | | |
|
| |/
|/| |
|
|\ \
| | |
| | | |
DOC: make spacing consistent in NEP 41 bullet points
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently the uneven spacing is making some of the bullet points show
up as quoted; see e.g.
https://numpy.org/neps/nep-0041-improved-dtype-support.html#backward-compatibility
|
|\ \ \
| | | |
| | | | |
API: Remove `np.ctypeslib.ctypes_load_library`
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
This function has been deprecated since fcee1ad856089a7ecb7b6865d280c0273dacb638 (Numpy v1.0b3).
14 years is more than enough time for users to switch from it.
|
|\ \ \
| |/ /
|/| | |
MAINT, BUG: Remove uses of PyString_FromString.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We no longer need to use the compatibility function after dropping
support for Python 2.7. In some cases unicode was the correct string
type rather than the bytes of the compatibility version and bugs in the
array `__complex__` and array `__array_interface__` methods have been
fixed by changing that.
|
|\ \ \
| | | |
| | | | |
MAINT: Revert boolean casting back to elementwise comparisons in `trim_zeros`
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
MAINT: Add error return to all casting functionality and NpyIter
|
| | | | |
|
| |/ / |
|
|\ \ \
| |_|/
|/| | |
BUG: linspace should round towards -infinity
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | | |
reword the release note
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
* ENH: Add file like support to np.core.records.fromfile (#2504)
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|\ \ \
| | | |
| | | | |
DOC: Fix types including curly braces
|
| | |/
| |/| |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
As explained in NEP 32, the financial functions are to be removed
from version 1.20.
They are now replaced with module level `__getattr__` to give a useful
error message for those surprised by the `AttributeError`.
This only works for Python 3.7+, but it is expected that by the 1.20 release
Python 3.6 will not be supported.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* NEP: Updated NEP-35 with keyword-only instruction
Following reviewer's suggestions during the implementation phase,
the `like=` argument is now keyword-only, updating the proposal
accordingly.
* NEP: Changed date of NEP-35 latest update
* NEP: Adjust keyword-only marker position in NEP-35
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously the logic assumed that an index was valid if the size was the same
as the indexed array, rather than the shape. This resulted in an index being
incorrectly allowed if the index was all False, like np.empty((3, 3))[np.full((1, 9),
False)], or incorrectly giving a ValueError about broadcasting if the index
was not all False (like np.empty((3, 3))[np.full((1, 9), True)]). Now these
examples both give IndexError with the usual error message.
Fixes #16997.
|
| |
| |
| | |
* Create copy of numpy.pxd for Cython 3.0 changes and improve it.
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
* Added a benchmark for `trim_zeros()`
* Improve the performance of `np.trim_zeros()`
* Increase the variety of the tests
Fall back to the old `np.trim_zeros()` implementation if an exception is encountered.
Emit a `DeprecationWarning` in such case.
* DEP,REL: Added a deprecation release note
|
|
|
|
|
|
|
| |
Set readonly flags in array interface dict and array struct
capsule returned by an array with warn_on_write flag set
instead of producing a deprecation warning.
Closes #16335
|
| |
|
|
|
|
| |
Incorporates suggestions by @seiko2plus
|
|
|
|
|
| |
The changes are in one file local to us -- doesn't mess with any
scipy files.
|