[Numpy-discussion] Is this an indexing bug?

Sturla Molden sturla@molden...
Tue Jun 19 07:15:53 CDT 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