NLA-lib Explorer

NLAlib.ShiftedQR.regularize

Library · def

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

Regularize ([BanksGarzaVargasSrivastava2022, §4.2], RitzOrDecouple there): NLAlib.ShiftedQR.regularizeWith with the SmallEig kernel as the routine (NLAlib.ShiftedQR.smallEigKernel), no words and the cap 0. From the order-N matrix A, the radius word Rd of the perturbations, the word C of Optimal (0.999\theta^k) and the threshold word Thr of the decoupling scan, 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. The interface is [N, k, w, j0] (A, Rd, C, Thr) → (A, S, Fl, Lg).

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

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedRegularize.