Hessian matrix of a scalar function of a vector, by Richardson extrapolation (Bates and Watts). Equivalent to numDeriv::hessian(func, x) in R.
numDeriv::hessian(func, x)
hessian((x) => x[0]! ** 2 * x[1]! ** 2, [1, 2]); // [[8, 8], [8, 2]] Copy
hessian((x) => x[0]! ** 2 * x[1]! ** 2, [1, 2]); // [[8, 8], [8, 2]]
Hessian matrix of a scalar function of a vector, by Richardson extrapolation (Bates and Watts). Equivalent to
numDeriv::hessian(func, x)in R.