[Numpy-discussion] Is this an indexing bug?

Sturla Molden sturla at molden.no
Tue Jun 19 08:15:53 EDT 2007



 >>> x = numpy.arange(100).reshape((1,10,10))

 >>> x[0,:,numpy.arange(5)].shape
(5, 10)

 >>> x[:,:,numpy.arange(5)].shape
(1, 10, 5)


It looks like a bug that needs to be squashed.

S.M.



More information about the NumPy-Discussion mailing list