cf.transpose

cf.transpose(x, *args, **kwargs)[source]

Return a new variable with permuted data array dimensions.

The variable must have a copy method and an in-place transpose method, such as a cf.Field object. Any optional positional and keyword arguments are passed unchanged to the variable’s transpose method.

See the variable’s transpose method for details.

Parameters :
x :

The input variable.

args, kwargs :

See the input variable’s transpose method.

Returns :
out :

A new variable with permuted data array dimensions.

Previous topic

cf.squeeze

Next topic

cf.unsqueeze

This Page