[][src]Trait sprs::SparseMat

pub trait SparseMat {
    fn rows(&self) -> usize;
fn cols(&self) -> usize;
fn nnz(&self) -> usize; }

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

Loading content...

Implementors

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]>, 
[src]

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]>, 
[src]

impl<N, I, IS, DS> SparseMat for TriMatBase<IS, DS> where
    I: SpIndex,
    IS: Deref<Target = [I]>,
    DS: Deref<Target = [N]>, 
[src]

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]>, 
[src]

Loading content...