NLAlib.SmallEig.smallEigProg
Library · def
This statement changed in the recorded rename: 2026-11-schur.
The small-eigenvalue program in Schur mode ([BanksGarzaVargasSrivastava2025, Theorem 1.1], Eig, with the base case of order at most 1, every loop capped, and the Schur form): for d \le 1 keep the block and write the identity accumulator (NLAlib.SmallEig.identityLeaf); otherwise write the identity accumulator, copy the threshold word Q[6] to scratch Th, perturb the block in place (NLAlib.SmallEig.ginibrePerturb with the Gaussian stream sG and the scale word Q[0]), reduce it to Hessenberg form recording the rotations (NLAlib.hessenbergReduceLast into a scoped log of d slots of d entries), replay them on the accumulator (NLAlib.givensReplayColumns), and run the core in Schur mode at the bottom width 1 with the threshold word Th, the n_q words Q, the cap T and the log shape (T + d, d), into the block, the accumulator and a scratch failure word. The output is the triangular block \widehat{\mathbf{T}}_\mathbf{b} in Bk and its accumulator \widehat{\mathbf{U}}_\mathbf{b} in Ub; the eigenvalues are the diagonal of \widehat{\mathbf{T}}_\mathbf{b}. The interface is [d, nq, T] (Bk, Q) → (Bk, Ub), that of a Schur leaf (NLAlib.Schur.RandomSchurLeafContract). Algorithm: small-eig
NLAlib.SmallEig.smallEigProg {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.SampleOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q]
[Ops.Has Ops.IdxTst Q] (sG : ℕ) : Ops.Stmt O QImport NLAlib.Eigensolvers.SmallEig.Program.