![]() |
WPILibC++ 2025.3.2
|
This class calculates the Hessian of a variable with respect to a vector of variables. More...
Public Member Functions | |
| Hessian (Variable variable, const VariableMatrix &wrt) noexcept | |
| Constructs a Hessian object. | |
| VariableMatrix | Get () const |
| Returns the Hessian as a VariableMatrix. | |
| const Eigen::SparseMatrix< double > & | Value () |
| Evaluates the Hessian at wrt's value. | |
| Profiler & | GetProfiler () |
| Returns the profiler. | |
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.
|
inline |
Evaluates the Hessian at wrt's value.