Type Definition sprs::CsVecViewI [−][src]
type CsVecViewI<'a, N, I> = CsVecBase<&'a [I], &'a [N]>;
Trait Implementations
impl<'a, N: 'a, I: 'a> IntoSparseVecIter<'a, N> for CsVecViewI<'a, N, I> where
I: SpIndex,
[src]
impl<'a, N: 'a, I: 'a> IntoSparseVecIter<'a, N> for CsVecViewI<'a, N, I> where
I: SpIndex,
type IterType = VectorIterator<'a, N, I>
fn dim(&self) -> usize
[src]
fn dim(&self) -> usize
The dimension of the vector
ⓘImportant traits for VectorIterator<'a, N, I>fn into_sparse_vec_iter(self) -> VectorIterator<'a, N, I>
[src]
ⓘImportant traits for VectorIterator<'a, N, I>
fn into_sparse_vec_iter(self) -> VectorIterator<'a, N, I>
Transform self into an iterator that yields (usize, &N) tuples where the usize is the index of the value in the sparse vector. The indices should be sorted. Read more
fn is_dense(&self) -> bool
[src]
fn is_dense(&self) -> bool
Indicator to check whether the vector is actually dense
fn index(self, idx: usize) -> &'a N where
Self: Sized,
[src]
fn index(self, idx: usize) -> &'a N where
Self: Sized,
Random access to an element in the vector. Read more
impl<'a, N, I> Copy for CsVecViewI<'a, N, I>
[src]
impl<'a, N, I> Copy for CsVecViewI<'a, N, I>