Hello,
I thought obj$he returned the analytical hessian.
However, when I consider a multivariate normal distritbution, where the Hessian matrix is available on the web,
obj$he and the analytical expression do not match. I have attached the code and also the analytical expression (jump to page 73--the page number is in the right lower corner).
Best regards
Fredrik