Trait oxygengine_physics_2d::prelude::nalgebra::sparse::CsStorageIterMut
source · 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§
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.