NLA-lib Explorer

The rounded shifted QR step as a backward-stable step

Library · Source module

The rounded shifted QR step as a backward-stable step

[BanksGarzaVargasSrivastava2022, Definition 3.4] asks of an implicit QR step two inequalities with one unitary \widehat{\mathbf{Q}}: the output is close to \widehat{\mathbf{Q}}^{\mathsf{H}}\mathbf{H}\widehat{\mathbf{Q}}, and \mathbf{H} - s is close to \widehat{\mathbf{Q}}\widehat{\mathbf{R}} with \widehat{\mathbf{R}} upper triangular; the output is upper Hessenberg and the last diagonal entry of \widehat{\mathbf{R}} is returned (it drives the computed potential). The scalar Givens step returns only the conjugated matrix, and in floating point its output is Hessenberg only up to rounding. This file assembles the step that meets the definition: the shift initialization, the sweep that also copies the last working diagonal entry (NLAlib.ShiftedQR.sweepWithDiag), and a pass that zeroes the entries below the subdiagonal (NLAlib.ShiftedQR.clearBelowSubdiagonal). A degree k step repeats it in place with the k shifts of a stored list. The error base is \|\mathbf{H}\|_2 + \lvert s\rvert, not the paper's \|\mathbf{H} - s\|_2 (adding the shift back rounds the diagonal with error \boldsymbol{u}\lvert s\rvert). The constant 300(n+1)^2 covers the rounds, the shift initialization, the triangular part kept of the working matrix (its rounded entries below the diagonal are dropped) and the zeroing pass, whose error is bounded entrywise and so costs a factor \sqrt{n+1} in the spectral norm; the paper has 32n^{3/2}.

Main definitions

* NLAlib.ShiftedQR.stepWithDiag, NLAlib.ShiftedQR.stepWithDiagInPlace, NLAlib.ShiftedQR.multiStepStable: the programs. Each records its rotations, as the entries (r, p, q) of the coefficient inputs, in a slotted log (NLAlib.HoldsSlottedLog), so that the step's unitary is the exact unitary of its log (NLAlib.givensLog).

Main results

* NLAlib.ShiftedQR.stepWithDiag_writes_of_inv: the memory of the step, with any property of the rounds (NLAlib.ShiftedQR.KeptByRound). * NLAlib.ShiftedQR.stepWithDiag_isStableQRStep, NLAlib.ShiftedQR.stepWithDiagInPlace_isStableQRStep: one rounded step is a backward-stable step by the unitary of its log.

Termination on any matrix is in NLAlib.Eigensolvers.ShiftedQR.StableStepTermination.

Declarations