tensorstore.IndexTransform.transpose(self, axes: DimSelectionLike | None = None) IndexTransform

Returns a view with a transposed domain.

This is equivalent to self[ts.d[axes].transpose[:]].

axes: DimSelectionLike | None = None

Specifies the existing dimension corresponding to each dimension of the new view. Dimensions may be specified either by index or label. Specifying None is equivalent to specifying [rank-1, ..., 0], which reverses the dimension order.


ValueError – If axes does not specify a valid permutation.