| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Commit 494abcf1 (ENH: speed-up minimum, maximum and xor for bool dtype)
reworked numpy/core/src/umath/loops.h to be autogenerated at build time,
but forgot to update .gitignore.
Fix it, so that the now-autogenerated loops.h do not constantly show as
untracked in git status output.
|
| |
|
|
|
|
| |
closes gh-4898
|
|
|
|
| |
see gh-4422
|
| |
|
|
|
|
| |
The function returns bytes not strings. This is relevant in python3.
|
|
|
|
| |
ignore cscope and gnu global files
|
|
|
|
|
| |
added to "Changing kind of array" with the other as* functions
Closes gh-4890
|
| |
|
|
|
|
|
| |
their presence in site.cfg is only for the benefit of third party
packages using numpy.distutils
|
|
|
|
| |
fixes gh-4730
|
| |
|
|
|
|
|
| |
Improves performance by using the simple indexing path and memory by
avoiding creating a full meshgrid.
|
|\
| |
| | |
ENH: apply_along_axis accepts named arguments
|
| | |
|
| | |
|
|\ \
| | |
| | | |
BLD: compute sha256 sums of build artifacts
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Using a secure hash allows verifying ther binaries from a gpg signed
README.txt.
MD5 just kept for legacy users who may not be able to obtain a sha256
utility.
|
|\ \ \
| |/ /
|/| | |
Piecewise fix for 0d
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When `x` has more than one element the condlist `[True, False]`
is being made equivalent to `[[True, False]]`, which is correct.
However, when `x` is zero dimensional the expected condlist is
`[[True], [False]]`: this commit addresses the issue. Besides,
the documentation stated that there could be undefined values
but actually these are 0 by default: using `nan` would be desirable,
but for the moment the docs were corrected. Closes #331.
|
|\ \
| | |
| | | |
DOC: add some highlights to release notes
|
| | |
| | |
| | |
| | |
| | | |
also minor general documentation fixes
[ci skip]
|
|\ \ \
| | | |
| | | | |
MAINT: improve readablility of cross and improve test coverage
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
BUG: improve log2 windows compiler fallback of log2
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fallback (similar to python3.4 math.log2) provides int(log(2**i)) == i
in default rounding mode.
Non-default rounding modes not tested but if it does not work we are at
least not worse than python.
Closes gh-4787
|
|\ \ \
| |/ /
|/| | |
BUG: Correct behavior for lists of tuples in unique, closes #4785
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
np.unique produces wrong results when passed a list of tuples and
no keyword arguments, as it fails to recognize it as a multidim
array, but handles it as a 1D array of objects. The only way around
this seems to be to completely eliminate the fast path for non-array
inputs using `set`.
|
|\ \
| | |
| | | |
BUG: Avoid double iterator deallocation in `ufunc_object.c`
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In `PyUFunc_GeneralizedFunction`, whenever a call to
`NpyIter_GetIterNext` fails, `NpyIter_Deallocate` is called twice, one
right after the error check, the second in the `goto fail`. Removed
the first one.
|
|\ \ \
| |/ /
|/| | |
ENH: use copyswap instead of memmove for flat assignment
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
improves d.flat = x performance by about 35% for basic types as the
copyswap functions have known elementsizes and these are implemented
optimally by the compiler while for the generic call the compiler needs
to call out to libc.
|
|\ \ \
| |/ /
|/| | |
BUG: fix where not filling string types properly
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
the copyswap part of where used the input arrays descriptions to copy
into the destination so if they had a smaller size the destination was
not properly padded with zeros.
Closes gh-4778
|
|\ \ \
| | | |
| | | | |
BLD: add a simple python file to build cpucaps.dll
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
using scons seems to fail with wine 1.6, but one only needs to run three
commands so its simpler to just put these into a script instead of
trying to debug scons.
|
|\ \ \
| |/ /
|/| | |
BUG: check alignment of strides for byteswap
|
|/ /
| |
| |
| | |
closes gh-4774
|
|\ \
| | |
| | | |
BUG: fix test deleting temporary file before using it on windows
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| | |
The version check was not valid for python3, though the whole logic can
be removed with a finally clause.
This requires that the savez tests need to cleanup the NpyzFile results
which still hold an open file descriptor.
|
|\ \
| | |
| | | |
MAINT: reduce scope of some variables in indexing code
|
|/ /
| |
| |
| |
| | |
also improves code generation with gcc-4.8 leading up to a 10%
performance increase on some cpus by removing a stack spill.
|
|\ \
| | |
| | | |
ENH: rewrite ma.median to improve poor performance for multiple dimensions
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
many masked median along a small dimension is extremely slow due to the
usage of apply_along_axis which iterates fully in python. The unmasked
median is about 1000x faster.
Work around this issue by using indexing to select the median element
instead of apply_along_axis.
Further improvements are possible, e.g. using the current np.nanmedian
approach for masked medians along large dimensions so partition is used
instead of sort or to extend partition to allow broadcasting over
multiple elements.
Closes gh-4683.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
tolist() converts numpy integers to python integers which are converted
back to numpy integers by the indexing.
meshgrid(indexing='ij') returns the indices wanted here as the right type.
triples performance of sorting a size=(200, 200, 50) array along axis 2
and reduces memory usage by almost 40%.
|
|\ \ \
| | | |
| | | | |
ENH: add storage format 2.0 with 4 byte header size
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The new format only increases the header length field to 4 bytes.
allows storing structured arrays with a large number of named columns.
The dtype serialization for these can exceed the 2 byte header length
field required by the 1.0 format.
The generic functions automatically use the 2.0 format if the to be
stored data requires it. To avoid unintentional incompatibilies a
UserWarning is emitted when this happens.
If the format is not required the more compatible 1.0 format is used.
Closes gh-4690
|
|\ \ \ \
| |_|/ /
|/| | | |
DOC: Fix indentation and add missing blank lines for meshgrid doc.
|