pytc.solver.bug_core.hostbacked_basis_update

pytc.solver.bug_core.hostbacked_basis_update(U_host, Qa_host, Wu, Wq, *, block_rows, trace_sink=None, out=None)[source]

Updated basis written to the HOST, with the cross accumulated in flight.

Returns (U_new_host, cross). U_new never exists on the device at full height, and the r x r cross comes back on the device where the caller needs it.

out optionally supplies a caller-owned contiguous destination, so the basis buffer can be reused across iterations instead of re-faulted every call. out=None allocates a new array.

Parameters:
  • U_host (Any)

  • Qa_host (Any)

  • Wu (Any)

  • Wq (Any)

  • block_rows (int)

  • trace_sink (list | None)

  • out (Any)