NLA-lib Explorer

NLAlib.ShiftedQR.shStep

Library · def

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

The shifting strategy Sh ([BanksGarzaVargasSrivastava2022, Lemma 5.4], with a failure flag for the case, which the paper does not treat, that no shift is accepted): from the order-N matrix A and k = 2^m optimal shifts SS, with the words Cg ((1 - \gamma)^k), Cr (the radius factor 2^{1/k}\theta\alpha B^{1/k}), Cw (\varepsilon/2), Cp (1.0015(1 - \gamma)), the net G of n_0 points and the scan threshold Thr, store a step at A and set the flag Fl to 1, or set it to 2 if no trial succeeded. All scratch is scoped. The interface is [N, m, k, n0, w, j0] (A, SS, Cg, Cr, Cw, Cp, G, Thr) → (A, Fl, Lg): the test step records its rotations in slot j_0 of the log Lg of slot width w, the exceptional trials in the slots j_0 + 1, \dots, j_0 + n_0; the accepted slot is validated.

NLAlib.ShiftedQR.shStep {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] : Ops.Stmt O Q

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedSh.