NLA-lib Explorer

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