-
#include "tensorstore/contiguous_layout.h"
-
void tensorstore::InvertPermutation(DimensionIndex rank,
const DimensionIndex* perm,
DimensionIndex* inverse_perm); Sets
inverse_perm
to the inverse permutation ofperm
.- Parameters:¶
- in
- const DimensionIndex *perm¶
Pointer to array of length
rank
.- out
- DimensionIndex *inverse_perm¶
Pointer to array of length
rank
.
- Dchecks:¶
IsValidPermutation({perm, rank})
.