Catalog: the three operations of iterative refinement
Library · Source module
Catalog: the three operations of iterative refinement
One step of iterative refinement for a fixed square matrix \mathbf{A} calls three vector operations, each with its own accuracy, so that each can run in its own precision [CarsonHigham2018]:
* NLAlib.Ops.RefinementOp.residual [n] [b, x] [r]: the residual \mathbf{b} - \mathbf{A}\mathbf{x}, in the residual precision; * NLAlib.Ops.RefinementOp.solve [n] [r] [d]: the correction \mathbf{A}^{-1}\mathbf{r}, from factors computed in the factorization precision; * NLAlib.Ops.RefinementOp.update [n] [d, x] [x]: the update \mathbf{x} + \mathbf{d} in place, in the working precision.
The contracts are normwise, in the Euclidean norm of the decoded blocks. They say nothing about how an operation is computed: an implementation in scalar arithmetic at a precision tag (NLAlib.Ops.Tagged) is linked below these operations, and its accuracy theorem supplies the parameter of the contract.
Main results
* NLAlib.Ops.IsRefinement: the three operations satisfy their contracts. * NLAlib.Ops.exists_isRefinement: the contracts can be satisfied together, by exact arithmetic.
Declarations
- NLAlib.Ops.IsRefinement
- NLAlib.Ops.RefinementOp
- NLAlib.Ops.RefinementOp.ofNat
- NLAlib.Ops.RefinementOp.ofNat_ctorIdx
- NLAlib.Ops.RefinementOperands
- NLAlib.Ops.RefinementUpdateOperands
- NLAlib.Ops.exactRefinementFn
- NLAlib.Ops.exists_isRefinement
- NLAlib.Ops.residualRel
- NLAlib.Ops.residualRel_dom
- NLAlib.Ops.residualRel_inLens
- NLAlib.Ops.residualRel_nd
- NLAlib.Ops.residualRel_outLens
- NLAlib.Ops.residualRel_rel
- NLAlib.Ops.residualRel_stream
- NLAlib.Ops.residualRel_win
- NLAlib.Ops.solveRel
- NLAlib.Ops.solveRel_dom
- NLAlib.Ops.solveRel_inLens
- NLAlib.Ops.solveRel_nd
- NLAlib.Ops.solveRel_outLens
- NLAlib.Ops.solveRel_rel
- NLAlib.Ops.solveRel_stream
- NLAlib.Ops.solveRel_win
- NLAlib.Ops.updateRel
- NLAlib.Ops.updateRel_dom
- NLAlib.Ops.updateRel_inLens
- NLAlib.Ops.updateRel_nd
- NLAlib.Ops.updateRel_outLens
- NLAlib.Ops.updateRel_rel
- NLAlib.Ops.updateRel_stream
- NLAlib.Ops.updateRel_win