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 Q against the host basis U, streamed by row panels: C = U^T Q; if max|C| > tol, Q <- Q - U C (in place). Returns max|C| before the correction. A single projection of the residual against U loses 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)