[Numpy-discussion] bug in http://www.scipy.org/NumPy_for_Matlab_Users

Keith Goodman kwgoodman at gmail.com
Sun Apr 29 16:09:40 EDT 2007


On 4/29/07, Andrew Straw <strawman at astraw.com> wrote:
> No, the nth index of a Python sequence is a[n], where n starts from
> zero. Thus, if I want the nth dimension of array a, I want a.shape[n].
>
> I reverted the page to its original form and added a couple explanatory
> comments about zero vs one based indexing.

Would it be better to replace n with a number, say, 2?

size(a, 2)     a.shape[1]



More information about the NumPy-Discussion mailing list