summaryrefslogtreecommitdiff
path: root/numpy/array_api/_elementwise_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-01-04 14:53:23 -0800
committerSebastian Berg <sebastian@sipsolutions.net>2022-01-05 11:53:45 -0600
commit975a94623b1c84979ef9bfe620745299f420315a (patch)
treeeec32f91213579f7d68c95728e1a62de30cc8ae2 /numpy/array_api/_elementwise_functions.py
parent84fd36cc94436bb842aa33c14f7e973d6e00c8b2 (diff)
downloadnumpy-975a94623b1c84979ef9bfe620745299f420315a.tar.gz
BUG: Relax dtype identity check in reductions
In some cases, e.g. ensure-native-byte-order will return not the default, but a copy of the descriptor. This (and maybe metadata) makes it somewhat annoying to ensure exact identity between descriptors for reduce "operands" as returned by the resolve-descirptors method of the ArrayMethod. To avoid this problem, we check for no-casting (which implies viewable with `offset == 0`) rather than strict identity. Unfortunately, this means that descriptor resolution must be slightly more careful, but in general this should all be perfectly well defined. Closes gh-20699
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions