| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
BUG: Fix #define for ppc64 and ppc64le
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The current logic for defining NPY_CPU_PPC64LE and NPY_CPU_PPC64 is
incorrect for two reasons:
1) The elif defined for __powerpc__ is proceesed first so any
ppc64le or ppc64 system is defined as NPY_CPU_PPC.
2) __ppc64le__ is not defined on a ppc64le system. __PPC64__ is
defined and so is __powerpc64__ but the check for little or
big endian needs to be done seperately.
This pull request fixes the defines for ppc64le and ppc64.
Note: This really isn't a issue in the numpy code base at this time
because the only place this variable is referenced is in npy_endian.h
as a fallback in case endian.h is not on the system.
It would be good to fix in case future code does reference
these defines.
|
|\ \
| | |
| | | |
DOC: extend sanity check message
|
| | | |
|
|\ \ \
| |/ /
|/| | |
ENH: Add AARCH32 support.
|
| | |
| | |
| | |
| | | |
As title.
|
| | |
| | |
| | |
| | |
| | | |
This adds support for identifying AARCH32 and AARCH64 at compile
time such that alignment etc is correctly determined.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Minor tweaks to the optimal path based on opt_einsum
* Updates greedy path to current opt_einsum tech
* Reworks einsum broadcasting vs dot tech and can_dot logic
* MAINT: Fix typo in comment.
* BUG: Fix bad merge fixup.
|
|\ \ \
| | | |
| | | | |
BUG: Advanced indexing assignment incorrectly took 1-D fastpath
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When the index array was non contiguous and not 1D the assignment
1D fastpath (indexed array being 1D) was incorrectly taken (also
the assignment value had to be 0D for this to happen).
This caused the iteration to use the itemsize as a stride, since
it incorrectly assumed the array must be contiguous.
The commit additionally adds an assert to the STRIDE fetching macro.
Closes gh-11467.
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Move add_newdocs into core, since it only adds docs to those pieces
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
| | | | | |
MAINT: Move pytesttester outside of np.testing, to avoid creating unnecessary import dependencies
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
unnecessary import dependencies
pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports
Relates to #11457
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
MAINT: Improve speed of ufunc kwargs parsing
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Using the realization from inspecting similar CPython code that as we
intern string names anyway, comparing keys with possible names by
pointer will generally just work.
Also rather drastically rewrote, to use a new parser with simple
conversion functions to replace part of the enormous switch/case
structure, process out separately, and check for duplication after the
parsing.
Reduces the overhead as follows:
```
import numpy as np
a = np.array(1)
b = np.empty_like(a)
%timeit np.positive(a) # 352->348 ns
%timeit np.positive(a, subok=True) # 606->501 ns
%timeit np.positive(a, where=True) # 586->503 ns
%timeit np.positive(a, where=True, subok=True) # 695->531 ns
%timeit np.positive(a, b) # 354->352 ns
%timeit np.positive(a, out=b) # 557->480 ns
%timeit np.positive(a, out=b, subok=True) # 668->506 ns
%timeit np.positive(a, out=b, where=True, subok=True) # 752->536 ns
```
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Fix documentation for fromfunction
|
| | | | | |
| | | | | |
| | | | | | |
```np.fromfunction(lambda i, j: 1, (3, 3), dtype=int)``` returns ```1```.
|
|\ \ \ \ \ \
| | |_|/ / /
| |/| | / /
| |_|_|/ /
|/| | | | |
MAINT: Remove python-side docstrings from add_newdocs.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
From the header comment in add_newdocs, it is only intended for C modules.
This also fixes `help(np.mgrid)`, which previously only showed the help for `nd_grid`
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: Refactor differences between cblas_matrixproduct and PyArray_MatrixProduct2
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
TST: Added regression test for #11395
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | | |
BUG: fix interpolation with inf and NaN present
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Values like NaN and inf would result in wrong interpolated values on
exactly matching sampling points. To produce the correct behavior, we
add an additional check to avoid interpolation when handling such a
point.
Closes #11439
|
|\ \ \ \ \ \
| |_|_|/ / /
|/| | | | | |
BUG: Revert #10229 to fix DLL loads on Windows.
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Numpy wheels on Windows were clearing the ctypes path when they loaded
the OpenBLAS DLL, leading to failure of DLL loads subsequent to NumPy
import because the needed DLLs could not be found.
This isn't a straight revert, it restores to the 1.15.x version of
the relevant code.
Closes #11431.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: ensure ret is out in einsum
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | | |
DOC: Clear up confusion between np.where(cond) and np.where(cond, x, y)
|
| | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Eliminates all mentions of `np.where(cond)`, instead pointing the reader to np.nonzero.
Also changes some example numbers to avoid collisions, making them easier to follow.
Some minor doc improvements for np.ma.where too.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Code was getting too convoluted and both can be optimized
in different ways.
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Overall, it likely doesn't matter much for performance, but it is
more logical and more consistent with what python does: reverse
operators are not called if the forward one of a given class
already returned NotImplemented.
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Silence many sphinx warnings
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Einsum docs improvements.
* DOC: add information to numpy.core.einsumfunc
* DOC: add information to numpy.core.einsumfunc
* DOC: add information to numpy.core.einsumfunc
* DOC: add information to numpy.core.einsumfunc
* DOC: remove 'numpy.core','c_einsum' section from 'add_newdocs.py'
* DOC: make :py:func links to all internal functions.
* DOC: make :py:func links to all internal functions (minor corrections)
* DOC: place `add_newdoc('numpy.core.multiarray','c_einsum'`,...) in file.
* DOC: minor requested corrections
* DOC: suggested optimize argument Example cases
* DOC: copy amendments to second docstring location in add_newdocs.py
* DOC: more descriptive text
* DOC: required correction to specify a default argument.
* DOC: minor presentation fix for example display in einsumfunc.py
* DOC: amend c_einsum documentation version, add note about dual documentation
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ENH: Allow use of svd on empty arrays
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
part of #8654
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
BUG: Fix incorrect deprecation logic for histogram(normed=...) (master)
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #11426, which was introduced in #11323 and #11352
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Change array lengths/entries in broadcast_arrays example to reduce confusion.
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
ENH: Allow size=0 in numpy.random.choice
|
| | | | | | | |
|
| | | | | | | |
|
| |_|_|_|/ /
|/| | | | | |
|