Trait nalgebra::Row [] [src]

pub trait Row<R> {
    fn nrows(&self) -> usize;
    fn row(&self, i: usize) -> R;
    fn set_row(&mut self, i: usize, R);
}

Trait to access rows of a matrix or a vector.

Required Methods

fn nrows(&self) -> usize

The number of column of self.

fn row(&self, i: usize) -> R

Reads the i-th row of self.

fn set_row(&mut self, i: usize, R)

Writes the i-th row of self.

Implementors