NLAlib.RefinementRun
Library · structure
An iterative refinement run with bounded local errors: k steps of \mathbf{r}_j \approx \mathbf{b} - \mathbf{A}\mathbf{x}_j, \mathbf{d}_j \approx \mathbf{A}^{-1}\mathbf{r}_j, \mathbf{x}_{j+1} \approx \mathbf{x}_j + \mathbf{d}_j for an invertible \mathbf{A} \in \Bbbk^{n \times n}, with four nonnegative accuracy parameters: 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 error at most \theta\|\mathbf{A}^{-1}\mathbf{r}_j\|, and the update has error at most \varepsilon\|\mathbf{x}_j + \mathbf{d}_j\|. The start \mathbf{x}_0 is unrestricted and no smallness of the parameters is assumed; the convergence theorems state it. [CarsonHigham2018, Algorithm 1.1]; analysed there componentwise and in the \infty-norm for three unit roundoffs, here in the Euclidean norm for abstract accuracy parameters. Algorithm: iterative-refinement (run model)
NLAlib.RefinementRun.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n]
(A : Matrix n n 𝕜) (b : n → 𝕜) (θ η ζ ε : ℝ) (k : ℕ) : Type (max u_1 u_2)Import NLAlib.Matrix.FinitePrecision.RefinementRun.