1 #ifndef ITERATIVE_SOLVER_DER_H 2 #define ITERATIVE_SOLVER_DER_H 63 {
return Gradient_at_accepted_points; }
70 virtual void print(std::ostream& Os)
const 71 { Os <<
"IterativeSolverDer"; }
92 { Gradient_at_accepted_points.push_back(gradient); }
97 std::vector< blitz::Array<double, 1> > Gradient_at_accepted_points;
The base class for all iterative optimizers that use first order derivatives.
virtual ~IterativeSolverDer()
virtual std::vector< blitz::Array< double, 1 > > gradient_at_accepted_points() const
Returns a vector (std) of gradients evaluated at accepted points.
void record_gradient_at_accepted_point(const blitz::Array< double, 1 > &gradient)
For recording the gradient of the cost function evaluated at an accepted point.
IterativeSolverDer(int max_cost_function_calls, bool vrbs)
Constructor.
virtual void print(std::ostream &Os) const
Prints description of object.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
The base class for all iterative optimizers.