summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorSrimukh Sripada <srimukh93@gmail.com>2022-06-19 19:02:20 +0200
committerGitHub <noreply@github.com>2022-06-19 10:02:20 -0700
commit2b00ad293159c0e1b52bacd11bfef01f0ea0b5b1 (patch)
treed16c05efe346e557a8b37620b2976984ab8cdd56 /numpy/array_api/_array_object.py
parentfecd51b1028e945f916e8198b67b93d0d1c56aeb (diff)
downloadnumpy-2b00ad293159c0e1b52bacd11bfef01f0ea0b5b1.tar.gz
BUG: Fix comparison for empty structured arrays (#21796)
When empty structured arrays with nontrivially shaped fields are compared, the reshape operation invoked fails. Instead of reshaping using -1, computing the new dimension manually solves the problem. Fixes gh-21739
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions