[Numpy-discussion] combination of list of indices and newaxis not allowed?
Stéfan van der Walt
stefan at sun.ac.za
Wed Feb 1 20:49:26 EST 2012
On Wed, Feb 1, 2012 at 3:47 AM, Olivier Delalleau <shish at keba.be> wrote:
> I think you just can't use newaxis in advanced indexing (doc says "The
> newaxis object can be used in the basic slicing syntax", and does not
> mention newaxis in the advanced indexing part).
Yes, with fancy indexing the two arguments need to be broadcast
together, and this fails for [0, 2] and None (newaxis is simply the
None object).
Stéfan
More information about the NumPy-Discussion
mailing list