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