[Numpy-discussion] Is this an indexing bug?

Sven Schreiber svetosch@gmx....
Tue Jun 19 05:19:57 CDT 2007


Sven Schreiber schrieb:
> Tom K. schrieb:
>>>>> h = zeros((1, 4, 100))
>>>>> h[0,:,arange(14)].shape
>> (14, 4)
>>
> 
> After reading section 3.4.2.1 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 ;-)

-sven


More information about the Numpy-discussion mailing list