The scalar kernels of iterative refinement
Library · Source module
The scalar kernels of iterative refinement
The residual, the update and the cast of a vector between two precisions, as routines over scalar operations. Each is generic over the signature, so it can be run at a precision tag with the instance NLAlib.Ops.Tagged.has, as three-precision refinement requires.
Main definitions
* NLAlib.LinearSystems.Refinement.residualRows: \mathbf{r} := \mathbf{b} - \mathbf{A}\mathbf{x}, row by row, with \mathbf{A} stored by columns. * NLAlib.LinearSystems.Refinement.addInPlace: \mathbf{x} := \mathbf{x} + \mathbf{d}. * NLAlib.LinearSystems.Refinement.castLoop: the entrywise cast between two precisions.
Main results
* NLAlib.LinearSystems.Refinement.residualRows_meets: each row is a rounded accumulation. * NLAlib.LinearSystems.Refinement.addInPlace_meets: each entry is a rounded sum. * NLAlib.LinearSystems.Refinement.castLoop_meets: the entries are the casts of the input.
Declarations
- NLAlib.LinearSystems.Refinement.ResidualPrefix
- NLAlib.LinearSystems.Refinement.ResidualPrefix.succ
- NLAlib.LinearSystems.Refinement.addInPlace
- NLAlib.LinearSystems.Refinement.addInPlaceSpec
- NLAlib.LinearSystems.Refinement.addInPlace_meets
- NLAlib.LinearSystems.Refinement.castLoop
- NLAlib.LinearSystems.Refinement.castLoopSpec
- NLAlib.LinearSystems.Refinement.castLoop_meets
- NLAlib.LinearSystems.Refinement.residualRows
- NLAlib.LinearSystems.Refinement.residualRowsSpec
- NLAlib.LinearSystems.Refinement.residualRows_meets