![]() |
SG++-Doxygen-Documentation
|
Implementation of ScalarFunctionHessian that wraps a std::function object. More...
#include <WrapperScalarFunctionHessian.hpp>
Public Types | |
typedef std::function< double(const DataVector &, DataVector &, DataMatrix &)> | FunctionHessianEvalType |
Public Member Functions | |
void | clone (std::unique_ptr< ScalarFunctionHessian > &clone) const override |
double | eval (const DataVector &x, DataVector &gradient, DataMatrix &hessian) override |
WrapperScalarFunctionHessian (size_t d, FunctionHessianEvalType fHessian) | |
Constructor. | |
~WrapperScalarFunctionHessian () override | |
Destructor. | |
![]() | |
void | eval (const DataMatrix &x, DataVector &value, DataMatrix &gradient, std::vector< DataMatrix > &hessian) |
Convenience method for calculating \(f(\vec{x})\) together with \(\nabla f(\vec{x})\) and \(H_f(\vec{x}) \in \mathbb{R}^{d \times d}\) for multiple \(\vec{x}\). | |
size_t | getNumberOfParameters () const |
ScalarFunctionHessian (size_t d) | |
Constructor. | |
virtual | ~ScalarFunctionHessian () |
Destructor. | |
Protected Attributes | |
FunctionHessianEvalType | fHessian |
function Hessian to be wrapped | |
![]() | |
size_t | d |
dimension of the domain | |
Implementation of ScalarFunctionHessian that wraps a std::function object.
typedef std::function<double(const DataVector&, DataVector&, DataMatrix&)> sgpp::base::WrapperScalarFunctionHessian::FunctionHessianEvalType |
|
inline |
Constructor.
d | dimension of the domain |
fHessian | function gradient to be wrapped |
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
[out] | clone | pointer to cloned object |
Implements sgpp::base::ScalarFunctionHessian.
References clone(), sgpp::base::ScalarFunctionHessian::d, and fHessian.
Referenced by clone().
|
inlineoverridevirtual |
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}\) |
Implements sgpp::base::ScalarFunctionHessian.
References fHessian.
Referenced by python.uq.analysis.asgc.ASGCAnalysis.ASGCAnalysis::estimateDensity().
|
protected |