Sleipnir C++ API
|
#include <sleipnir/autodiff/Hessian.hpp>
Public Member Functions | |
Hessian (Variable variable, const VariableMatrix &wrt) noexcept | |
VariableMatrix | Get () const |
const Eigen::SparseMatrix< double > & | Value () |
Profiler & | GetProfiler () |
This class calculates the Hessian of a variable with respect to a vector of variables.
The gradient tree is cached so subsequent Hessian calculations are faster, and the Hessian is only recomputed if the variable expression is nonlinear.
|
inlinenoexcept |
|
inline |
Returns the Hessian as a VariableMatrix.
This is useful when constructing optimization problems with derivatives in them.
|
inline |
Returns the profiler.
Evaluates the Hessian at wrt's value.