| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Einsum now optionally uses BLAS
* The einsum call is now optimized by default
* cleans up the dot logic
* MAINT: Correct spelling, tranpose <- transpose.
|
| | |
| | |
| | |
| | |
| | | |
Using \t here is just cryptic.
Done using a very basic find and replace.
|
|\ \ \
| |/ /
|/| | |
BUG: don't silence warnings in ufunc.reduce
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The two most visible consequences are warnings for:
* np.min and np.max when inputs contain nan
* np.sum when the summation (of floats) overflows
Implementation taken from the code for ufunc.__call__
Fixes #8954
|
| | |
| | |
| | |
| | | |
Previously, these would do so when encountering nans
|
| | |
| | |
| | |
| | |
| | |
| | | |
This makes it visible inside other files, like reduction.c
Apart from the includes, everything here is just a direct move - there are no code changes
|
|\ \ \
| |_|/
|/| | |
MAINT: Use PyArray_ISBYTESWAPPED instead of !PyArray_ISNOTSWAPPED.
|
| | |
| | |
| | |
| | | |
Positives are easier to parse than double negatives.
|
|/ / |
|
| | |
|
|\ \
| | |
| | | |
ENH: Rearrange testing module to isolate nose dependency.
|
| | |
| | |
| | |
| | |
| | | |
The new decorator was added to numpy.testing in order to facilitate the
transition to using pytest.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
One of the steps in achieving pytest compatibility is to get rid of
yield based nose tests. Having some basic version of parametrize offers
a way to do that.
Note that the version here is very restricted and does not have all the
capabilities of the pytest version. Such are the drawbacks of backward
compatibility.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The aim here is to separate out the nose dependent files prior to adding
pytest support. This could be done by adding new files to the general
numpy/testing directory, but I felt that it was to have the relevant
files separated out as it makes it easier to completely remove nose
dependencies when needed.
Many places were accessing submodules in numpy/testing directly, and in
some cases incorrectly. That presented a backwards compatibility
problem. The solution adapted here is to have "dummy" files whose
contents will depend on whether of not pytest is active. That way the
module looks the same as before from the outside.
In the case of numpy itself, direct accesses have been fixed. Having
proper `__all__` lists in the submodules helped in that.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
bobeldering/f2py-closing-brace-in-format_def-docstring
BUG: ')' is printed at the end pointer of the buffer in numpy.f2py.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When building the __doc__ string for Fortran objects, the ')'
character, closing the dimensions list, is written 1 position
beyond the allowed buffer size, instead of the current pointer in
the buffer.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
BUG: fix error in fromstring function from numpy.core.records
the shape was computer using true division and
ndarray expects a tuple of integers as shape parameter
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Prevent hang traversing ufunc userloop linked list
|
| | | | |
| | | | |
| | | | |
| | | | | |
This avoids bugs like gh-9351 being introduced later
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes gh-9351
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | | |
Also remove redundancy between the function and return value descriptions
[ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
BUG: recfunctions fail in a bunch of ways due to using .descr
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Once again, thanks to not using .descr
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This change shouldn't affect behaviour - all old uses were still correct.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Again, fixed by not using descr
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
It seems that working with .descr is a generally terrible idea.
Instead we introduce `get_fieldspec`, which returns a list of 2-tuples,
encapsulating subdtypes.
This also means that np.core.test_rational.rational survives a roundtrip - its
.descr is 'V8', which ddoesn't survive
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #9338
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: void masked fillvalue cannot be cast to void in python 3
|
| |/ / / / |
|
| | | | |
| | | | |
| | | | | |
Fixes gh-9326
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
DOC: Use x1 and x2 in the heaviside docstring.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also remove a duplicate $PARAMS.
Closes gh-9314.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: np.resize discards empty shapes
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Prevent crash if ufunc doc string is null
|
| | | | | | |
|
| |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | | |
Calling ufuncs with where= specified but without out= was broken.
Un-break it and add some test coverage.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: np.ma.astype fails on structured types
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Fix fillvalue
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
These now:
* Return void scalars instead of tuples for structured dtypes
* Actually accept non-trivial dtype arguments
* Work for nested structured and subarray dtypes
* Uniformly convert scalar types into dtypes
Also fixes #9315
|
| | | | | | | |
|