[Numpy-discussion] dimension aligment
Charles R Harris
Tue May 20 12:56:23 CDT 2008
On Tue, May 20, 2008 at 11:47 AM, Thomas Hrabe <email@example.com> wrote:
> Hi all,
> just a simple question regarding the alignment of dimensions:
> given a 3d array
> a =
> returns (4,2,3)
> so I assume the first digit is the 3rd dimension, second is 2nd dim and
> third is the first.
Only if you count from the right. I would call the first digit the first
> how is the data aligned in memory now?
> according to the strides it should be
Like a C array, contiguous and the rightmost dimension varies fastest.
> if I had an array of more dimensions, the first digit returned by shape
> should always be the highest dim.
Yes. Athough first is less ambiguous than highest
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion