[Numpy-discussion] rollaxis
Charles R Harris
charlesr.harris at gmail.com
Sat Jul 17 22:04:43 EDT 2010
So,
In [14]: x = zeros((2,3,4))
In [15]: rollaxis(x,0,3).shape
Out[15]: (3, 4, 2)
In [16]: rollaxis(x,0,2).shape
Out[16]: (3, 2, 4)
In [17]: rollaxis(x,0,1).shape
Out[17]: (2, 3, 4)
In [18]: rollaxis(x,0,0).shape
Out[18]: (2, 3, 4)
How come rollaxis(x,0,0) doesn't move 2 to the end ;) That's what the
documentation implies.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100717/f5dde2c0/attachment.html>
More information about the NumPy-Discussion
mailing list