-
#include "tensorstore/contiguous_layout.h"
-
void tensorstore::SetPermutationFromStrides(
span<const Index> strides,
span<DimensionIndex> permutation); Sets
permutation
to a permutation that matches the dimension order ofstrides
.Specifically,
permutation
is ordered by descending stride magnitude, and then ascending dimension index.