LinearTransform

Trait LinearTransform 

Source
pub trait LinearTransform: VectorTransform {
    // Required methods
    fn transform_transpose(&self, y: &[f32]) -> Vec<f32>;
    fn set_is_orthonormal(&mut self);
    fn have_bias(&self) -> bool;
    fn is_orthonormal(&self) -> bool;
}

Required Methods§

Source

fn transform_transpose(&self, y: &[f32]) -> Vec<f32>

compute x = A^T * (x - b) is reverse transform if A has orthonormal lines

Source

fn set_is_orthonormal(&mut self)

compute A^T * A to set the is_orthonormal flag

Source

fn have_bias(&self) -> bool

Getter for have_bias

Source

fn is_orthonormal(&self) -> bool

Getter for is_orthonormal

Implementors§