Function extendr_api::prelude::mat::from_row_major_slice_with_stride
pub fn from_row_major_slice_with_stride<E>(
slice: &[E],
nrows: usize,
ncols: usize,
row_stride: usize,
) -> MatRef<'_, E>where
E: SimpleEntity,
Expand description
Creates a MatRef
from slice views over the matrix data, and the matrix dimensions.
The data is interpreted in a row-major format, where the beginnings of two consecutive
rows are separated by row_stride
elements.