-
#include "tensorstore/index_space/index_transform.h"
-
IndexTransform<InputRank, OutputRank>
tensorstore::IndexTransform<InputRank, OutputRank, CKind>::Transpose(
span<const DimensionIndex, InputRank> permutation) const&; -
IndexTransform<InputRank, OutputRank>
tensorstore::IndexTransform<InputRank, OutputRank, CKind>::Transpose(
span<const DimensionIndex, InputRank> permutation) &&; Returns a new transform with the input dimension order permuted.
If
!valid()
, returns an invalid view.- Parameters:¶
- span<const DimensionIndex, InputRank> permutation¶
Permutation of
0, ..., input_rank()-1
, wherepermutation[i]
specifies the dimension of the existing transform that corresponds to input dimensioni
of the new transform.
- Dchecks:¶
permutation
is a valid permutation.