Trait nalgebra::Column [] [src]

pub trait Column<C> {
    fn ncols(&self) -> usize;
    fn column(&self, i: usize) -> C;
    fn set_column(&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 column(&self, i: usize) -> C

Reads the i-th column of self.

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

Writes the i-th column of self.

Implementors