Type Alias RowMajorMatrixView

Source
pub type RowMajorMatrixView<'a, T> = DenseMatrix<T, &'a [T]>;

Aliased Type§

pub struct RowMajorMatrixView<'a, T> {
    pub values: &'a [T],
    pub width: usize,
    /* private fields */
}

Fields§

§values: &'a [T]

Flat buffer of matrix values in row-major order.

§width: usize

Number of columns in the matrix.

The number of rows is implicitly determined as values.len() / width.

Implementations§

Source§

impl<'a, T: Clone + Default + Send + Sync> RowMajorMatrixView<'a, T>

Source

pub fn as_cow(self) -> RowMajorMatrixCow<'a, T>