Example: the backward errors of loops
Library · Source module
Example: the backward errors of loops
A round of three programs c₁, c₂, c₃, each a backward step with errors u, \mathbf{v}, w for a backward-error relation, repeated N times, is a backward step with error N(u + \mathbf{v} + w). The proof is the composition rules and nothing else: no error invariant is written by hand.
The steps are abstract; the backward-error relation may be a perturbed unitary similarity (NLAlib.isBackwardErrorRel_isPerturbedUnitarySimilar), as in the rounded shifted QR algorithm, where one round is a sweep of rotations, a perturbation by rounding and a deflation.
Main results
* NLAlib.Ops.Examples.backwardStep_loop_seq: the backward error of the loop. * NLAlib.Ops.Examples.backwardStep_loop_ite: a loop of conditional rounds whose skipped arm uses the outcome of the test (the decoupling loop of shifted QR). * NLAlib.Ops.Examples.backwardStep_whileFuel_skip: a loop with early exit whose exit uses the outcome of the test (the deflation worklist).