NLA-lib Explorer

NLAlib.SmallEig.rhess

Library · def

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

The random Hessenberg form ([BanksGarzaVargasSrivastava2025, Proposition 5.3], with a Gaussian direction and rotations): draw 2N words of the stream sG as a complex vector \mathbf{g}; for j < N - 1, the Givens coefficients of (\bar g_{j+1}, -\bar g_j), the rotation of the entries j, j + 1 of \mathbf{g} (which zeros entry j), and the same rotation of the rows and the columns j, j + 1 of A; then NLAlib.hessenbergReduceLast. The rotations are recorded in the slotted log Lg (slot width w \ge N - 1): the N - 1 rotations of the vector as the entries of slot j_0 (validated), the reduction's rounds in the slots j_0 + 1, \dots, j_0 + N - 2. The interface is [N, w, j0] (A) → (A, Lg); the vector, the coefficients and the scratch are scoped. Algorithm: small-eig

NLAlib.SmallEig.rhess {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.SampleOp O] [Ops.Has Ops.CmpTst Q] (sG : ℕ) : Ops.Stmt O Q

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.RandomHessenberg.