[Numpy-discussion] combination of list of indices and newaxis not allowed?
Stéfan van der Walt
Wed Feb 1 19:49:26 CST 2012
On Wed, Feb 1, 2012 at 3:47 AM, Olivier Delalleau <firstname.lastname@example.org> 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
More information about the NumPy-Discussion