Trait peroxide::structure::matrix::LinearAlgebra

source ·
pub trait LinearAlgebra {
Show 14 methods // Required methods fn back_subs(&self, b: &Vec<f64>) -> Vec<f64>; fn forward_subs(&self, b: &Vec<f64>) -> Vec<f64>; fn lu(&self) -> PQLU; fn waz(&self, d_form: Form) -> Option<WAZD>; fn qr(&self) -> QR; fn svd(&self) -> SVD; fn rref(&self) -> Matrix; fn det(&self) -> f64; fn block(&self) -> (Matrix, Matrix, Matrix, Matrix); fn inv(&self) -> Matrix; fn pseudo_inv(&self) -> Matrix; fn solve(&self, b: &Vec<f64>, sk: SolveKind) -> Vec<f64>; fn solve_mat(&self, m: &Matrix, sk: SolveKind) -> Matrix; fn is_symmetric(&self) -> bool;
}
Expand description

Linear algebra trait

Required Methods§

source

fn back_subs(&self, b: &Vec<f64>) -> Vec<f64>

source

fn forward_subs(&self, b: &Vec<f64>) -> Vec<f64>

source

fn lu(&self) -> PQLU

source

fn waz(&self, d_form: Form) -> Option<WAZD>

source

fn qr(&self) -> QR

source

fn svd(&self) -> SVD

source

fn rref(&self) -> Matrix

source

fn det(&self) -> f64

source

fn block(&self) -> (Matrix, Matrix, Matrix, Matrix)

source

fn inv(&self) -> Matrix

source

fn pseudo_inv(&self) -> Matrix

source

fn solve(&self, b: &Vec<f64>, sk: SolveKind) -> Vec<f64>

source

fn solve_mat(&self, m: &Matrix, sk: SolveKind) -> Matrix

source

fn is_symmetric(&self) -> bool

Implementors§

source§

impl LinearAlgebra for SPMatrix

Linear algebra for sparse matrix

Caution : In every ops in this trait, there is converting process to dense matrix

source§

impl LinearAlgebra for Matrix