| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
- Add flag ``_slow_integer`` to np.isin/np.in1d to force the use of the
old isin/in1d algorithm for integers.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Before this fix, if, e.g., int8(-100) and int8(100) are the min and
max, respectively, of ar2, ar2_range would experience an integer
overflow and optimal_parameters would be an invalid value.
``if optimal_parameters:`` would skip the fast integer algorithm
regardless, but warnings would be generated when they are unnecessary.
- np.log10(... + 1) was changed to np.log10(... + 1.0) to avoid further
potential problems from overflow here.
- See https://github.com/numpy/numpy/pull/12065 for discussion.
|
| | |
| | |
| | |
| | |
| | |
| | | |
- These tests hit the areas of the old algorithm which are now replaced
for the majority of cases
- Another test tests behaviour of boolean input to isin/in1d
|
| | |
| | |
| | |
| | |
| | | |
- This change converts boolean input to numpy.isin and numpy.in1d into uint8, allowing
the function to use the new optimized code
|
| | |
| | |
| | |
| | |
| | |
| | | |
- This optimization indexes with an intermediary boolean array to speed up
numpy.isin and numpy.in1d for integer arrays over a range of optimal parameters
which are calculated.
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
Fix the reversed arguments to the call of PyErr_Format() that generates
the exception for an invalid index in usecols.
Also fix the format characters in several other calls of PyErr_Format()
where the arguments are Py_ssize_t.
|
|/ |
|
|
|
|
|
|
|
|
|
| |
In release mode, the DeprecationWarning is not automatically raised,
so we need to ensure this using a warning filter.
(Also add missing metadata/info to the deprecation tests)
Closes gh-21706
|
|\
| |
| | |
BUG: Fix three `complex`- & `float128`-related issues with `nd_grid`
|
| | |
|
| | |
|
|\ \
| | |
| | | |
TYP, ENH: Add annotations for the `equal_nan` keyword to `np.unique`
|
| | | |
|
| | | |
|
|/ /
| |
| |
| |
| |
| | |
The normed keyword argument has been deprecated for a long time.
This removes it, replacing its position with the new density
argument.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The other similar arguments in the testing functions and `np.array_equal`
use `equal_nan` and not `equal_nans` (with plural s). So it seems we
should use that here as well for consistency.
Does some very minor style fixes otherwise.
|
| |
| |
| | |
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
| |
| |
| | |
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| | |
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
| | |
|
| |
| |
| | |
Co-authored-by: Robert Kern <robert.kern@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The first lines of the sinc docstring did not mention the behavior
when the argument is zero, and gave the impression that the function is
defined as the quotient between a sine and its argument everywhere. That
information was instead relegated to the "Notes" section. I found this
issue while navigating the documentation for jax.numpy.sinc, which
inherits those few lines. I think it is important to document not only
the value of the function at zero, but also that it make sinc a smooth
function. This connects better with some of the other routes used to
introduce sinc (e.g. as a Taylor series). I have tried to implement
the conclusions of the discussion around Issue #21538, keeping the
description close to the actual implementation and avoiding my original
suggestion of introducing the function as a limit.
|
|\ \
| | |
| | |
| | |
| | | |
seberg/fix-void-cast-safety-promotion-and-comparison
API: Fix structured dtype cast-safety, promotion, and comparison
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This PR replaces the old gh-15509 implementing proper type promotion
for structured voids. It further fixes the casting safety to consider
casts with equivalent field number and matching order as "safe"
and if the names, titles, and offsets match as "equiv".
The change perculates into the void comparison, and since it fixes
the order, it removes the current FutureWarning there as well.
This addresses https://github.com/liberfa/pyerfa/issues/77
and replaces gh-15509 (the implementation has changed too much).
Fixes gh-15494 (and probably a few more)
Co-authored-by: Allan Haldane <allan.haldane@gmail.com>
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
TYP: Add typing for the keepdims param. of 'average' and 'ma.average'
|
| | | |
| | | |
| | | |
| | | | |
This is a follow-up to gh-21485.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
Closes gh-9982.
(Plus a few small PEP 8 fixes.)
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Optimizes the parsing of shape tuples and integers by avoiding multiple conversions and generally
refactoring the code.
Closes gh-19010, that parsing a single integer was very slow (due to trying to convert it to a squence twice).
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
* Changed product computing logic for kron to use broadcasting
|
|\ \
| | |
| | | |
ENH: Masked Array support for `np.kron`
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Added `mat` cases to smoke tests
* Changed type checks to handle new change which uses ufuncs order for
result determination
* Added cases for `ma` to check subclass info retention
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Replace `*` call with `multiply`
* Handle `mat` cases to perform reshape
* Remove use result wrapping to maintain consistency with ufuncs
|
|\ \ \
| | | |
| | | | |
DOC: Add space after argument name
|
| | | | |
|