Permute the dimensions of the data array in place.
Parameters : |
|
---|---|
Returns : |
|
See also
Examples
>>> d.ndim
3
>>> d.shape
(19, 73, 96)
>>> d.dimensions
['dim0', 'dim1', 'dim2']
>>> d.transpose()
>>> d.shape
(96, 73, 19)
>>> d.transpose([1, 0, 2])
>>> d.shape
(73, 96, 19)
>>> d.transpose(['dim2', 'dim0', 'dim1'])
>>> d.shape
(96, 19, 73)
>>> d.dimensions
['dim2', 'dim0', 'dim1']
>>> d.transpose((1, 'dim1', 0))
>>> d.shape
(19, 73, 96)