Implementation of ScalarFunction that wraps a std::function object.
More...
#include <WrapperScalarFunction.hpp>
Implementation of ScalarFunction that wraps a std::function object.
◆ FunctionEvalType
◆ WrapperScalarFunction()
sgpp::optimization::WrapperScalarFunction::WrapperScalarFunction |
( |
size_t |
d, |
|
|
FunctionEvalType |
f |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
d | dimension of the domain |
f | function to be wrapped |
Referenced by clone().
◆ ~WrapperScalarFunction()
sgpp::optimization::WrapperScalarFunction::~WrapperScalarFunction |
( |
| ) |
|
|
inlineoverride |
◆ clone()
void sgpp::optimization::WrapperScalarFunction::clone |
( |
std::unique_ptr< ScalarFunction > & |
clone | ) |
const |
|
inlineoverridevirtual |
◆ eval()
double sgpp::optimization::WrapperScalarFunction::eval |
( |
const base::DataVector & |
x | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: