Skip to main content

Preconditioner

Trait Preconditioner 

Source
pub trait Preconditioner<T: ComplexField>: Send + Sync {
    // Required method
    fn apply(&self, r: &Array1<T>) -> Array1<T>;
}
Expand description

Trait for preconditioners used in iterative solvers.

A preconditioner M approximates A^(-1), so that M*A is better conditioned than A alone. This accelerates convergence of iterative methods.

Required Methods§

Source

fn apply(&self, r: &Array1<T>) -> Array1<T>

Apply the preconditioner: y = M * r

This should approximate solving A * y = r

Implementors§