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