Skip to main content

StepEstimator

Trait StepEstimator 

Source
pub trait StepEstimator:
    Clone
    + Debug
    + Display {
    // Required method
    fn estimate(
        &self,
        ss: Scalar,
        sy: Scalar,
        yy: Scalar,
        iteration: usize,
    ) -> Scalar;
}
Expand description

Ways of estimating a step size from the last two iterates.

What an estimator is given are the products of the change in solution $s$ and the change in residual $y$ between them, and the number of estimates it has made before, so that it holds nothing of its own.

Required Methods§

Source

fn estimate( &self, ss: Scalar, sy: Scalar, yy: Scalar, iteration: usize, ) -> Scalar

The step size suggested by $s^Ts$, $s^Ty$ and $y^Ty$.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§