NLAlib.ShiftedQR.regularizeWith
Library · def
This statement changed in the recorded rename: 2026-11-schur.
Regularize with a small-eigenvalue routine ([BanksGarzaVargasSrivastava2022, §4.2], RitzOrDecouple there): from the order-N matrix A, the radius word Rd of the perturbations, the word C of Optimal (0.999\theta^k), the threshold word Thr of the decoupling scan and the words Qw of the routine SE, store k perturbed approximate Ritz values at S and set the flag Fl to 0 (they are optimal, A unchanged) or 1 (A holds a decoupled degree k step); Fl is 2 only if no trial decoupled. The trials record their rotations in the slots j_0, \dots, j_0 + k - 1 of the slotted log Lg of slot width w, the accepted one valid. All scratch is scoped. The interface is [N, k, nq, T, w, j0] (A, Rd, C, Thr, Qw) → (A, S, Fl, Lg).
NLAlib.ShiftedQR.regularizeWith {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q] (SE : Ops.Stmt O Q) : Ops.Stmt O QImport NLAlib.Eigensolvers.ShiftedQR.RoundedRegularize.