The program is a deflation worklist. A block is split when one of its bottom k subdiagonal entries is small; blocks of order at most the shift degree k go to the small-block solver. Larger blocks go through the decoupling loop of Part II's Lemma 6.4, which alternates a randomized Ritz-value step, Regularize, with the shifting strategy \mathrm{Sh}_{k,B}. Every committed rotation is recorded in a log, so that it can be applied to the rest of the matrix and to the accumulator.
input: H, upper Hessenberg of order N = n + 1; accumulator U; threshold word t; parameter words P
Fl := 0; push the block [0, N) on the worklist
repeat at most 2N rounds, while a block remains:
pop a block of order d and copy it to the work matrix W
if d <= k:
(T_b, U_b) := small-block Schur solver on W
store T_b at the block's position
multiply the two coupling blocks and U by U_b
else:
decoupling loop, at most F rounds, recording its committed rotations in a log,
until a bottom-k subdiagonal entry h of W has |h|^2 <= t_L:
Regularize: Ritz values of the trailing k x k block, read from the diagonal of the
small-block solver's T_b, each moved by an independent uniform sample of a small
disk; return them if they pass the optimality test, otherwise try each as a
degree-k shift in turn
Sh_{k,B}: Find selects a promising shift r by binary search; take the rounded
degree-k step with r if it contracts the potential psi_k by (1 - gamma);
otherwise try the exceptional shifts of Exc around r, at a random
translate of a disk net
if the loop failed, or the scan of the bottom k entries against t finds none:
Fl := 1; stop
replay the log on the two coupling blocks and on U
split W at the passing entry, write an exact 0 there, copy W back and push both blocks
if blocks remain after 2N rounds: Fl := 1
output: T^ in the matrix buffer, U^ in the accumulator buffer, the failure word Fl
The run is capped on every tape: the worklist by 2N rounds, the decoupling loop by F rounds, every search by its length. A capped loop that has not finished writes the failure word. The exact zeros written at the cuts are what make \widehat{\mathbf{T}} exactly upper triangular; the backward-error witness accounts for the discarded entries.
Inputs and buffers
Complex entries are stored as adjacent real and imaginary words. The program is supplied five buffers:
| Buffer |
On input |
On output |
| Matrix, 2(n+1)^2 words |
\mathbf{H} |
\widehat{\mathbf{T}} (the input is overwritten) |
| Threshold, 1 word |
Deflation threshold t |
Unchanged |
| Parameters, n_p words |
Parameter words |
Unchanged |
| Accumulator, 2(n+1)^2 words |
A stored matrix \mathbf{U}_0 |
\widehat{\mathbf{U}} |
| Failure, 1 word |
Any |
0 on success |
Its sizes are the order n+1, the shift degree k, the number n_p of parameter words, the iteration cap F and the cap T of the small-block solver's loops. The certificate below starts from \mathbf{U}_0=\mathbf{I}.
Parameters
The caller chooses five reals: a condition bound B\ge1, a separation \Gamma>0, a norm bound \Sigma, a backward error 0<\delta\le\Sigma and a failure probability 0<\varphi\le1. The library computes the rest from them; the parameter words are supplied as exact reals and their computation is not charged.
- The shift degree is k=2^q for the least q\ge1 with (4B)^{(8q+3)/(2^q-1)}\bigl(2(4B)^4\bigr)^{2/(2^q-1)}\le3 (Part II's (eqn:setk) at 4B). It satisfies k=O(\log B\,\log\log B); at B=1 it is 128.
- The decoupling threshold is \omega=\min\bigl(\delta,\Gamma/(16(n+1)B)\bigr)/(12(n+1)).
- The iteration cap is F=\lceil\log(4\Sigma/\omega)/\log(1/0.8016)\rceil+1, since each round of the loop decouples or contracts the potential by 1.002(1-\gamma)=0.8016 at \gamma=0.2.
- The small-block solver must have backward error at most \beta_0=4\Sigma\bigl(R/(16(2k+1)\Sigma)\bigr)^k, which gives forward error R=\omega^2/(8080\cdot4\Sigma) on its eigenvalues through the Ostrowski–Elsner matching. R is also the radius of the disk samples of
Regularize. The solver's failure probability must be at most \varphi_0=\varphi/(12F(n+1)).
Shape of the guarantee
In both models the conclusion has the same form. Except with probability \varphi over the tape, the run sets the failure word to 0, writes only the matrix, the accumulator and the failure word, and stores an upper triangular \widehat{\mathbf{T}} and a \widehat{\mathbf{U}} such that, for an exact unitary \mathbf{W} and some \|\mathbf{E}\|_2\le\delta,
\widehat{\mathbf{T}}=\mathbf{W}^{\mathsf{H}}(\mathbf{H}+\mathbf{E})\mathbf{W},\qquad\|\widehat{\mathbf{U}}-\mathbf{U}_0\mathbf{W}\|_2\le\bigl((1+24u)^{R_{\mathrm{rot}}}-1\bigr)\|\mathbf{U}_0\|_2.
Here R_{\mathrm{rot}} counts the rotations and rotation-equivalents accumulated on \widehat{\mathbf{U}}:
R_{\mathrm{rot}}=2(n+1)\bigl(F(k+1+n_p)\,k(n+1)+2k(k+2)\bigr)+(n+1)R_L,
where R_L is the corresponding count of one call of the small-block solver. The guarantee is a backward error; a forward error for the eigenvalues needs a separate perturbation bound.