[][src]Trait oxygengine_physics_2d::prelude::nalgebra::sparse::CsStorageIterMut

pub trait CsStorageIterMut<'a, N, R, C = U1> where
    N: 'a,
    <Self::ValuesMut as Iterator>::Item == &'a mut N,
    <Self::ColumnEntriesMut as Iterator>::Item == (usize, &'a mut N)
{ type ValuesMut: Iterator; type ColumnEntriesMut: Iterator; fn values_mut(&'a mut self) -> Self::ValuesMut;
fn column_entries_mut(&'a mut self, j: usize) -> Self::ColumnEntriesMut; }

Trait for mutably iterable compressed-column sparse matrix storage.

Associated Types

type ValuesMut: Iterator

Mutable iterator through all the values of the sparse matrix.

type ColumnEntriesMut: Iterator

Mutable iterator through all the rows of a specific columns.

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

Loading content...

Required methods

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

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

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

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

Loading content...

Implementors

impl<'a, N, R, C> CsStorageIterMut<'a, N, R, C> for CsVecStorage<N, R, C> where
    C: Dim,
    N: Scalar,
    R: Dim,
    DefaultAllocator: Allocator<usize, C, U1>, 
[src]

type ValuesMut = IterMut<'a, N>

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

Loading content...