extendr_api::prelude::mat

Function from_row_major_slice_with_stride_mut_generic

pub fn from_row_major_slice_with_stride_mut_generic<E>(
    slice: <<E as Entity>::Group as ForType>::FaerOf<&mut [<E as Entity>::Unit]>,
    nrows: usize,
    ncols: usize,
    row_stride: usize,
) -> MatMut<'_, E>
where E: Entity,
Expand description

Creates a MatMut 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.