| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \
| | |
| | | |
ENH: speed up cov by ~10% for large arrays
|
| | |
| | |
| | |
| | | |
Replaces n² divisions by one division and n² multiplications.
|
|\ \ \
| | | |
| | | | |
MAINT: corrcoef, memory usage optimization
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We calculate sqrt on the small vector rather than on that huge
product matrix and we combine the "outer" product with element-wise
devision. So even though we have a slower loop over the rows now ... this
code snippet runs about 3 times faster than before.
However the speed improvement of the whole function is not really
significant because cov() takes 80-99% of the time (dependent on
blas/lapack implementation and number of CPU cores).
More important is that we will safe 1/3 memory. For example corrcoef()
for a [23k, m] matrix needs 8GB now instead of 12GB.
|
|\ \ \
| | |/
| |/| |
ENH: halve the memory requirement of np.cov
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Prevents allocation of an n²-sized array.
XXX For large arrays, multiplying by 1/fact is more than 10% faster
than dividing by fact, but that doesn't pass the tests.
|
|/ / |
|
|\ \
| |/
|/| |
DOC: numpy.diff docstring changed as per recommendation on
|
| |
| |
| |
| |
| |
| | |
https://github.com/numpy/numpy/issues/5900
Slight change for cumsame doco as well, to match.
|
|\ \
| | |
| | | |
BUG: Make sure warning for array split is always applied
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Zero arrays can also occur with any of the partitions sub_arys[i]
induced by array_split, not just the final partition sub_arys[-1].
Modified by seberg.
Closes gh-5771
|
| |/
|/|
| |
| |
| |
| |
| | |
Added tests for the x.x.dev0+1234567 form together with alpha and beta
versions of same.
Updates lifted from scipy.
|
|\ \
| | |
| | | |
DEP,MAINT: Change deprecated indexing to errors.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The deprecated operations changed to errors are
* Conversion of floats and booleans to npy_intp indexes.
* Conversion of single element integer arrays of ndim > 1 to indexes.
* Multiple ellipsis in index.
The affected deprecation tests have been been changed to check for
raised errors instead, but remain in test_deprecations.py for the
moment. They will be moved when the conversion of the remaining indexing
deprecations is complete.
|
| | | |
|
|/ /
| |
| |
| | |
when given axis=None, behave the same as axis not being provided
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Avoid going through python floats when converting string to
longdouble. This makes it dramatically easier to produce
full-precision long double numbers. Fixed are the constructor
(np.longdouble("1.01")), np.fromfile, np.fromstring, np.loadtxt,
and np.genfromtxt (and functions based on it). Also fixed is
precision loss when using np.tofile.
This also fixes #1481, poor handling of bad data in fromfile
and fromstring.
If the function strtod_l is not available, almost none of this
will work, and many tests will fail.
|
|\ \
| | |
| | |
| | |
| | | |
MANT: searchsorted should return base ndarrays always
|
| | | |
|
|/ /
| |
| |
| | |
can now pass in bins='auto' (or 'scott','fd','rice','sturges') and get the corresponding rule of thumb estimator provide a decent estimate of the optimal number of bins for the given the data.
|
| |
| |
| |
| |
| | |
`mode` is a required argument so just declare it as such. This does not
prevent it from being passed as a keyword argument.
|
| |
| |
| |
| | |
values to be modified
|
|\ \
| | |
| | | |
MAINT: Use numpy versions of getargspec, formatargspec.
|
| | |
| | |
| | |
| | |
| | | |
Both of these functions will be removed in Python 3.6 and were deprecated
in 3.5. The numpy versions are not full versions, but hopefully suffice.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
PEP8 and pyflakes fixups for numpy/ma/*.py and numpy/ma/tests/*.py
Merge cleanups prior to 1.10 release.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Those test functions were incorrectly importing test functions
from numpy/ma/testutils that were actually not defined there, but
rather in numpy/testing. That did not cause an error when testutils
was '*' importing all the test functions, but it was deceptive as
some of the functions might appear to support masked arrays when
they do not.
|
| |/ /
|/| | |
|
| | | |
|
|/ /
| |
| |
| |
| |
| | |
closes gh-6062
done with help of Sebastian Berg! =)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Most of these fixes involve putting blank lines around
.. versionadded:: x.x.x
and
.. deprecated:: x.x.x
Some of the examples were also fixed.
|
| | |
|
|\ \
| | |
| | | |
BF: do not crash lookfor if inspection fails - catch any Exception
|
| | | |
|
|\ \ \
| | | |
| | | | |
MAINT: remove legacy monkeypatching of GzipFile
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I'm not sure exactly when GzipFile.seek started supporting the whence=
argument by default -- sometime around python 2.5 from the looks of
http://bugs.python.org/issue1355023. But in any case it was definitely
there by 2.6, which is now the earliest version we support, so there's
no longer any need to monkeypatch it in. This also fixes an error in
python 3.5b2, which I haven't bothered to track down further because
these are the wages of monkeypatching.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
This triggers a PendingDeprecationWarning in py3.5 -- you're supposed
to just write "return" instead (which on earlier versions is
equivalent). See PEP 479: https://www.python.org/dev/peps/pep-0479/
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
in array to close issue #586.
Also added unit tests.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In two places they were doing
>>> from StringIO import StringIO
Since Python 2.6 that should be
>>> from io import StringIO
Closes #5995.
|
|\ \ \
| | | |
| | | | |
DOC: Update indexing docs.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Update docs for boolean array indexing and nonzero order.
Add links to row-major and column-major terms where they appear.
Closes #3177
|
|/ / /
| | |
| | |
| | |
| | | |
Deprecated in NumPy 1.5. If this causes problems in the 1.10 release
cycle the change can be reverted.
|
| | |
| | |
| | |
| | |
| | | |
Some keywords are deprecated and slated for removal in numpy 2.0.
Add comment to deprecation date to clarify that.
|
|/ /
| |
| |
| |
| |
| | |
This is to make it easier to find and remove deprecated features.
It would be a good idea if all deprecations were made with similar
comments.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously views of structured arrays containing objects were completely
disabled. This commit adds more lenient check for whether an object-array
view is allowed, and adds similar checks to getfield/setfield
Fixes #2346. Fixes #3256. Fixes #2599. Fixes #3253. Fixes #3286.
Fixes #5762.
|