Re: [Numpy-discussion] dimension aligment

2008-05-20 Thread Anne Archibald
2008/5/20 Thomas Hrabe <[EMAIL PROTECTED]>: > given a 3d array > a = > numpy.array([[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]],[[19,20,21],[22,23,24]]]) > a.shape > returns (4,2,3) > > so I assume the first digit is the 3rd dimension, second is 2nd dim and > third is the first.

Re: [Numpy-discussion] dimension aligment

2008-05-20 Thread Thomas Hrabe
I am wandering what shape would be like in C would it be {4;2;3} or {3;2;4} ? so shape[0] == 4 or shape[0] == 3 -Original Message- From: [EMAIL PROTECTED] on behalf of Charles R Harris Sent: Tue 5/20/2008 10:56 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion

Re: [Numpy-discussion] dimension aligment

2008-05-20 Thread Charles R Harris
On Tue, May 20, 2008 at 11:47 AM, Thomas Hrabe <[EMAIL PROTECTED]> wrote: > > Hi all, > > just a simple question regarding the alignment of dimensions: > > > given a 3d array > a = > numpy.array([[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]],[[19,20,21],[22,23,24]]]) > a.shape > r

[Numpy-discussion] dimension aligment

2008-05-20 Thread Thomas Hrabe
Hi all, just a simple question regarding the alignment of dimensions: given a 3d array a = numpy.array([[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]],[[19,20,21],[22,23,24]]]) a.shape returns (4,2,3) so I assume the first digit is the 3rd dimension, second is 2nd dim and thi