scipp.transpose#
- scipp.transpose(x, dims=None)#
Transpose dimensions of the input.
- Parameters:
x (
scipp.typing.VariableLike) – Object to transpose.dims (
Sequence[str] |None, 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
dimsare incompatible with the input data.