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