num_dual.hessian

num_dual.hessian(f, x)

Calculate the Hessian of a scalar, multivariate function.

Parameters

fcallable

A scalar, multivariate function.

x[float]

The vector for which the Hessian is evaluated.

Returns

function value, gradient and Hessian