[Numpy-discussion] Is this an indexing bug?
svetosch at gmx.net
Tue Jun 19 13:13:05 EDT 2007
Sturla Molden schrieb:
> >>> 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.
And you already had me convinced ;-)
I'm still curious which one's the bug and which one is expected...
More information about the NumPy-Discussion