diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2018-07-01 12:53:53 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2018-07-02 15:35:45 +0200 |
commit | 2b680c2311246f2d78f8b7786284336b92ef74a3 (patch) | |
tree | 41ef22ae116694afc2ff15dd0c63ede831209352 /numpy/core/arrayprint.py | |
parent | e33be77d664c3e18c4319c84d6a5b8e7448d132b (diff) | |
download | numpy-2b680c2311246f2d78f8b7786284336b92ef74a3.tar.gz |
BUG: Advanced indexing assignment incorrectly took 1-D fastpath
When the index array was non contiguous and not 1D the assignment
1D fastpath (indexed array being 1D) was incorrectly taken (also
the assignment value had to be 0D for this to happen).
This caused the iteration to use the itemsize as a stride, since
it incorrectly assumed the array must be contiguous.
The commit additionally adds an assert to the STRIDE fetching macro.
Closes gh-11467.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions