Struct rustlearn::array::sparse::SparseArrayView [−][src]
pub struct SparseArrayView<'a> { /* fields omitted */ }
A view into a row or a column of an existing sparse matrix.
Methods
impl<'a> SparseArrayView<'a>
[src]
impl<'a> SparseArrayView<'a>
pub fn indices(&self) -> &[usize]
[src]
pub fn indices(&self) -> &[usize]
Returns a reference to indices of nonzero entries of the view.
pub fn data(&self) -> &[f32]
[src]
pub fn data(&self) -> &[f32]
Returns a reference to values of nonzero entries of the view.
pub fn nnz(&self) -> usize
[src]
pub fn nnz(&self) -> usize
Returns the count of nonzero entries of the view.
Trait Implementations
impl<'a> Clone for SparseArrayView<'a>
[src]
impl<'a> Clone for SparseArrayView<'a>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for SparseArrayView<'a>
[src]
impl<'a> Debug for SparseArrayView<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> NonzeroIterable for SparseArrayView<'a>
[src]
impl<'a> NonzeroIterable for SparseArrayView<'a>
type Output = SparseArrayViewIterator<'a>
ⓘImportant traits for SparseArrayViewIterator<'a>fn iter_nonzero(&self) -> SparseArrayViewIterator<'a>
[src]
ⓘImportant traits for SparseArrayViewIterator<'a>
fn iter_nonzero(&self) -> SparseArrayViewIterator<'a>
Auto Trait Implementations
impl<'a> Send for SparseArrayView<'a>
impl<'a> Send for SparseArrayView<'a>
impl<'a> Sync for SparseArrayView<'a>
impl<'a> Sync for SparseArrayView<'a>