pytc.solver.bug_core.project_directions

pytc.solver.bug_core.project_directions(U, D, *, frac=None, kmin=None, kabs=None, how='residual')[source]

Project and optionally select augmentation directions once.

how is 'residual' (largest projected-residual norms), 'top' (leading columns, amplitude ordering) or 'svd' (leading left singular vectors of the projected residual).

Residual selection ranks columns by the already-projected block. Returning those projected columns lets the following QR consume them directly; the previous path discarded this block, gathered the unprojected columns, and repeated the same two large Gram–Schmidt passes.