20 #ifndef IPO_FUNCTION_GRADIENTESTIMATE_HPP
21 #define IPO_FUNCTION_GRADIENTESTIMATE_HPP
26 #include"../ipo/detail/GSL.hpp"
47 virtual void setVector( gsl::vector
const& vector ) = 0;
51 virtual double value()
const;
55 virtual gsl::vector
gradient()
const;
Base class for gradient estimators.
double functionValue
The function value.
gsl::vector functionGradient
The gradient value.
virtual gsl::vector gradient() const
virtual double value() const
GradientEstimate(size_t const size=0)
Constructor.
Namespace for functions that can be used by ipo::Objective and ipo::Constraint.
Base class for Function and DerivativesEstimates.
size_t const size
Size of vector arguments to supply to subclass functions.
virtual void setVector(gsl::vector const &vector)=0
Set the vector to a new value.