Expand description
Self-Consistent Field (SCF) Iterative Driver Self-Consistent Field (SCF) Iterative Driver
Solves the generalized Roothaan-Hall equation (FC = SCE) to find the molecular ground state electronic energy.
Implements Direct Inversion in the Iterative Subspace (DIIS) to aggressively accelerate convergence, strictly bounded within the zero-heap constraints.
Structs§
- RhfResult
- Converged RHF result: the electronic energy plus everything a caller needs to compute post-SCF observables (orbital energies for HOMO/LUMO, the density and overlap-consistent MO coefficients for Mulliken populations and the dipole).
Enums§
Constants§
- DIIS_
SUBSPACE_ SIZE - Subspace size for DIIS. Maximum historical Fock/Density/Error vectors kept.
- MAX_
SCF_ ITERATIONS - SCF_
CONVERGENCE_ THRESHOLD
Functions§
- gaussian_
elimination - Gaussian elimination solver for small DIIS mixing matrices. Solves Ax = b where A is an N x N matrix, returning x. All done strictly on the stack.
- jacobi_
diagonalization - Zero-heap Jacobi eigenvalue algorithm for real symmetric matrices. Returns eigenvalues and eigenvectors.
- orthogonalization_
matrix - Calculate symmetric orthogonalization matrix X = S^(-1/2)
- solve_
rhf_ scf - Perform a full Restricted Hartree-Fock SCF iteration with DIIS
- solve_
rhf_ scf_ 4index - Full Restricted Hartree-Fock SCF with a REAL 4-index two-electron contraction and DIIS acceleration.
- transpose
- Helper function to perform matrix transposition on zero heap.