[][src]Trait matrixcompare_core::SparseAccess

pub trait SparseAccess<T>: Matrix<T> {
    fn nnz(&self) -> usize;
fn fetch_triplets(&self) -> Vec<(usize, usize, T)>; }

Access to a sparse matrix.

Required methods

fn nnz(&self) -> usize

Number of non-zero elements in the matrix.

fn fetch_triplets(&self) -> Vec<(usize, usize, T)>

Retrieve the triplets that identify the coefficients of the sparse matrix.

Loading content...

Implementations on Foreign Types

impl<'_, T, X> SparseAccess<T> for &'_ X where
    X: SparseAccess<T>, 
[src]

Loading content...

Implementors

Loading content...