pytc.solver.bug_rpa.streamed_reorthogonalize¶
- pytc.solver.bug_rpa.streamed_reorthogonalize(U_host, Q_host, *, block_rows, tol=1e-10)[source]¶
Second Gram-Schmidt pass of host-resident
Qagainst the host basisU, streamed by row panels:C = U^T Q; ifmax|C| > tol,Q <- Q - U C(in place). Returnsmax|C|before the correction. A single projection of the residual againstUloses orthogonality at large rank (“twice is enough”); a non-orthonormal[U | Q]makes the projected Casida problem indefinite.- Parameters:
U_host (Any)
Q_host (Any)
block_rows (int)
tol (float)