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