take
does not specify behavior for 0-D input array
#855
Milestone
take
does not specify behavior for 0-D input array
#855
It is not clarified in the spec how
take
should handle 0-D inputs for the indexed (x
) argument.NumPy allows this, even when
axis=0
of course, this won't work when using Python-sequence-style indexing
Referring to
take(x, indices, axis=3
as "conceptually equivalent" tox[:, :, :, indices, ...]
implicitly disallows this behavior.The description of the output seems to agree
This wouldn't make much sense for a 0-D array, much like in
cumulative_sum
a similar conclusion was drawn.The text was updated successfully, but these errors were encountered: