| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
ENH: Add namedtuple return types to linalg functions that return tuples
|
| | |
|
|\ \ |
|
| | | |
|
| |\ \
| | | |
| | | | |
ENH: Allow, and default to, downstream building with old API
|
| | | |
| | | |
| | | | |
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We have three choices:
1. Be compatible with limited API (oldest supported Python version)
2. Be compatible with everything on the same Python version (this)
3. Be strict and default to NEP 29
This just rephrases things to be 2. Because our API version was not
bumped over the relevant time frame, it is actually also compatible
with the first.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This still needs to be expanded and maybe removes a bit more than
it should. OTOH, the actual changes will mainly be necessary once
NumPy 2.0 comes, right now the old scheme remains valid.
|
| |\ \ \
| | | | |
| | | | | |
ENH: Adding Object dtype to einsum
|
| | |/ / |
|
| |\ \ \
| | | | |
| | | | | |
DEP,BUG: Finalize subarray dtype FutureWarning and fix its assignment
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
API: Add DType classes into new `numpy.dtypes` module
|
| | | | | | |
|
| |\ \ \ \ \
| | |_|/ / /
| |/| | | | |
DOC: add release note for npzfile membership test
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
This was always just a stop-gap for shapely basically, so there is
no harm finalizing things.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This PR reflects some of the progress achieved in issue #10404 and is used to asses the impact of the changes.
With the changes in this PR, `float(numpy.array([1.0])` now gives a warning; likewise some other things:
```python
import numpy
a = numpy.random.rand(10, 1)
a[0] = numpy.array([1.0]) # okay
a[0] = numpy.array(1.0) # okay
a[0] = 1.0 # okay
b = numpy.random.rand(10)
b[0] = numpy.array([1.0]) # ValueError: setting an array element with a sequence.
b[0, ...] = numpy.array([1.0]) # okay
b[0] = numpy.array(1.0) # okay
b[0] = 1.0 # okay
```
This aligns the behavior of numpy arrays with that of lists:
```python
float([3.14])
```
```
TypeError: float() argument must be a string or a number, not 'list'
```
```python
import numpy as np
a = np.random.rand(5)
a[0] = [3.14]
```
```
ValueError: setting an array element with a sequence.
```
Fixes #10404.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This gets rid of undefined symbol issues for `assert`.
Closes gh-23122
Closes gh-23595
|
| |\ \ \ \
| | |/ / /
| |/| | | |
ENH: Modify `np.logspace` so that the `base` argument broadcasts against `start` and `stop`
|
| | | | |
| | | | |
| | | | |
| | | | | |
correctly against `start` and `stop`.
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Improves the repr to include information about the arrays contained, e.g.:
>>> npzfile = np.load('arr.npz')
>>> npzfile
NpzFile 'arr.npz' with keys arr_0, arr_1, arr_2, arr_3, arr_4...
closes #23319
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It has been deprecated since numpy 1.20, and code search engines
don't turn up a reason to keep this around.
[skip actions] [skip cirrus]
|
| | | | |
|
| |\ \ \
| | | | |
| | | | | |
ENH: Add support for inplace matrix multiplication
|
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
ENH: Enabled the use of numpy.vectorize as a decorator
|
| | | |_|/
| | |/| | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
ENH: Add support to `ma.dot()` for non-2d arrays with `strict=True`
|
| | | | | | |
|
| |\ \ \ \ \
| | |/ / / /
| |/| | | | |
ENH: Allow ``where`` argument to override ``__array_ufunc__``
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
override `__array_ufunc__`.
|
| | | | | |
| | | | | |
| | | | | | |
Fixes #23197
|
| | | | | |
| | | | | |
| | | | | | |
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| | | | | | |
|
| | | | | | |
|
| | |_|_|/
| |/| | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
ENH: add support for fujitsu C/C++ compiler and SSL2 to numpy.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | | |
Rename `23314.deprecations,rst` to `23314,deprecation,rst`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
[skip cirrus]
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Closes gh-22617
|
| |\ \ \ \
| | | | | |
| | | | | | |
API: Add `rng.spawn()`, `bit_gen.spawn()`, and `bit_gen.seed_seq`
|
| | |/ / / |
|
| | | | | |
|
| |/ / / |
|
| |\ \ \
| | | | |
| | | | | |
API: Add environment variable for behavior planned in a 2.0
|