summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_elementwise_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-01-11 12:02:37 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-01-11 13:56:07 -0600
commitcce2142a648f0c19eb9851c0cb51521d617d1acb (patch)
treeaa091c67c1f062abf34fccc5b59ee42583dca17a /numpy/array_api/tests/test_elementwise_functions.py
parenta190258d4e90f2a17a9469e5dd9fb5f4b045aa90 (diff)
downloadnumpy-cce2142a648f0c19eb9851c0cb51521d617d1acb.tar.gz
BUG: Ensure too many advanced indices raises an exception
The number of indices is limited to 2*MAXDIMS currently to allow mixing integer indices, e.g. with new indices `np.newaxis` (one removes output dimensions, the other adds new ones). This means that more than MAXDIMS advanced indices can be passed on to the advanced indexing machinery (`MapIterNew`), which did not check for this possibility. Closes gh-18145
Diffstat (limited to 'numpy/array_api/tests/test_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions