hessian0: Numerical Hessian

View source: R/RcppExports.R

hessian0R Documentation

Numerical Hessian

Description

Numerical Hessian

Usage

hessian0(f, x, args)

Arguments

f

Function to differentiate.

x

Vector at which to evaluate the Hessian.

args

List of additional arguments from the function richardson_args.

Value

A list with the form of a hessian_result described in section "Hessian" of the package vignette.

Examples

f = function(x) { sum(x^2) }
x0 = seq(1, 10, length.out = 5)
args = richardson_args()
hessian0(f, x0, args)
numDeriv::hessian(f, x0)


fntl documentation built on April 4, 2025, 1:53 a.m.