num_dual.partial_hessian
- num_dual.partial_hessian(f, x, y)
Calculate the Hessian of a scalar function w.r.t. a subset of its variables.
Parameters
- fcallable
A scalar, multivariate function.
- x[float]
The first vector for which the partial Hessian is evaluated.
- y[float]
The second vector for which the partial Hessian is evaluated.
Returns
function value, gradient w.r.t. x, gradient w.r.t. y, and partial Hessian