-
tensorstore.IndexDomain.transpose(self, axes: DimSelectionLike | None =
None
) IndexDomain Returns a view with a transposed domain.
This is equivalent to
self[ts.d[axes].transpose[:]]
.- Parameters:¶
- 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.
- axes: DimSelectionLike | None =
- Raises:¶
ValueError – If
axes
does not specify a valid permutation.
See also