| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| | |
BLD: Add configuration changes to allow cross platform builds for iOS.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
When building NumPy for iOS, you build on macOS, with compiler flags to target iOS or the iOS simulator. However, setup.py runs on macOS, so sys.platform == 'darwin', regardless of the platform being targetted.
distutils provides an environment variable - _PYTHON_HOST_PLATFORM - to indicate when you are building for a different platform. This patches uses that variable to identify cross-platform builds and disable macOS specific features.
The patch also renames an internal method in strfuncs to avoid a collision with a symbol in iOS's standard library, and includes math.h to avoid errors about undefined symbols.
|
| |\ \
| | |
| | | |
MAINT: Hard tab and whitespace cleanup.
|
| | | | |
|
| |\ \ \
| |/ /
|/| | |
BUG: Further back-compat fix for subclassed array repr (forward port)
|
| | | |
| | |
| | |
| | | |
Fixes #10663
|
| |\ \ \
| | | |
| | | | |
BUG: fix problem with modifing pyf lines containing ';' in f2py
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Regression tests for bug discussed in pull request #10676.
Lines matching the multiline or f2py enhancement pattern should not be
split by ';'.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The variable line was assigned to before checking whether it
contains a multiline or f2py enhancement pattern. In these cases
the line should not be split by ';'. See pull request #10676.
|
| |\ \ \ \
| | | | |
| | | | | |
DOC: Improve docstring of memmap
|
| | | |/ /
| |/| |
| | | | |
See also 8a38f64.
|
| |\ \ \ \
| | | | |
| | | | | |
BUG: fix error message in numpy.select
|
| | | |/ /
| |/| | |
|
| | | | |
| | | |
| | | | |
ENH: Allow dtype field names to be ascii encoded unicode in Python2
|
| |\ \ \ \
| |/ / /
|/| | | |
NEP process updates
|
| | | | | |
|
| |/ / / |
|
| |\ \ \
| |/ /
|/| | |
DOC: Grammar of np.gradient docstring
|
| |/ /
| |
| |
| | |
[ci-skip]
|
| |\ \
| | |
| | | |
DOC: add versionadded for NDArrayOperatorsMixin.
|
| |/ / |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
* [BUG] add "symmetric" to "positive-semidefinite"
* Break line, fix comments
* break long line
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* BUG: improve parsing of quoted control characters in numpy.f2py.
See #10634. Fixes a couple of cases where quoted control
characters are parsed as if they are unquoted. The control
characters considered are "()!;".
* TST: quoted characters parsing by numpy.f2py.
Basic test of parsing quoted Fortran control characters. See #10634.
* BUG: add missing space character when reconstructing fortran line.
The missing space caused a line starting with "!f2py" to be considered
a continuation line.
|
| |\
| |
| | |
DOC zeros, empty, and ones now have consistent docstrings
|
| | |
| |
| |
| | |
closes #10611
|
| |\ \
| | |
| | | |
DOC: Fix incorrect formula in gradient docstring.
|
| | | | |
|
| |\ \ \
| |_|/
|/| | |
DOC: Add installation notes for Linux users
|
| | | |
| | |
| | | |
[skip ci]
|
| | | | |
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
ENH: Implement axes keyword argument for gufuncs.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This ensures we do not have to guard against any operand having
fewer dimensions than required by the ufunc in, e.g.,
_parse_axes_argument.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The axes argument allows one to specify the axes on which
the gufunc will operate (by default, the trailing ones).
It has to be a list with length equal to the number of
operands, and each element a tuple of length equal to the
number of core dimensions, with each element an axis index.
If there is only one core dimension, the tuple can be
replaced by a single index, and if none of the outputs have
core dimensions, the corresponding empty tuples can be
omitted.
|
| |\ \ \ \
| |/ / /
|/| | | |
STY: Minor stylistic cleanup of numeric.py
|
| |/ / /
| | |
| | |
| | | |
No changes to the logic, only minor edits guided by flake8.
|
| |\ \ \
| | | |
| | | | |
DOC/MAINT: More misc. typos
|
| | | | |
| | | |
| | | | |
Found via `codespell` and `grep`
|
| |\ \ \ \
| |/ / /
|/| | | |
MAINT: Unify reductions in fromnumeric.py
|
| |/ / / |
|
| |\ \ \
| | | |
| | | | |
BUG: Make np.partition and np.sort work on np.matrix when axis=None
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Both were making the normally valid assumption that flatten actually flattens, which turns out to be false for matrices.
Old behavior:
>>> a = np.matrix([[1, 2, 0]])
>>> np.partition(a, 1, axis=None)
ValueError: kth(=1) out of bounds (1)
>>> np.sort(a, axis=None)
matrix([[1, 2, 0]])
|
| |\ \ \ \
| | | | |
| | | | | |
BUG/MAINT: Remove special cases for 0d arrays in interp
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These are now handled generically by the underlying C function
This fixes the period argument for 0d arrays.
Now never returns a pure-python scalar, which matches the behaviour of most of numpy.
Rework of b66a200a4a1e98f1955c8a774e4ebfb4588dab5b
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Like other functions, returns a numpy scalar in place of 0d arrays
Previously this would throw an exception
|
| |\ \ \ \
| |/ / /
|/| | | |
MAINT: Remove duplicate implementation for aliased functions.
|