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