Roll the specified axis backwards, until it lies in a given position.
Parameters: | a : ndarray
axis : int
start : int, optional
|
---|---|
Returns: | res : ndarray
|
See also
Examples
>>> a = np.ones((3,4,5,6))
>>> np.rollaxis(a, 3, 1).shape
(3, 6, 4, 5)
>>> np.rollaxis(a, 2).shape
(5, 3, 4, 6)
>>> np.rollaxis(a, 1, 4).shape
(3, 5, 6, 4)