diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-12 17:20:58 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-13 18:09:03 -0600 |
commit | 10ac74940b1e6b1a9e9525f1aaa68fb1e096b326 (patch) | |
tree | 29789e5e3618e2daf06c4108ad0349eeaa3d04db /numpy/array_api/_elementwise_functions.py | |
parent | 491564d5fb5930beabbe351179c6e8ec9c628c23 (diff) | |
download | numpy-10ac74940b1e6b1a9e9525f1aaa68fb1e096b326.tar.gz |
BUG: Relax unary ufunc (sqrt, etc.) stride assert
The stride is never used if the length is 0 or 1, so it is OK if
if the strides have strange values here.
Not adding a test: This is a simple assert and the original issue
was found due to intentionally garbled up strides in `ufunc.at`,
but `ufunc.at` stopped doing that.
Closes gh-19806
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions