hess
#
Utilities for approximating Hessian matrices.
Notes
- This module is heavily based off of the
hessian
module ofgeomeTRIC
. See the LICENSE-3RD-PARTY for license information.
References
- Schlegel, Theor. Chim. Acta, 66, 333 (1984)
Functions:
-
guess_hess_q
–Build a guess Hessian that roughly follows Schlegel's guidelines.
-
update_hess_q
–Approximately update the Hessian matrix using the history of optimization steps.
guess_hess_q
#
guess_hess_q(
coords: Tensor, ic_idxs: ICDict, atomic_nums: Tensor
) -> Tensor
Build a guess Hessian that roughly follows Schlegel's guidelines.
Parameters:
-
coords
(Tensor
) –The cartesian coordinates [a0].
-
ic_idxs
(ICDict
) –The indices of atoms that define the internal coordinates.
-
atomic_nums
(Tensor
) –The atomic numbers of the atoms in the molecule.
Source code in tico/hess.py
update_hess_q
#
Approximately update the Hessian matrix using the history of optimization steps.
Parameters:
-
hess_q
(Tensor
) –The current Hessian matrix.
-
history
(list[Step]
) –The history of optimization steps.
-
ic
(IC
) –The internal coordinate system.
-
max_updates
(int
, default:1
) –The maximum number of previous steps to use for the update.
Returns:
-
Tensor
–The updated Hessian matrix.