76 virtual double cost();
83 virtual blitz::Array<double, 1>
gradient();
113 virtual blitz::Array<double, 1>
residual() = 0;
132 virtual blitz::Array<double, 1>
residual_x(
const blitz::Array<double, 1>& x)
167 virtual blitz::Array<double, 2>
jacobian() = 0;
186 virtual blitz::Array<double, 2>
jacobian_x(
const blitz::Array<double, 1>& x)
216 blitz::Array<double, 1>& r, blitz::Array<double, 2>& j);
236 blitz::Array<double, 1>& r, blitz::Array<double, 2>& j)
276 virtual void print(std::ostream& Os)
const 277 { Os <<
"NLLSProblem"; }
virtual blitz::Array< double, 1 > parameters() const
Returns the current parameters.
NLLSProblem()
Default Constructor.
virtual int num_der1_evaluations() const
Returns the number of the times gradient has been evaluated.
virtual void residual_jacobian_x(const blitz::Array< double, 1 > &x, blitz::Array< double, 1 > &r, blitz::Array< double, 2 > &j)
The residual and its Jacobian with parameters.
virtual double cost()
Read comments on CostFunc::cost()
virtual blitz::Array< double, 1 > residual()=0
The residual vector function.
virtual blitz::Array< double, 1 > residual_x(const blitz::Array< double, 1 > &x)
The residual function with parameters.
virtual int num_jacobian_evaluations() const
Returns the number of the times Jacobian has been evaluated.
virtual blitz::Array< double, 2 > jacobian()=0
The Jacobian matrix function.
virtual int num_residual_evaluations() const
Returns the number of the times residual has been evaluated.
The base class for the Non-Linear Least Squares problem.
The base class for all problem classes that implement a cost function and its gradient.
virtual int num_cost_evaluations() const
Returns the number of the times cost has been evaluated.
virtual blitz::Array< double, 1 > gradient()
Read comments on CostFuncDiff::gradient()
virtual blitz::Array< double, 2 > jacobian_x(const blitz::Array< double, 1 > &x)
The Jacobian function with parameters.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
virtual void residual_jacobian(blitz::Array< double, 1 > &r, blitz::Array< double, 2 > &j)
The residual function and its Jacobian together.
virtual void print(std::ostream &Os) const
Prints description of object.
virtual int residual_size() const =0
The size of the residual returned by residual()