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

2007-04-29 Thread Charles R Harris
On 4/29/07, Kevin Jacobs <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: On 4/29/07, Andrew Straw <[EMAIL PROTECTED]> 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

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

2007-04-29 Thread Kevin Jacobs <[EMAIL PROTECTED]>
On 4/29/07, Andrew Straw <[EMAIL PROTECTED]> 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

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

2007-04-29 Thread Keith Goodman
On 4/29/07, Andrew Straw <[EMAIL PROTECTED]> 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

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

2007-04-29 Thread dmitrey
I think it's better to add "see remark!" inside the cells because not all people read the text from 4th column and this can lead to serious mistakes and lot of time elapsed for bug hunting. WBR, D. Andrew Straw wrote: > No, the nth index of a Python sequence is a[n], where n starts from > zero. T

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

2007-04-29 Thread Andrew Straw
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. dmitrey wrote: > now there is > MATLAB

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

2007-04-29 Thread Keith Goodman
On 4/29/07, dmitrey <[EMAIL PROTECTED]> wrote: > now there is > MATLABNDArray Matrix > size(a,n) a.shape[n] a.shape[n] > > but it should be > size(a,n) a.shape[n-1] a.shape[n-1] I made the change. But how should we change the comment?

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

2007-04-29 Thread dmitrey
now there is MATLABNDArray Matrix size(a,n) a.shape[n] a.shape[n] but it should be size(a,n) a.shape[n-1] a.shape[n-1] WBR, D. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org h