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.


impl<'a> SparseArrayView<'a>

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>

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

Formats the value using the given formatter.

impl<'a> Clone for SparseArrayView<'a>

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<'a> NonzeroIterable for SparseArrayView<'a>

type Output = SparseArrayViewIterator<'a>

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