pytc.solver.bug_rpa.streamed_tsqr_r

pytc.solver.bug_rpa.streamed_tsqr_r(W_host, *, block_rows)[source]

R factor of a host-resident tall matrix, by panel reduction.

Sequential TSQR: each row panel contributes its own R_p, and the running factor is re-reduced against it. Only k x k state ever exists, so the tall Q is never formed – which is the whole point, since Q is exactly the nov x k array the host-backed mode exists to keep off the device.

This is numerically the stable half. Recovering Q from R is the delicate half, and is gated separately in streamed_orth_directions().

Parameters:
  • W_host (Any)

  • block_rows (int)

Return type:

Any