Struct rustlearn::array::sparse::SparseArrayView [] [src]

pub struct SparseArrayView<'a> {
    // some fields omitted
}

A view into a row or a column of an existing sparse matrix.

Methods

impl<'a> SparseArrayView<'a>
[src]

fn indices(&self) -> &[usize]

Returns a reference to indices of nonzero entries of the view.

fn data(&self) -> &[f32]

Returns a reference to values of nonzero entries of the view.

fn nnz(&self) -> usize

Returns the count of nonzero entries of the view.

Trait Implementations

impl<'a> Debug for SparseArrayView<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Clone for SparseArrayView<'a>
[src]

fn clone(&self) -> SparseArrayView<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> NonzeroIterable for SparseArrayView<'a>
[src]

type Output = SparseArrayViewIterator<'a>

fn iter_nonzero(&self) -> SparseArrayViewIterator<'a>