[][src]Trait argmin_core::ArgminIter

pub trait ArgminIter {
    type Param;
    type Output;
    type Hessian;
    fn next_iter(&mut self) -> Result<ArgminIterData<Self::Param>, Error>;

    fn init(&mut self) -> Result<(), Error> { ... }
}

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.

Associated Types

type Param

Parameter vectors

type Output

Output of the operator

type Hessian

Hessian

Loading content...

Required methods

fn next_iter(&mut self) -> Result<ArgminIterData<Self::Param>, Error>

Computes one iteration of the algorithm.

Loading content...

Provided methods

fn init(&mut self) -> Result<(), Error>

Initializes the algorithm

This is executed before any iterations are performed. It can be used to perform precomputations. The default implementation corresponds to doing nothing.

Loading content...

Implementors

Loading content...