Corrected calculation of the hessian matrix for the dense matrix format.
Corrected calculation of the hessian matrix for the dense matrix format.

libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy