Iterative refinement over three vector operations
Library · Source module
Iterative refinement over three vector operations
NLAlib.LinearSystems.Refinement.solve is k steps of iterative refinement for \mathbf{A}\mathbf{x} = \mathbf{b} as one routine over the operations of NLAlib.Ops.RefinementOp: the residual, the correction solve and the update. No matrix data enters the tree; the caller supplies the right-hand side, the starting iterate and two vectors of scratch.
Each operation has its own accuracy, so each can run in its own precision [CarsonHigham2018]: the residual in the residual precision, the correction from factors in the factorization precision, the update in the working precision. The judgment holds under the three contracts and gives a NLAlib.RefinementRun whose last iterate is the stored output, so every bound on the run is a bound on the stored output.
Main results
* NLAlib.LinearSystems.Refinement.solve: the routine. * NLAlib.LinearSystems.Refinement.solveSpec: the stored iterates are a refinement run. * NLAlib.LinearSystems.Refinement.solve_meets: the routine meets its specification.