cf.CellMeasure.transpose

CellMeasure.transpose(axes=None)[source]

Permute the dimensions of the data array in place.

Parameters :
axes : sequence of ints, 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.

Returns :

None

Examples

>>> v.transpose()
>>> v.ndim
3
>>> v.transpose([1, 2, 0])

Previous topic

cf.CellMeasure.squeeze

Next topic

cf.CellMethods

This Page