pytc.solver.bug_helper._aux_major

pytc.solver.bug_helper._aux_major(a)[source]

Aux-major (naux, …) copy of a static host array, made once per solve.

Slicing the last axis of a C-ordered (p, q, naux) array is a strided copy, several times slower than the upload it feeds; B_vv is re-streamed many times per iteration once it exceeds RESIDENT_LIMIT_BYTES. In aux-major order every chunk width is a contiguous view, so all consumers share one copy instead of holding one copy per width.