Skip to main content

hessian

Function hessian 

Source
pub fn hessian(
    f: impl Fn(&[f64]) -> f64,
    x: &[f64],
    options: DerivativeOptions,
) -> Result<Vec<Vec<f64>>, ErrorsJSL>
Expand description

The Hessian Hᵢⱼ = ∂²f/∂xᵢ∂xⱼ of f: ℝⁿ → ℝ, as the Jacobian of the gradient, both by Ridders’ method (as scipy.differentiate.hessian), symmetrised.