| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
a partial mitigation of #12759.
see also https://nvd.nist.gov/vuln/detail/CVE-2019-6446
|
| |\
| |
| | |
MAINT: Move umath error helpers into their own module
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is a direct move, with some tweaks to imports.
For some reason, this changed the results of running the doctests, which now reflect the actual defaults for `geterrobj`.
This helps to make `core.numeric` a little shorter.
This doesn't affect the value of `np.core.numeric.__all__` which keeps code doing `from numpy.core.numeric import *` working.
|
| |\ \
| |/
| | |
MAINT: Move asarray helpers into their own module
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This is a direct move, with some tweaks to imports.
This breaks a cyclic imports between `core.numeric` and `core.fromnumeric`.
This doesn't affect the value of `np.core.numeric.__all__` which keeps code doing `from numpy.core.numeric import *` working.
|
| |\ \
| |/
|/| |
BUG: ufunc.at iteration variable size fix
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
The iteration variable has to be intp of course, unfortunately
a test is too slow to be practical (even as a slow test).
This code needs more refactoring, but since it is a minimal fix...
Closes gh-13286
|
| |\ \
| | |
| | | |
MAINT: Move exceptions from core._internal to core._exceptions
|
| | |/ |
|
| |/ |
|
| |\
| |
| | |
MAINT: Use textwrap.dedent in f2py tests
|
| | |
| |
| |
| | |
Don't touch the fortran files, since indentation is signficant there and it makes things more error-prone
|
| |\ \
| | |
| | | |
BUG: Fix bad error message in np.memmap
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This previously raisd `OSError: [Errno 22] Invalid argument` while trying to seek to byte -1 of the file.
It now raises `ValueError: cannot mmap an empty file`
The simple fix is not to write the file at all if we know it's already long enough.
In future we could consider allowing memmap to do an extra write behind the scenes to ensure the fiel is not empty, but that seems out of scope.
Fixes gh-12653
|
| |\ \
| | |
| | | |
MAINT: fix typo in 'self'
|
| | |/ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
* minor reviewer adjustments in PR
13301: in test_structured_padded it
is necessary to perform the seek
after writing to the file, and to
specify a fmt option to match
the expected result
|
| |/
|
|
|
|
| |
As a general rule, _every_ use of `.descr` is broken.
Fixes #13297
|
| |\
| |
| | |
BUG: Use C call to sysctlbyname for AVX detection on MacOS
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
/home/bran/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files/dotnet:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/mnt/c/Program Files/PuTTY:/mnt/c/Users/Bran/AppData/Local/Programs/Python/Python37/Scripts:/mnt/c/Users/Bran/AppData/Local/Programs/Python/Python37:/mnt/c/Users/Bran/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Bran/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin doesn't contain /usr/sbin #7801…
|
| | | |
|
| |\ \
| | |
| | | |
MAINT: fix unused variable warning in npy_math_complex.c.src
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Warnings:
```
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/npymath/npy_math.c
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_casinhf':
numpy/core/src/npymath/npy_math_complex.c.src:1445:21: warning: unused variable 'pio2_hi' [-Wunused-variable]
const @type@ pio2_hi = NPY_PI_2@c@;
^~~~~~~
numpy/core/src/npymath/npy_math_complex.c.src:1434:30: warning: unused variable 'pio2_lo' [-Wunused-variable]
const volatile npy_float pio2_lo = 7.5497899549e-9f;
^~~~~~~
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_casinh':
numpy/core/src/npymath/npy_math_complex.c.src:1445:22: warning: unused variable 'pio2_hi' [-Wunused-variable]
const @type@ pio2_hi = NPY_PI_2@c@;
^~~~~~~
numpy/core/src/npymath/npy_math_complex.c.src:1438:31: warning: unused variable 'pio2_lo' [-Wunused-variable]
const volatile npy_double pio2_lo = 6.1232339957367659e-17;
^~~~~~~
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_casinhl':
numpy/core/src/npymath/npy_math_complex.c.src:1445:26: warning: unused variable 'pio2_hi' [-Wunused-variable]
const @type@ pio2_hi = NPY_PI_2@c@;
^~~~~~~
numpy/core/src/npymath/npy_math_complex.c.src:1442:35: warning: unused variable 'pio2_lo' [-Wunused-variable]
const volatile npy_longdouble pio2_lo = 2.710505431213761085e-20l;
^~~~~~~
```
|
| |\ \ \
| | | |
| | | | |
BLD: streamlined CBLAS linkage tries, default to try libraries *as-is*
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This makes CBLAS testing a bit easier since it checks 5 cases:
- user-defined libraries
- cblas + user-defined libraries
- blas + user-defined libraries
- cblas
- blas
In given order.
Since the has_cblas changed API it also changed name
to get_cblas_libs.
|
| |\ \ \ \
| |_|/ /
|/| | | |
ENH: nan_to_num keyword addition (was #9355)
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | | |
DOC: Small readability improvement in random.binomial
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Fix null pointer dereference in PyArray_DTypeFromObject
|
| | | | | | | |
|
| |/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Correcting bug on Documentation Page : Byteswapping
* Changing name of variable
|
| | | | | |
| | | | |
| | | | |
| | | | | |
to 12x
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The warning
[...]/fortranobject.c:138:18: warning: comparison of integers of different signs: 'Py_ssize_t' (aka 'long') and 'unsigned long' [-Wsign-compare]
if (size < sizeof(notalloc)) {
~~~~ ^ ~~~~~~~~~~~~~~~~
occurs 17 times when scipy is built. The change in this pull request casts
`size` to `size_t` before comparing it to `sizeof(...)`. A previous check
has already eliminated the possibility that `size` is negative, so this cast
is safe.
|
| |\ \ \ \
| | | | |
| | | | | |
MAINT: replace SETREF with assignment to ret array in ndarray.flat
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | | |
* DOC: fix docstring for floor_divide
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove excess underscores
Fix lognormal docstring
Standardize whitesapce
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes gh-13165, where a double decref could occur on the error path.
Folded into this commit is some related control flow cleanup requested at review time.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Previously, an object array which contained complex numbers would
give complex output, as it was simply multiplied with itself instead
of with its conjugate.
|
| |\ \ \ \
| | | | |
| | | | | |
DOC: Fix small issues in mtrand doc strings
|
| | |/ / /
| | | |
| | | |
| | | |
| | | | |
Remove overly long underscore
Remove trailing whitespace
|
| |\ \ \ \
| | | | |
| | | | | |
MAINT: cleanup of fast_loop_macros.h
|