[Numpy-discussion] Is this an indexing bug?

Sven Schreiber svetosch at gmx.net
Tue Jun 19 06:19:57 EDT 2007

Sven Schreiber schrieb:
> Tom K. schrieb:
>>>>> h = zeros((1, 4, 100))
>>>>> h[0,:,arange(14)].shape
>> (14, 4)
> After reading section of the numpy book, I also still don't
> expect this result. So if it's not a bug, I'd be glad if some expert
> could explain why not.

To be more specific, I would expect shape==(4,14).

I am going to file a ticket soon if nobody explains why everything is
just right and it's only Tom and I who just don't get it ;-)


More information about the NumPy-Discussion mailing list