template<
typename Scalar,
int UpLo>
requires (
UpLo == Eigen::Lower) || (
UpLo == (Eigen::Lower | Eigen::Upper))
class slp::Hessian< Scalar, UpLo >
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 or its quadratic coefficients depend on parameters.
- Template Parameters
-
| Scalar | Scalar type. |
| UpLo | Which part of the Hessian to compute (Lower or Lower | Upper). Default is Lower | Upper. |