NLA-lib Explorer

NLAlib.ShiftedQR.stepWithDiag

Library · def

This statement changed in the recorded rename: 2026-11-schur.

One shifted QR step with its last triangular diagonal entry and a Hessenberg output, recording its rotations: initialize a working copy \mathbf{H} - s and the output \mathbf{H}; for the rounds r < n - 1, record the entry (r, \mathbf{W}_{r,r}, \mathbf{W}_{r+1,r}) (the inputs of the round's coefficients) as entry i_0 + r of slot j of the slotted log Lg of slot width w (NLAlib.slottedLogWrite), then run the round (NLAlib.ShiftedQR.round: the coefficients, the rotation of the working rows, the conjugation of the output); copy the last working diagonal entry to Dg; zero the output below its subdiagonal. The interface is [n, w, j, i0] (A, S) → (Z, Dg, Lg); the working matrix and the four coefficient words are scoped. The exact unitary of the recorded entries is the step's \widehat{\mathbf{Q}}.

NLAlib.ShiftedQR.stepWithDiag {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.IndexOp Op]
  [Ops.Has Ops.CmpTst Tst] : Ops.Stmt Op Tst

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.StableStep.