![]() |
SG++-Doxygen-Documentation
|
Implementation of ScalarFunctionGradient that wraps a std::function object. More...
#include <WrapperScalarFunctionGradient.hpp>
Public Types | |
| typedef std::function< double(const base::DataVector &, base::DataVector &)> | FunctionGradientEvalType |
Public Member Functions | |
| void | clone (std::unique_ptr< ScalarFunctionGradient > &clone) const override |
| double | eval (const base::DataVector &x, base::DataVector &gradient) override |
| WrapperScalarFunctionGradient (size_t d, FunctionGradientEvalType fGradient) | |
| Constructor. More... | |
| ~WrapperScalarFunctionGradient () override | |
| Destructor. More... | |
Public Member Functions inherited from sgpp::optimization::ScalarFunctionGradient | |
| size_t | getNumberOfParameters () const |
| ScalarFunctionGradient (size_t d) | |
| Constructor. More... | |
| virtual | ~ScalarFunctionGradient () |
| Destructor. More... | |
Protected Attributes | |
| FunctionGradientEvalType | fGradient |
| function gradient to be wrapped More... | |
Protected Attributes inherited from sgpp::optimization::ScalarFunctionGradient | |
| size_t | d |
| dimension of the domain More... | |
Implementation of ScalarFunctionGradient that wraps a std::function object.
| typedef std::function<double(const base::DataVector&, base::DataVector&)> sgpp::optimization::WrapperScalarFunctionGradient::FunctionGradientEvalType |
|
inline |
Constructor.
| d | dimension of the domain |
| fGradient | function gradient to be wrapped |
Referenced by clone().
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
| [out] | clone | pointer to cloned object |
Implements sgpp::optimization::ScalarFunctionGradient.
References sgpp::optimization::ScalarFunctionGradient::d, fGradient, and WrapperScalarFunctionGradient().
|
inlineoverridevirtual |
| x | evaluation point \(\vec{x} \in [0, 1]^d\) | |
| [out] | gradient | gradient \(\nabla f(\vec{x}) \in \mathbb{R}^d\) |
Implements sgpp::optimization::ScalarFunctionGradient.
References fGradient.
|
protected |