Trait nalgebra::Col [] [src]

pub trait Col<C> {
    fn ncols(&self) -> usize;
    fn col(&self, i: usize) -> C;
    fn set_col(&mut self, i: usize, C);
}

Trait to access columns of a matrix or vector.

Required Methods

fn ncols(&self) -> usize

The number of column of this matrix or vector.

fn col(&self, i: usize) -> C

Reads the i-th column of self.

fn set_col(&mut self, i: usize, C)

Writes the i-th column of self.

Implementors