Skip to main content

hessian

Function hessian 

Source
pub fn hessian<const N: usize, F>(
    function: F,
    point: Vector<N>,
) -> Result<LinearMap<N, N>, AnalysisError>
where F: Fn(Vector<N>) -> f64,
Expand description

Finite-difference N×N Hessian of f at point: central difference on the diagonal, four-point mixed difference off-diagonal, step scaled by EPSILON^0.25 · (1+|x_i|) per dimension. InvalidDomain on non-finite base or any coefficient.