Hessian matrix
where is the gradient of w.r.t. , is the Hessian matrix of w.r.t. , and is the trace operator.