Trait peroxide::traits::matrix::LinearAlgebra

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

Linear algebra trait

Required Methods§

source

fn back_subs(&self, b: &[M::Scalar]) -> Vec<M::Scalar>

source

fn forward_subs(&self, b: &[M::Scalar]) -> Vec<M::Scalar>

source

fn lu(&self) -> PQLU<M>

source

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

source

fn qr(&self) -> QR<M>

source

fn svd(&self) -> SVD<M>

source

fn cholesky(&self, uplo: UPLO) -> M

source

fn rref(&self) -> M

source

fn det(&self) -> M::Scalar

source

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

source

fn inv(&self) -> M

source

fn pseudo_inv(&self) -> M

source

fn solve(&self, b: &[M::Scalar], sk: SolveKind) -> Vec<M::Scalar>

source

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

source

fn is_symmetric(&self) -> bool

Implementors§

source§

impl LinearAlgebra<ComplexMatrix> for ComplexMatrix

source§

impl LinearAlgebra<Matrix> for Matrix

source§

impl LinearAlgebra<Matrix> for SPMatrix

Linear algebra for sparse matrix

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