Skip to main content

FactorizedSystem

Trait FactorizedSystem 

Source
pub trait FactorizedSystem: Send + Sync {
    // Required methods
    fn solve(&self, rhs: &Array1<f64>) -> Result<Array1<f64>, String>;
    fn solvemulti(&self, rhs: &Array2<f64>) -> Result<Array2<f64>, String>;
    fn logdet(&self) -> f64;
}
Expand description

A generic abstraction over a factorized symmetric positive-definite (or regularized) system.

Required Methods§

Source

fn solve(&self, rhs: &Array1<f64>) -> Result<Array1<f64>, String>

Solve $H x = b$ for a single right-hand side.

Source

fn solvemulti(&self, rhs: &Array2<f64>) -> Result<Array2<f64>, String>

Solve $H X = B$ for multiple right-hand sides.

Source

fn logdet(&self) -> f64

Return the log-determinant of the factorized matrix.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§