#include "tensorstore/strided_layout.h"
template <typename LayoutOrder,
         
 DimensionIndex Rank,
         
 ArrayOriginKind OriginKind>
  
requires IsContiguousLayoutOrder<LayoutOrder, Rank>
void tensorstore::InitializeContiguousLayout(
    
LayoutOrder order,
    
Index element_stride,
    
StridedLayout<Rank, OriginKind>layout);

Assigns layout->byte_strides() to correspond to a contiguous layout that matches the existing value of layout->shape().

Parameters:
LayoutOrder order

The layout order to use. If layout->rank() == 0, this has no effect.

Index element_stride

The byte stride for the innermost dimension. If layout->rank() == 0, this has no effect.

in,out
StridedLayout<Rank, OriginKind> *layout

The layout to update.