| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |/ / |
|
|/ /
| |
| |
| |
| |
| | |
I don't know what that argument was used for, but it showis up in old
tests and is not explicitly used within the tests. I assume it was part
of an old testing framework and is now longer needed.
|
| |
| |
| |
| |
| |
| |
| | |
This is the case for x in {int, bool, str, float, complex, object}.
Using the np.{x} version is deceptive as it suggests that there is a
difference. This change doesn't affect any external behaviour. The
`long` type is missing in python 3, so np.long is still useful
|
|\ \
| | |
| | | |
BUG: Fix true_divide when dtype=np.float64 specified.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The problem here was due to the signature matching when dtype is
specified. A signature matches when
1) The output dtype matches the specified dtype
2) The input arguments can be cast to the signatures dtypes using
casting="same_kind"
The signature 'bb->d' was present for true_divide, consequently when
dtype=np.float64 was specified, all integer inputs were cast to int8.
The solution adopted here was to remove all signatures/loops for
true_divide that had integer inputs. Lesser measures broke a lot of
existing code that relied on the behavior for other functions
Closes #3484. Again.
|
|\ \ \
| |/ /
|/| | |
MAINT: Add a common subclass to all the masked ufunc wrappers
|
| | | |
|
|\ \ \
| | | |
| | | | |
ENH: Add np.polynomial.chebyshev.chebinterpolate function.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Rename chebinterp to chebinterpolation as suggested.
* Make some fixes to the Chebyshev class function.
* Refactor TestInterpolation.
* Add test for the Chebyshev.interpolation class function.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The chebinterp function interpolates a function at the Chebyshev points
of the first kind using a Chebyshev series. The resulting interpolation
approximates a polynomial fit minimizing the L_inf norm.
This function is useful e.g. for estimating roots before running a
root-finding function.
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Make diff iterative instead of recursive
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
TST: Added tests for `n` parameter
Added test for `datetime64` type change
Added tests for axis normalization
Added test for subtype handling
DOC: Minor updates to docs:
Added explanation for `n==0`
Added documentation describing `datetime64` handling
Updated formatting
Added call to normalize_axis_index
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
MAINT/BUG: Improve error messages for dtype reassigment, fix missing DECREFs
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Python 2.7.13 added a new py3 compatibility DeprecationWarning we
did not catch at the moment.
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Make `setxor1d' a bit clearer and speed it up
|
| | | | | |
|
| | |_|/
| |/| |
| | | | |
We need to find the index which is not the same with the left and right, I think np.logical_and's meaning is more clear and I test this got a speed up
|
|/ / /
| | |
| | |
| | |
| | | |
Note that this was discussed extensively in gh-7287, but removing
this -xhost flag was missed in the PR that closed that issue.
|
|\ \ \
| |_|/
|/| | |
MAINT: Remove branch in __array__ where if and else were the same
|
| | | |
|
|\ \ \
| |_|/
|/| | |
MAINT: Use new-style classes on 2.7
|
| |/
| |
| |
| | |
Deliberately avoids tests, to prevent introducing a failure on old-style classes later.
|
|\ \
| |/
|/| |
Remove unittest dependencies
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Also properly naming tests to begin with test, and using camelcase for
class names.
|
| |
| |
| |
| | |
Also rename some classes that should not begin 'Test'.
|
| | |
|
|\ \
| | |
| | | |
BUG: Inlined functions must be defined somewhere.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Some inline functions in numpy/core/src/multiarray/mapping.c were
defined as `NPY_NO_EXPORT NPY_INLINE` with the result that gcc 7.1 was
looking for an external definition. Possibly some of those functions
were no longer being inlined. The fix was to replace `NPY_NO_EXPORT`
with `static`. A grep of the numpy source files turned up no further
uses of that unfortunate combination.
|
|\ \ \
| | | |
| | | | |
MAINT: Further unify handling of unnamed ufuncs
|
| | | |
| | | |
| | | |
| | | | |
Follows on from gh-8876
|
|\ \ \ \
| | | | |
| | | | | |
MAINT/BUG: improve gradient dtype handling
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This isn't the case for `diff`
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
BUG: Check for exception in sort functions
Fixes gh-3879
Fixes gh-9404
|
| |/ / / / |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
ENH: use caching memory allocator in more places
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Remove unlikely, as it is being used now more it may not be correct
anymore.
|
| | |_|/
| |/| |
| | | |
| | | |
| | | | |
In particular use it in PyArray_IntpConverter which is used in many
function entrypoints.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
MAINT: Make the refactor suggested in prepare_index
This refactors the tuple creation part of the index creation (and actually removes the
usage of a tuple itself in favor of a raw data array). Making the index preparation
function shorter and more specific to the important task.
|