Trait nalgebra::sparse::CsStorageIterMut
source · pub trait CsStorageIterMut<'a, T: 'a, R, C = U1> {
type ValuesMut: Iterator<Item = &'a mut T>;
type ColumnEntriesMut: Iterator<Item = (usize, &'a mut T)>;
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
sourcetype ValuesMut: Iterator<Item = &'a mut T>
type ValuesMut: Iterator<Item = &'a mut T>
Mutable iterator through all the values of the sparse matrix.
sourcetype ColumnEntriesMut: Iterator<Item = (usize, &'a mut T)>
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
sourcefn values_mut(&'a mut self) -> Self::ValuesMut
fn values_mut(&'a mut self) -> Self::ValuesMut
A mutable iterator through the values buffer of the sparse matrix.
sourcefn column_entries_mut(&'a mut self, j: usize) -> Self::ColumnEntriesMut
fn column_entries_mut(&'a mut self, j: usize) -> Self::ColumnEntriesMut
Iterates mutably through all the entries of the j-th column.