Implementation of ScalarFunctionHessian that wraps a std::function object.
More...
#include <WrapperScalarFunctionHessian.hpp>
Implementation of ScalarFunctionHessian that wraps a std::function object.
◆ FunctionHessianEvalType
◆ WrapperScalarFunctionHessian()
sgpp::optimization::WrapperScalarFunctionHessian::WrapperScalarFunctionHessian |
( |
size_t |
d, |
|
|
FunctionHessianEvalType |
fHessian |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
d | dimension of the domain |
fHessian | function gradient to be wrapped |
Referenced by clone().
◆ ~WrapperScalarFunctionHessian()
sgpp::optimization::WrapperScalarFunctionHessian::~WrapperScalarFunctionHessian |
( |
| ) |
|
|
inlineoverride |
◆ clone()
void sgpp::optimization::WrapperScalarFunctionHessian::clone |
( |
std::unique_ptr< ScalarFunctionHessian > & |
clone | ) |
const |
|
inlineoverridevirtual |
◆ eval()
- Parameters
-
| x | evaluation point \(\vec{x} \in [0, 1]^d\) |
[out] | gradient | gradient \(\nabla f(\vec{x}) \in \mathbb{R}^d\) |
[out] | hessian | Hessian matrix \(H_f(\vec{x}) \in \mathbb{R}^{d \times d}\) |
- Returns
- \(f(\vec{x})\)
Implements sgpp::optimization::ScalarFunctionHessian.
References fHessian.
◆ fHessian
function Hessian to be wrapped
Referenced by clone(), and eval().
The documentation for this class was generated from the following file: