An iterative refinement run with bounded local errors
Library · Source module
An iterative refinement run with bounded local errors
NLAlib.RefinementRun A b θ η ζ ε k is k steps of iterative refinement for \mathbf{A}\mathbf{x} = \mathbf{b} with \mathbf{A} invertible, each of the three operations of a step carrying its own accuracy parameter (0-based, step j < k): \mathbf{r}_j \approx \mathbf{b} - \mathbf{A}\mathbf{x}_j,\quad \mathbf{d}_j \approx \mathbf{A}^{-1}\mathbf{r}_j,\quad \mathbf{x}_{j+1} \approx \mathbf{x}_j + \mathbf{d}_j . The residual has error at most \zeta\|\mathbf{b} - \mathbf{A}\mathbf{x}_j\| + \eta(\|\mathbf{b}\| + \|\mathbf{A}\|_2\|\mathbf{x}_j\|), the correction has relative error at most \theta, and the update has relative error at most \varepsilon. In refinement in three precisions [CarsonHigham2018] the residual is computed at unit roundoff u_r and stored at the working unit roundoff u, the correction is solved with factors computed at unit roundoff u_f, and the update is at u: then \eta is of order u_r, \zeta and \varepsilon are of order u, and \theta is of order \kappa(\mathbf{A})u_f (NLAlib.norm_inv_mulVec_sub_le_of_add_mulVec_eq).
This is an abstract local-error interface, in the Euclidean and spectral norms. Applying its guarantees to a particular program requires a separate execution theorem constructing this interface from the decoded computed states.
With \kappa = \kappa(\mathbf{A}), the error contracts at each step by the factor NLAlib.refinementContractionFactor, whose value is <!-- value refinementContractionFactor \kappa \theta \eta \zeta \varepsilon --> (1+\varepsilon)(\theta+(1+\theta)\kappa(\zeta+\eta)), up to \|\mathbf{x}_\star\| times NLAlib.refinementAccuracyBound, whose value is <!-- value refinementAccuracyBound \kappa \theta \eta \varepsilon --> (1+\varepsilon)(1+\theta)2\kappa\eta+\varepsilon. The solve accuracy \theta sets the rate. It enters the limiting term \xi/(1 - \varphi) only through 1 + \theta and 1 - \varphi, so for \varphi bounded away from one a less accurate solve changes that term by a constant factor.
Constants are unoptimised.
Main definitions
* NLAlib.RefinementRun: a run of k steps with its four accuracy parameters. * NLAlib.RefinementRun.start, NLAlib.RefinementRun.extend: the run of no steps, and one more step.
Main results
* NLAlib.RefinementRun.norm_sub_x_succ_le: one step contracts the error up to an additive term. * NLAlib.RefinementRun.norm_sub_x_le: the error after j steps.
Declarations
- NLAlib.RefinementRun
- NLAlib.RefinementRun.extend
- NLAlib.RefinementRun.extend_x_of_le
- NLAlib.RefinementRun.extend_x_succ
- NLAlib.RefinementRun.norm_sub_x_le
- NLAlib.RefinementRun.norm_sub_x_succ_le
- NLAlib.RefinementRun.start
- NLAlib.RefinementRun.start_x
- NLAlib.refinementAccuracyBound
- NLAlib.refinementAccuracyBound_nonneg
- NLAlib.refinementContractionFactor
- NLAlib.refinementContractionFactor_nonneg