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