[Numpy-discussion] tuple vs. list as index

Sebastian Haase haase at msg.ucsf.edu
Thu May 12 20:15:56 EDT 2005


Hi,
Is this really obvious to everybody:

>>> type(a)
<class 'numarray.numarraycore.NumArray'>
>>> a.shape
(12, 13, 2, 5)
>>> a[(0,0)].shape
(2, 5)
>>> a[[0,0]].shape
(2, 13, 2, 5)

>>> na.take(a,[0,0]).shape
(2, 13, 2, 5)

Is there some explanation in the documentation ? (Is this the same in 
Numeric / Numeric3 ?)

Thanks,
Sebastian Haase




More information about the NumPy-Discussion mailing list