| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
MAINT: move all masked array matrix tests to matrixlib.
|
| |
| |
| |
| |
| |
| | |
Further progress in isolating matrix in preparation of its
deprecation. There is one place left with an explicit reference
to matrix (in MaskedArray.count), which is to be solved later.
|
|\ \
| | |
| | | |
DOC: Make doc examples using StringIO python2-3 compatible
|
| | | |
|
|\ \ \
| |/ /
|/| | |
DOC: cleanup documentation, continuation of nditer PR #9998
|
| |\ \ |
|
| | | | |
|
| |_|/
|/| |
| | | |
The result was correct
|
|\ \ \
| | | |
| | | | |
BUG: Pass non-None outputs to __array_prepare__ and __array_wrap__
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
__array_prepare__ or __array_wrap__ arguments
This fixes gh-10450.
The effect here is that all of these will pass `args=(in1, in2)` to `__array_prepare__` and `__array_wrap__`:
* `ufunc(in1, in2)` - unchanged
* `ufunc(in1, in2, None)` - previously:
* prepare: `(in1, in2, None)`
* wrap: `(in1, in2, None)`
* `ufunc(in1, in2, out=None)` - previously:
* prepare: `(in1, in2, None)`
* `ufunc(in1, in2, out=(None,))` - previously
* prepare: `(in1, in2, (None,))`
Whereas these will pass `args=(in1, in2, out)`;
* `ufunc(in1, in2, out)` - unchanged
* `ufunc(in1, in2, out=out)` - previously
* wrap: `(in1, in2)`
* `ufunc(in1, in2, out=(out,))` - previously
* prepare: not called on out at all!
* wrap: `(in1, in2)`
|
|\ \ \ \
| | | | |
| | | | | |
ENH: Implement initial kwarg for ufunc.add.reduce
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: address extraneous shape tuple checks in descriptor.c
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* C source comments flag two extraneous checks for
the object type of self->subarray->shape in
descriptor.c
* pertinent code has been adjusted to assert
the presence of the tuple object where
needed & remove a fallback return call along
with an extraneous casting
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: Remove unnecessary special case in np.histogramdd for N == 0
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
BUG: Fix casting between npy_half and float in einsum
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
DOC: Fix negative binomial documentation.
|
| | | | | | | | | |
|
|\ \ \ \ \ \ \ \ \
| |_|_|_|_|_|_|_|/
|/| | | | | | | | |
BUG: have _array_from_buffer_3118 correctly handle errors
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Fixes gh-6741
If an object claims to support the PEP3118 buffer protocol, then any mistakes in the implementation should be raised as errors, rather than falling back on other approaches.
This has some behavior changes:
* np.array(mem_view_33d) now gives a more useful error message than "memoryview: unsupported format <B"
* np.array(ctypes_pointer) now errors rather than creating an object array containing a single pointer
Also adds support for 32-dimensional buffers, where previously the max was 31-dimensional.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
BUG: test, fix PyArray_DiscardWritebackIfCopy refcount issue and docu…
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | |_|_|_|_|_|/ /
| |/| | | | | | | |
|
|\ \ \ \ \ \ \ \ \
| |_|_|_|_|_|_|/ /
|/| | | | | | | | |
BUG: 'style' arg to array2string broken in legacy mode
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Fixes #10934
|
|\ \ \ \ \ \ \ \ \
| |_|_|_|_|_|_|/ /
|/| | | | | | | | |
ENH: Quantile
|
| | | | | | | | | |
|
| |_|_|_|_|_|_|/
|/| | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* fixed doc typo
* fixed lib typos
* fixed lapack_lite typos
* Revert "fixed lapack_lite typos"
This reverts commit e7dada860cb73af190234402508ab79965ecd079.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
BUG: it.close() disallows access to iterator, fixes #10950
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | |_|/ / / / /
| |/| | | | | | |
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
TST: Extract a helper function to test for reference cycles
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
It's not always possible to guarantee this, so also adds a test to verify that we don't hang
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
An example output for the test added in the previous commit is:
AssertionError: Reference cycles were found when calling make_cycle: 1 objects were collected, of which 1 are shown below:
list object with id=2279664872136:
[<Recursion on list with id=2279664872136>,
<Recursion on list with id=2279664872136>]
|
| | |_|/ / / /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This also means we can now test that our test is actually able to detect the type of failure we expect
Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
|
|\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | | |
ENH: Nditer as context manager
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Some links in developer documentation and files had extraneous '-dev' in
them, removing it restore the working state of the links.
See: #10939
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
DOC: clear up warnings, fix matplotlib plot
|
| | | | | | | | |
|
| | | | | | | | |
|