pub trait CsStorageIterMut<'a, T, R, C = Const<1>>where
    T: 'a,{
    type ValuesMut: Iterator<Item = &'a mut T>;
    type ColumnEntriesMut: Iterator<Item = (usize, &'a mut T)>;

    // Required methods
    fn values_mut(&'a mut self) -> Self::ValuesMut;
    fn column_entries_mut(&'a mut self, j: usize) -> Self::ColumnEntriesMut;
}
Expand description

Trait for mutably iterable compressed-column sparse matrix storage.

Required Associated Types§

source

type ValuesMut: Iterator<Item = &'a mut T>

Mutable iterator through all the values of the sparse matrix.

source

type ColumnEntriesMut: Iterator<Item = (usize, &'a mut T)>

Mutable iterator through all the rows of a specific columns.

The elements are given as a tuple (row_index, value).

Required Methods§

source

fn values_mut(&'a mut self) -> Self::ValuesMut

A mutable iterator through the values buffer of the sparse matrix.

source

fn column_entries_mut(&'a mut self, j: usize) -> Self::ColumnEntriesMut

Iterates mutably through all the entries of the j-th column.

Implementors§

source§

impl<'a, T, R, C> CsStorageIterMut<'a, T, R, C> for CsVecStorage<T, R, C>where T: Scalar, R: Dim, C: Dim, DefaultAllocator: Allocator<usize, C, Const<1>>,

§

type ValuesMut = IterMut<'a, T>

§

type ColumnEntriesMut = Zip<Cloned<Iter<'a, usize>>, IterMut<'a, T>>