finitediff::vec::hessian

Function central_hessian_vec_prod_vec

Source
pub fn central_hessian_vec_prod_vec<F>(
    x: &[F],
    grad: &'_ dyn Fn(&Vec<F>) -> Result<Vec<F>, Error>,
    p: &[F],
) -> Result<Vec<F>, Error>
where F: Float + FromPrimitive,