-
#include "tensorstore/contiguous_layout.h" -
void tensorstore::SetPermutation(ContiguousLayoutOrder order,
span<DimensionIndex> permutation); Sets
permutationto ascending or descending order.If
order == c_order, setspermutationto{0, 1, ..., permutation.size()-1}.Otherwise, sets
permutationto{permutation.size()-1, ..., 1, 0}.