pub trait CsStorageIter<'a, T, R, C = U1> {
    type ColumnEntries: Iterator<Item = (usize, T)>;
    type ColumnRowIndices: Iterator<Item = usize>;

    // Required methods
    fn column_row_indices(&'a self, j: usize) -> Self::ColumnRowIndices;
    fn column_entries(&'a self, j: usize) -> Self::ColumnEntries;
}
Expand description

Trait for iterable compressed-column matrix storage.

Required Associated Types§

source

type ColumnEntries: Iterator<Item = (usize, T)>

Iterator through all the rows of a specific columns.

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

source

type ColumnRowIndices: Iterator<Item = usize>

Iterator through the row indices of a specific column.

Required Methods§

source

fn column_row_indices(&'a self, j: usize) -> Self::ColumnRowIndices

Iterates through all the row indices of the j-th column.

source

fn column_entries(&'a self, j: usize) -> Self::ColumnEntries

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

Implementors§

source§

impl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIter<'a, T, R, C> for CsVecStorage<T, R, C>

§

type ColumnEntries = ColumnEntries<'a, T>

§

type ColumnRowIndices = Cloned<Iter<'a, usize>>