| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
If we have this macro, we may as well use it.
This changes all occurences except the Void ones, since there other fields that don't have accessor macros are also used.
|
|/ / / / / /
| | | | | |
| | | | | | |
Revert ed916ff#diff-c9eccf467e5f6561061d6a5ac4730330 which was needed to workaround http://bugs.python.org/issue4720 which was fixed 12 years ago.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: Replace basestring with str.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This replaces basestring with str except in
- tools/npy_tempita/
- numpy/compat/py3k.py
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
MAINT: Revise imports from urllib modules
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
BUG/TEST: core: Fix an undefined name in a test.
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This hasn't generated an error because the test is marked `xfail`.
Code checkers such as pyflakes will flag it, so fixing it is worthwhile.
|
|\ \ \ \ \ \ \ \
| |_|_|/ / / / /
|/| | | | | | | |
MAINT: cleanup _pytesttester.py
|
| |/ / / / / / |
|
|/ / / / / / |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
MAINT/BUG: Fixups to scalar base classes
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The previously code was equivalent to something like
```python
class SomeScalar(base1, base2):
def __new__(cls, *args):
return cls.__bases__[1].__new__(*args)
```
This is nonsense and can easily cause recursion, for instance if `cls` is a superclass of SomeScalar.
The correct way to spell this is to pin the base class call statically.
```python
class SomeScalar(base1, base2):
def __new__(cls, *args):
return SomeScalar.__bases__[1].__new__(*args)
```
Fixes #15395
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This seems to be left from when `np.int_` subclassed `int`, which it no longer does.
Change the `if` to an `assert` so that we can catch this type of change in future.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: remove internal functions required to handle Python2/3 logic
|
| |/ / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: resolve pyflake F403 'from module import *' used
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* For external modules, resolve imported members
* Most internal relative modules were ignored or marked noqa: F403
* Convert a few internal absolute imports to relative imports
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT: Cleanup python2 references
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
MAINT: Python2 Cleanups
|
| |/ / / / / / / |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
MAINT: clean up some macros in scalarapi.c
|
| | |_|/ / / / /
| |/| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Using a macro in an if without parens is just weird.
Also, simplies macros to use existing macros, and add comments to make clear why `Void` is special.
|
| | | | | | | | |
|
| |_|/ / / / /
|/| | | | | | |
|
|/ / / / / / |
|
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | | |
This PR const qualifies the dimension and strides arguments of PyUFuncGenericFunction. Const qualified arguments make it simpler to reason about the behaviour of these ufuncs and prevents accidental mutation. As the const is now required this PR also const qualifies calls to PyUFuncGenericFunction inside the NumPy source code.
This closes #15252
|
|\ \ \ \ \
| | | | | |
| | | | | | |
STY: Use `with open` when possible
|
| |/ / / / |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: simd: Avoid signed comparison warning
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We do not need to cast the dimensions (`n`) to ``npy_uintp`` when
comparing it to the stride length (of type ``npy_intp``). The cast is
kept from similar checks where the cast is required
``(npy_uintp)n < (VECTOR_SIZE_BYTES / sizeof(@type@))``
In this case `strides` is precalcuated as
``VECTOR_SIZE_BYTES / (npy_intp)sizeof(@type@))``
therefore `n` is already of the correct type when the check is
performed.
|
|/ / /
| | |
| | |
| | | |
This implements NEP 34.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
BUILD: use standard build of OpenBLAS for aarch64, ppc64le, s390x
|
| | | | |
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
MAINT: linalg: use symbol suffix in fallback lapack_lite
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When building the fallback lapack_lite library for numpy.linalg,
add symbol suffix to the routines when using 64-bit integer indices.
Adjust the lapack_lite generator script to also output a header file
that renames the symbols. Moreover, also rename symbols from f2c.c, to
be sure (because they have short and generic names that may clash).
This avoids a name clash with BLAS/LAPACK names, which can cause
problems in corner cases on platforms where inadvertent symbol
overriding in dynamic libraries can occur.
|
|\ \ \ \ |
|
| | | | | |
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* ENH: add identity kwarg to frompyfunc
* Update umathmodule.c
* Add test, docs, and release note for identity
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: cleanup compat.py3k.py
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DEP: records: Deprecate treating shape=0 as shape=None
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`shape=n` is a shorthand for `shape=(n,)` except in the case when `n==0`, when it is a shorthand for `shape=None`.
This special case is dangerous, as it makes `fromrecords(..., shape=len(a))` behave surprisingly when a is an empty sequence.
Users impacted by this warning either:
* Have a bug in their code, and will need to either:
- wait for the deprecation to expire
- change their code to use `(len(a),)` instead of `len(a)`
* Are using the non-preferred spellling, and will need to replace a literal `0` or `False` with `None`
|