Trait matrixcompare::SparseAccess [−][src]
pub trait SparseAccess<T>: Matrix<T> { pub fn nnz(&self) -> usize; pub fn fetch_triplets(&self) -> Vec<(usize, usize, T), Global>; }
Access to a sparse matrix.
Required methods
pub fn nnz(&self) -> usize
[src]
Number of non-zero elements in the matrix.
pub fn fetch_triplets(&self) -> Vec<(usize, usize, T), Global>
[src]
Retrieve the triplets that identify the coefficients of the sparse matrix.
Implementations on Foreign Types
impl<'_, T, X> SparseAccess<T> for &'_ X where
X: SparseAccess<T>,
[src]
impl<'_, T, X> SparseAccess<T> for &'_ X where
X: SparseAccess<T>,
[src]