Trait argmin_core::ArgminNextIter
source · pub trait ArgminNextIter {
type Parameters: Clone;
type OperatorOutput;
type Hessian;
fn next_iter(
&mut self
) -> Result<ArgminIterationData<Self::Parameters>, Error>;
fn init(&mut self) -> Result<(), Error> { ... }
}
Expand description
Main part of every solver: next_iter
computes one iteration of the algorithm and init
is
executed before these iterations. The init
method comes with a default implementation which
corresponds to doing nothing.
Required Associated Types
sourcetype Parameters: Clone
type Parameters: Clone
Parameter vectors
sourcetype OperatorOutput
type OperatorOutput
Output of the operator
Required Methods
sourcefn next_iter(&mut self) -> Result<ArgminIterationData<Self::Parameters>, Error>
fn next_iter(&mut self) -> Result<ArgminIterationData<Self::Parameters>, Error>
Computes one iteration of the algorithm.