Trait mop_structs::prelude::CompressedMatrix [−][src]
pub trait CompressedMatrix<T>: Matrix<T> { fn data(&self) -> &[T]; fn indcs(&self) -> &[usize]; fn nnz(&self) -> usize; fn ptrs(&self) -> &[usize]; fn row_iter(&self) -> CsrMatrixRowIter<T>; fn row(&self, idx: usize) -> CsVecSlice<T> { ... } fn value(&self, row_idx: usize, col_idx: usize) -> Option<&T> { ... } }
Required Methods
fn data(&self) -> &[T]
fn indcs(&self) -> &[usize]
fn nnz(&self) -> usize
fn ptrs(&self) -> &[usize]
ⓘImportant traits for CsrMatrixRowIter<'a, T>
fn row_iter(&self) -> CsrMatrixRowIter<T>
Provided Methods
fn row(&self, idx: usize) -> CsVecSlice<T>
fn value(&self, row_idx: usize, col_idx: usize) -> Option<&T>
Implementors
impl<T> CompressedMatrix<T> for CsrMatrixAlloc<T>
impl<'a, T> CompressedMatrix<T> for CsrMatrixSlice<'a, T>
impl<'a, T> CompressedMatrix<T> for CsrMatrixSliceMut<'a, T>