Trait scirust::matrix::eo::eo_traits::ERO [] [src]

pub trait ERO<T: MagmaBase + Num>: Shape<T> + MatrixBuffer<T> + Strided {
    fn ero_switch(&mut self, i: usize, j: usize) -> &mut Self { ... }
    fn ero_scale(&mut self, r: usize, scale: T) -> &mut Self { ... }
    fn ero_scale_slice(&mut self, r: usize, scale: T, start: usize, end: usize) -> &mut Self { ... }
    fn ero_scale_add(&mut self, i: usize, j: isize, scale: T) -> &mut Self { ... }
}

Elementary row operations on a matrix

Provided Methods

fn ero_switch(&mut self, i: usize, j: usize) -> &mut Self

Row switching.

fn ero_scale(&mut self, r: usize, scale: T) -> &mut Self

Row scaling by a factor.

fn ero_scale_slice(&mut self, r: usize, scale: T, start: usize, end: usize) -> &mut Self

Row scaling by a factor over a slice of the row. [start, end)

fn ero_scale_add(&mut self, i: usize, j: isize, scale: T) -> &mut Self

Row scaling by a factor and adding to another row. r_i = r_i + k * r_j

Implementors