Function is_contiguous
Source pub fn is_contiguous(shape: &[usize], strides: &[isize]) -> bool
Expand description
Checks if strides represent a contiguous memory layout.
§Arguments
shape - The tensor shape
strides - The tensor strides
§Returns
True if the tensor is contiguous in memory.