| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
MAINT: Remove the unused keepdim argument from np.ufunc.accumulate
|
| | |/ / / / / /
| |/| | | | | | |
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | / / / / /
| | |/ / / / /
| |/| | | | | |
DOC: Update bincount docs to reflect gh-8348
|
| | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | | |
[ci skip]
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: pull request 9087 modifies a tuple after use - avoid this.
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
BUG: allow pickling generic datetime
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Fixes #9159
|
| |/ / / / / /
|/| | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT: Simplify if statement
|
| | |_|/ / / /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
isinstance(obj, ndarray) will return False if (obj is None) in any case,
so no need to check whether (obj is not None) before it. All tests
pass on my build (the most recent one at the time making this PR).
However, this might have been done for backward compatibility. Will see
how the CI tests do.
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
BUG: ensure structured ndarray.__eq__,__ne__ defer when appropriate.
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This solves the case where `other` is an object that defines a
higher `__array_priority__` or `__array_ufunc__ = None`, but not
yet the case where it defines its own implementation of
`__array_ufunc__`.
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Fixes issue #9161
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #9137
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Array ufunc reduce out tuple
|
| | | | | | |
|
| | | | | | |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
By mistake, any arguments to ufunc.reduce, ufunc.accumulate,
and ufunc.reduceat that were None were removed, rather than just
removing the 'out' argument. This is corrected here, with
tests added.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Expand_dims works as documented when the index of the inserted NewAxis
in the resulting array satisfies -a.ndim - 1 <= index <= a.ndim.
However, when index > a.ndim index is replaced by a.ndim and, when
index < -a.ndim - 1, it is replaced by index + a.ndim + 1, which may be
negative and results in incorrect placement. The latter two cases are
now deprecated.
Closes #9100.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: ndarray.__pow__ does not check result of fast_scalar_power
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
If one raises an ndarray or subclass to particular powers,
fast_scalar_power is used in number.c -- this defers to another
function (e.g., sqrt for 0.5), but does not check whether an error
occurred. In consequece, if a subclass raises an error, and returns
NULL, that gets interpreted as meaning the fast operation is not
possible, and power is tried in turn, likely raising another
exception. This commit fixes fast_scalar_power such that it
returns success any time an operation is attempted.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: str/repr fixed for 0d-arrays
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
0d arrays now use the arrayprint.py formatters to print themselves.
Deprecates 'style' argument to array2string. Integer scalars are no
longer printed using the function set with ``np.set_print_function``.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
BUG: Fix error handling on PyCapsule when initializing multiarraymodule
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: do not elide complex abs()
|
| | |_|_|/ /
| |/| | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
As in binary operations, only elide unary operations on basic types to
avoid odd interactions e.g. with user dtypes.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
complex abs() results in float so it cannot be elided.
Closes gh-9109
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
BUG: delay calls of array repr in getlimits
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Does not work, and shouldn't be there.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Delay use of array repr until needed for string representations of the
float info parameters. This is to allow getlimits to be imported early
without pulling in too much of the repr machinery.
See: https://github.com/numpy/numpy/pull/8983#discussion_r115838683
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
PyDict_SetItemString has internally increased object reference.
We don't need to INCREF before adding to module dict anymore.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: link to stack from column_stack
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
[ci skip]
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: fix test_basic failure on Windows
|
| | | | | |
| | | | | |
| | | | | | |
Echo is a command in the Windows command interpreter
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
ENH: Allow inplace also as keyword parameter for ndarray.byteswap
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
MAINT: Improve error message from sorting with duplicate key
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #9082
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG remove memory leak in array ufunc override.
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | / / / /
| | |/ / / /
| |/| | | | |
MAINT: refine error message for __array_ufunc__ not implemented
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
xref GH9079
|
|/ / / /
| | | |
| | | |
| | | | |
Post 1.13.x branch housekeeping.
|
|\ \ \ \
| | | | |
| | | | | |
BUG: __array_ufunc__ should always be looked up on the type, never the instance
|