Trait p3_matrix::row_index_mapped::RowIndexMap

source ·
pub trait RowIndexMap: Send + Sync {
    // Required methods
    fn height(&self) -> usize;
    fn map_row_index(&self, r: usize) -> usize;

    // Provided method
    fn to_row_major_matrix<T: Clone + Send + Sync, Inner: Matrix<T>>(
        &self,
        inner: Inner,
    ) -> RowMajorMatrix<T> { ... }
}
Expand description

A RowIndexMap remaps row indices, and can change the height.

Required Methods§

source

fn height(&self) -> usize

source

fn map_row_index(&self, r: usize) -> usize

Provided Methods§

source

fn to_row_major_matrix<T: Clone + Send + Sync, Inner: Matrix<T>>( &self, inner: Inner, ) -> RowMajorMatrix<T>

Permutations can optionally provide an optimized method to convert to dense form.

Object Safety§

This trait is not object safe.

Implementors§