-
#include "tensorstore/contiguous_layout.h"
-
bool tensorstore::PermutationMatchesOrder(
span<const DimensionIndex> permutation,
ContiguousLayoutOrder order); Returns
true
ifpermutation
is{0, 1, ..., permutation.size()-1}
iforder == c_order
, or{permutation.size() - 1, ..., 1, 0}
iforder == fortran_order
.