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§
Sourcefn residual_norm(&self) -> Precision
fn residual_norm(&self) -> Precision
Get the current residual norm.
Sourcefn matvec_count(&self) -> usize
fn matvec_count(&self) -> usize
Get the number of matrix-vector multiplications performed.
Sourcefn error_bounds(&self) -> Option<ErrorBounds>
fn error_bounds(&self) -> Option<ErrorBounds>
Get error bounds if available.
Sourcefn memory_usage(&self) -> MemoryInfo
fn memory_usage(&self) -> MemoryInfo
Get current memory usage.