-
#include "tensorstore/contiguous_layout.h"
-
void tensorstore::ComputeStrides(ContiguousLayoutOrder order,
ptrdiff_t element_stride,
span<const Index> shape,
span<Index> strides); -
void tensorstore::ComputeStrides(
ContiguousLayoutPermutation<> permutation,
ptrdiff_t element_stride,
span<const Index> shape,
span<Index> strides); Computes strides for the specified layout order.