cf.BoundedVariable.transpose¶
-
BoundedVariable.
transpose
(axes=None, i=False)[source]¶ Permute the dimensions of the data.
New in version 2.0.
See also
Parameters: - axes : (sequence of) int, optional
The new order of the data array. By default, reverse the dimensions’ order, otherwise the axes are permuted according to the values given. The values of the sequence comprise the integer positions of the dimensions in the data array in the desired order.
- i:
bool
, optional If True then update the bounded variable in place. By default a new bounded variable is created. In either case, a bounded variable is returned.
Returns: out : cf.BoundedVariable
Examples: >>> c.ndim 3 >>> c.transpose() >>> c.transpose([1, 2, 0])