#include <CGStep.h>
Public Member Functions | |
CGStep () | |
CGStep (Vector &mod, Vector &data) | |
virtual bool | Step (int iter, Vector &m, Vector &g, Vector &rr, Vector &gg, double &res, bool verbose=false) |
virtual void | Alloc_step (Vector &mod, Vector &data) |
virtual | ~CGStep () |
![]() | |
Stepper () | |
virtual | ~Stepper () |
virtual void | Alloc_step (Vector, Vector) |
virtual bool | Step (int, Vector, Vector, Vector, Vector, double) |
Definition at line 6 of file CGStep.cpp.
|
virtual |
As a certain iteration, this updates model m with gradient g. The previous updates to m and g are rr and gg. res is the residual (Am-data). If you want an output of iter #, alpha, beta (step scale), add optional verbose = true. By default verbose = false.
Definition at line 17 of file CGStep.cpp.