SolverState

Trait SolverState 

Source
pub trait SolverState: Send + Sync {
    // Required methods
    fn residual_norm(&self) -> Precision;
    fn matvec_count(&self) -> usize;
    fn error_bounds(&self) -> Option<ErrorBounds>;
    fn memory_usage(&self) -> MemoryInfo;
    fn reset(&mut self);
}
Expand description

Trait for solver state management.

Required Methods§

Source

fn residual_norm(&self) -> Precision

Get the current residual norm.

Source

fn matvec_count(&self) -> usize

Get the number of matrix-vector multiplications performed.

Source

fn error_bounds(&self) -> Option<ErrorBounds>

Get error bounds if available.

Source

fn memory_usage(&self) -> MemoryInfo

Get current memory usage.

Source

fn reset(&mut self)

Reset the state for a new solve.

Implementations on Foreign Types§

Source§

impl SolverState for ()

Implementors§