1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Core SCF (Self-Consistent Field) engine.
//!
//! This module provides shared, production-quality implementations of the
//! fundamental SCF building blocks used across the library:
//!
//! - **DIIS** — Pulay's Direct Inversion in the Iterative Subspace convergence accelerator
//! - **Orthogonalization** — Löwdin S^{-1/2} symmetric orthogonalization
//! - **Density matrix** — RHF density matrix construction from MO coefficients
//! - **Energy** — Electronic, nuclear repulsion, and total energy evaluation
//! - **Mulliken** — Mulliken and Löwdin population analysis
//! - **Fock matrix** — Modular Fock matrix construction (HF and DFTB)
//! - **Two-electron integrals** — (μν|λσ) ERI with sequential and parallel paths
//! - **Core matrices** — Grouped one-electron matrices (S, T, V, H⁰)
//! - **Basis set** — STO-3G contracted Gaussian basis functions
//! - **Gaussian integrals** — Primitive integral evaluation (Obara-Saika)
//! - **Overlap matrix** — S_μν overlap integrals
//! - **Kinetic matrix** — T_μν kinetic energy integrals
//! - **Nuclear matrix** — V_μν nuclear attraction integrals