Trait sprs::SparseMat[][src]

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

The number of rows of this matrix

fn cols(&self) -> usize[src]

The number of columns of this matrix

fn nnz(&self) -> usize[src]

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, Iptr, IpS, IS, DS> SparseMat for &'a CsMatBase<N, I, IpS, IS, DS, Iptr> where
    I: 'a + SpIndex,
    Iptr: 'a + SpIndex,
    N: 'a,
    IpS: Deref<Target = [Iptr]>,
    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, Iptr, IpS, IS, DS> SparseMat for CsMatBase<N, I, IpS, IS, DS, Iptr> where
    I: SpIndex,
    Iptr: SpIndex,
    IpS: Deref<Target = [Iptr]>,
    IS: Deref<Target = [I]>,
    DS: Deref<Target = [N]>, 
[src]

Loading content...