| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
'at' method should be functionally equivalent to op1[idx] += op2 (for add ufunc).
|
| |
| |
| |
| |
| |
| | |
- Fix crash when bind for second map iter fails
- Accept array like object for second operand
- Fix memory leaks
|
| | |
|
| |
| |
| |
| |
| |
| | |
Conflicts:
numpy/core/tests/test_ufunc.py
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Conflicts:
numpy/core/code_generators/numpy_api.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
PyDataMem_NEW_ZEROED uses calloc which will take advantage of the fact
that most operating systems provide already zero initialized memory
blocks on larger allocations.
Additionally this memory can be sparse (= mapped to a single zero page)
on some systems (e.g. linux) reducing memory usage of applications
using sparse arrays.
|
| | |
|
|\ \
| | |
| | | |
Mistake in linalg.eig() documentation
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Accept any object with a "write" method as that is the only method
called by the code.
|
| | |
| | |
| | |
| | | |
Preparatory to 1.8.0 branch.
|
|\ \ \
| | | |
| | | | |
Add nanmean, nanvar, and nanstd functions.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix typos and clarify some explanations. Document the changes in the return
values of nanargmin and nanargmax for all-NaN slices in the 1.8.0 release
notes.
|
| | | |
| | | |
| | | |
| | | | |
This was raising a warning during tests.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
nanmax, nanmin
--------------
Add out and keepdims keywords.
nanargmin, nanargmax
--------------------
A NanWarning is raised if an all NaN slice detected. For all such
slices np.iingo(np.intp).min is returned as the index value.
nansum
------
The keywords dtype, out, and keepdims are added.
A FutureWarning is raised, as in the future the mean of an empty
slice after NaN replacement will be 0 instead of the current NaN.
nanmean, nanvar, nanstd
-----------------------
For all, if the input array is of inexact type then the dtype and out
parameters must be of inexact type if specified. That insures that NaNs
can be returned when appropriate.
The nanmean function detects empty slices after NaN replacement and
raises a NanWarning. NaN is returned as the value for all such slices.
The nanmean and nanstd functions detect degrees of freedom <= 0 after
NaN replacement and raise a NanWarning. NaN is returned as the value for
all such slices.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Test the mean, var, and std methods more extensively. In addition, add
tests that:
Check that scalar return types ar what they should be.
Check that ValueError is raised when ddof is too big.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently the results may be infinite or negative. Instead, raise a
ValueError in this case.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The return type could differ depending on whether or not the value
was a scalar.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Use issubclass instead of issubdtype.
Add some blank lines.
Remove trailing whitespace.
Remove uneeded float casts since true_divide is default.
Clean up documentation a bit.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
New files lib/nanfunctions.py and lib/tests/test_nanfunctions.py are
added and both the previous and new nan functions and tests are moved
into them.
The existing nan functions moved from lib/function_base are:
nansum, nanmin, nanmax, nanargmin, nanargmax
The added nan functions moved from core/numeric are:
nanmean, nanvar, nanstd
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Remove references to diagonal changes in 1.8.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Not happening. Also remove reference to selecting multiple fields out of
an array returning a view from 1.8.0 release notes.
Closes #3228.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update abi version and hash
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
In preparation for the 1.8 release, update the API version to
0x00000009 and the API hash to f99a02b75bd60205d1afe1eed080fd53.
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | | |
Scripts should not use relative imports as they won't work in a
non-package environment.
|
|/ / / / |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
On 32-bit platforms, was failing in casting the test
i8 index to i4. It may be desirable to allow this
in reduceat, but that change is independent of this pull
request.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Bugfix: Regression when filling struct from tuple
|
| | | | | |
|
| |/ / / |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
DOC: Fix small typos in partition docstring.
|
| | | | |
|