pytc.solver.bug_mp2._hb_orth

pytc.solver.bug_mp2._hb_orth(U, W, panel, dim, rel_tol=1e-08, passes=2)[source]

Streamed CholeskyQR2: directions orthonormal and orthogonal to U.

Each pass accumulates U^T W and W^T W and emits (W - U U^T W) C from the Schur complement’s eigenpairs; one pass leaves ~1e-5 near convergence, two reach ~1e-15. The cut is on squared singular values, floored above eps, and the count is capped at dim - r: the complement of span(U) cannot hold more.