| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
[ci-skip]
|
| | |
|
| |
|
|
|
|
|
|
| |
* [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.
|
| | | |
|
| |\ \
| | |
| | | |
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.
|
| |/ /
| |
| |
| | |
No changes to the logic, only minor edits guided by flake8.
|
| |\ \
| | |
| | | |
DOC/MAINT: More misc. typos
|
| | | |
| | |
| | | |
Found via `codespell` and `grep`
|
| |/ / |
|
| |\ \
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | | |
Fixes #10651 by replacing the behavior of `product` with that of `prod`
|
| |\ \ \
| | | |
| | | | |
BUG: f2py: fix f2py generated code to work on Pypy
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
F2py generates code that uses PyTuple_SetItem on a tuple that has been
"used", which is invalid on Pypy.
Add #ifdefs that make the generated code convert the object to a list,
use PyList_SetItem, and then convert it back to a tuple.
|
| |\ \ \ \
| |/ / /
|/| | | |
BUG: Fix missing NPY_VISIBILITY_HIDDEN on npy_longdouble_to_PyLong
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes #10648
NPY_VISIBILITY_HIDDEN is used by memoverlap.{c,h}, so we should be using the same thing here
|
| |\ \ \ \
| | | | |
| | | | | |
ENH: Make flatnonzero call asanyarray before ravel()
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
It now works for lists and other numpy-convertible input.
Fixes #10598.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously, the numerical constants in the FFT code were not provided at full double precision which led to a loss of accuracy in the FFT operation. Additionally
this commit improves the accuracy of the twiddle factor calculation by reducing the argument of exp(2j*pi*m/n) to the first octant before calling the library
function. On average the commit lowers the remaining numerical error in the FFT by a factor of ten.
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
BUG: fromregex: asbytes called on regexp objects
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When calling fromregex() with a binary stream and a regular expression
object, asbytes() was called on the regexp object, resulting in an
incorrect regular expression being compiled and used.
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: deallocate recursive closure in arrayprint.py
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes #10620
|
| |/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When parsing dtype strings, we should only consider them to
be comma seperated if there are commas not present in a
pair of square brackets.
Whilst we had a check for this already in the code there was
an off by 1 bug where we failed to consider the first character
of the string. This would lead to an infinite recursion when
trying to parse strings of the form `[i8,f8]`.
Fixes: #10440
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: promote_types is _not_ associative by design,
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
be nice if it was
Also give an example of the non-associative case.
|
| |\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT: Do not use random roots when testing roots.
|
| | | |_|_|_|/ /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The `check_roots` function in numpy/polynomial/tests/test_classes.py was
using random numbers without a seed to generate the random roots to be
checked. This made the test sensitive to the random state, with the
result that currently two of the roots are close together and fail the
test to the default seven digit precision when running on the Mac. The
failure is probably due to a combination of library and compiler
differences between the Mac and the other platforms tested.. The fix
here is to hardwire the test values rather than use random numbers.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* Align type definitions
* Regenerate sources
* Replace BytesIO
* Consolidate executables
* Create directories on PY2
* Revise step name
* Consolidate directory creation
* Don't catch makedirs errors
* Revise step name
* Add header source
|
| |/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Found via `codespell -q 3 -I ../numpy-whitelist.txt`
Whitelist consists of:
```
amin
ans
behaviour
cancellation
dum
initialise
ith
nd
ot
splitted
writeable
```
.
|
| |\ \ \ \ \ \
| |_|_|/ / /
|/| | | | | |
DOC: Update sphinxext submodule hash.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Currently, the `doc_note` function in `numpy.ma.core.py` is called to
add a "Notes" section to the existing docstrings of the unmasked
versions of some functions. This may result in duplicate "Notes"
sections, or incorrect placement, which are errors in current numpydoc.
This PR disables the `doc_note` function until we can decide on the
proper way to deal with the problem.
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG/ENH: Improve output for structured non-void types
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes gh-9821
|
| | | | | | | | |
|
| |\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
BUG: Revert sort optimization in np.unique.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The optimization was to sort integer subarrays by treating them as
strings of unsigned bytes. That worked fine for finding the unique
subarrays, but the sort order of the results could be unexpected.
Closes #10495.
|