diff options
author | Srimukh Sripada <srimukh93@gmail.com> | 2022-06-19 19:02:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 10:02:20 -0700 |
commit | 2b00ad293159c0e1b52bacd11bfef01f0ea0b5b1 (patch) | |
tree | d16c05efe346e557a8b37620b2976984ab8cdd56 /numpy/array_api/_array_object.py | |
parent | fecd51b1028e945f916e8198b67b93d0d1c56aeb (diff) | |
download | numpy-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