Trait sprs::SparseMat [−][src]
A trait for common members of sparse matrices
Required Methods
fn rows(&self) -> usize
The number of rows of this matrix
fn cols(&self) -> usize
The number of columns of this matrix
fn nnz(&self) -> usize
The number of nonzeros of this matrix
Implementors
impl<N, I, IpS, IS, DS> SparseMat for CsMatBase<N, I, IpS, IS, DS> where
I: SpIndex,
IpS: Deref<Target = [I]>,
IS: Deref<Target = [I]>,
DS: Deref<Target = [N]>,impl<'a, N, I, IpS, IS, DS> SparseMat for &'a CsMatBase<N, I, IpS, IS, DS> where
I: 'a + SpIndex,
N: 'a,
IpS: Deref<Target = [I]>,
IS: Deref<Target = [I]>,
DS: Deref<Target = [N]>,impl<N, I, IS, DS> SparseMat for TriMatBase<IS, DS> where
I: SpIndex,
IS: Deref<Target = [I]>,
DS: Deref<Target = [N]>,impl<'a, N, I, IS, DS> SparseMat for &'a TriMatBase<IS, DS> where
I: 'a + SpIndex,
N: 'a,
IS: Deref<Target = [I]>,
DS: Deref<Target = [N]>,