NLAlib.hessenbergReduceLast
Library · def
This statement changed in the recorded rename: 2026-11-schur.
The bottom-up Hessenberg reduction, recording its rotations ([BanksGarzaVargasSrivastava2025, Definition 5.1], as a program): for the rows r = N - 1, \dots, 2 (round i has r = N - 1 - i) and the columns c = 0, \dots, r - 2, the step NLAlib.reduceLastStep: the Givens coefficients of the pair (\mathbf{A}_{r, c+1}, -\mathbf{A}_{r, c}), recorded as entry c of slot j_0 + i of the slotted log Lg of slot width w \ge N - 2, then the rotation of the columns c, c + 1 (which zeros \mathbf{A}_{r,c}) and of the rows c, c + 1; each round's slot is validated at its end; finally the entries below the subdiagonal are written as zeros. The N - 2 slots j_0, \dots, j_0 + N - 3 are written; the log is not opened here. The interface is [N, w, j0] (A) → (A, Lg); the coefficients and the pair are scoped scratch. Algorithm: hessenberg-reduction
NLAlib.hessenbergReduceLast {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.CmpTst Q] : Ops.Stmt O QImport NLAlib.Eigensolvers.HessenbergReduction.