20 #ifndef IPO_FUNCTION_CONCRETE_SUMOFSQUARES_HPP
21 #define IPO_FUNCTION_CONCRETE_SUMOFQSUARES_HPP
23 #include"../Function.hpp"
24 #include"../DerivativesEstimates.hpp"
49 double operator()( gsl::vector
const& vector );
55 gsl::vector
gradient( gsl::vector
const& vector );
61 gsl::matrix
hessian( gsl::vector
const& vector );
66 void setVector( gsl::vector
const& vector );
virtual gsl::matrix hessian() const
virtual gsl::vector gradient() const
Base class for derivative estimates with Hessian.
void setVector(gsl::vector const &vector)
Set a vector and compute function value, gradient and Hessian efficiently.
double operator()(gsl::vector const &vector)
The function operator: computes the sum of the vector entries.
This class has two purposes.
Namespace for functions that can be used by ipo::Objective and ipo::Constraint.
This class computes a function at a vector.
size_t const size
Size of vector arguments to supply to subclass functions.
SumOfSquares(size_t const size=0)
Specify a constructor argument if you want to be able to check the size of the argument in a Model Ob...