pytc.solver.bug_rpa.projected_residual¶
- pytc.solver.bug_rpa.projected_residual(U, S, BU, d, *, k=None, how='residual', block_rows=None)[source]¶
RPA residual
D = 2 BU (1+S) + d U Sdeflated twice againstU.All
rcolumns, orkof them: the largest by norm (how='residual', selected from streamed column norms, so only the chosen columns are ever emitted at full height) or the leading ones (how='top'). Row panels keep every intermediate atpanel x r.