20 #ifndef IPO_FUNCTION_CONCRETE_SUM_HPP
21 #define IPO_FUNCTION_CONCRETE_SUM_HPP
23 #include"../Function.hpp"
24 #include"../DerivativesEstimates.hpp"
64 double operator()( gsl::vector
const& vector );
70 gsl::vector
gradient( gsl::vector
const& vector );
76 gsl::matrix
hessian( gsl::vector
const& vector );
81 void setVector( gsl::vector
const& vector );
Sum(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...
double operator()(gsl::vector const &vector)
The function operator: computes the sum of the vector entries.
This class has two purposes.
virtual gsl::matrix hessian() const
virtual gsl::vector gradient() const
Base class for derivative estimates with Hessian.
Namespace for functions that can be used by ipo::Objective and ipo::Constraint.
This class computes a function at a vector.
void setVector(gsl::vector const &vector)
Set a vector and compute function value, gradient and Hessian efficiently.
size_t const size
Size of vector arguments to supply to subclass functions.