pub fn index_offset_contiguous<T: Scalar, N: Size>( tensor: &Tensor<Vector<T, N>>, offset_layout: usize, rank: Option<usize>, ) -> usize
Returns the offset of the tensor corresponding to a contiguous layout.