scipp.transpose#
- scipp.transpose(x, dims=None)#
Transpose dimensions of the input.
- Parameters:
x (
scipp.typing.VariableLike
) – Object to transpose.dims (
Optional
[Sequence
[str
]], default:None
) – List of dimensions in desired order. IfNone
, reverses existing order.
- Returns:
Same type as input
– The transpose of the input.- Raises:
scipp.DimensionError – If
dims
are incompatible with the input data.