Trait rustlearn::array::traits::ColumnIterable [] [src]

pub trait ColumnIterable {
    type Item: NonzeroIterable;
    type Output: Iterator<Item=Self::Item>;
    fn iter_columns(self) -> Self::Output;
    fn iter_columns_range(self, range: Range<usize>) -> Self::Output;
    fn view_column(self, idx: usize) -> Self::Item;
}

Trait representing a matrix that can be iterated over in a column-wise fashion.

Associated Types

type Item: NonzeroIterable

type Output: Iterator<Item=Self::Item>

Required Methods

fn iter_columns(self) -> Self::Output

Iterate over columns of a the matrix.

fn iter_columns_range(self, range: Range<usize>) -> Self::Output

Iterate over a subset of columns of the matrix.

fn view_column(self, idx: usize) -> Self::Item

View a column of the matrix.

Implementors