summaryrefslogtreecommitdiff
path: root/numpy/array_api/_elementwise_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-11-12 17:20:58 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-11-13 18:09:03 -0600
commit10ac74940b1e6b1a9e9525f1aaa68fb1e096b326 (patch)
tree29789e5e3618e2daf06c4108ad0349eeaa3d04db /numpy/array_api/_elementwise_functions.py
parent491564d5fb5930beabbe351179c6e8ec9c628c23 (diff)
downloadnumpy-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