Type Definition sprs::CsVecViewI
source · pub type CsVecViewI<'a, N, I = usize> = CsVecBase<&'a [I], &'a [N], N, I>;
Implementations§
source§impl<'a, N: 'a, I: 'a + SpIndex> CsVecViewI<'a, N, I>
impl<'a, N: 'a, I: 'a + SpIndex> CsVecViewI<'a, N, I>
Trait Implementations§
source§impl<'a, N: 'a, I> IntoSparseVecIter<'a, N> for CsVecViewI<'a, N, I>where
I: SpIndex + 'a,
impl<'a, N: 'a, I> IntoSparseVecIter<'a, N> for CsVecViewI<'a, N, I>where I: SpIndex + 'a,
type IterType = VectorIterator<'a, N, I>
source§fn into_sparse_vec_iter(self) -> 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.