18 Jul
2010
18 Jul
'10
2:04 a.m.
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
5277
Age (days ago)
5277
Last active (days ago)
0 comments
1 participants
participants (1)
-
Charles R Harris