Interchange two axes of an array.
Parameters : |
|
---|---|
Returns : | out : cf.Data |
See also
Examples
>>> d=cf.Data([[[1, 2, 3], [4, 5, 6]]])
>>> d.shape
(1, 2, 3)
>>> d.swapaxes(1, 0).shape
>>> d.swapaxes(2, 1).shape
>>> d.swapaxes(0, -1).shape
>>> d.swapaxes(1, 1).shape