-
tensorstore.TensorStore.transpose(self, axes: DimSelectionLike | None =
None) TensorStore 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
Noneis equivalent to specifying[rank-1, ..., 0], which reverses the dimension order.
- axes: DimSelectionLike | None =
- Raises:¶
ValueError – If
axesdoes not specify a valid permutation.
See also