Matrix.PosDef.isMinOn_cgIterate
Library · theorem
Headline of cg-optimality
CG minimises the \mathbf{A}-norm error over the affine Krylov space: for positive definite \mathbf{A} and \mathbf{A}\mathbf{x}_\star = \mathbf{b}, \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) minimises \|\mathbf{x}_\star - \mathbf{y}\|_{\mathbf{A}}^2 over \mathbf{y} \in \mathbf{x}_0 + \mathcal{K}_q(\mathbf{A}, \mathbf{r}_0) (Mathlib's AffineSubspace.mk'). [Saad2003, §5.2]; [TrefethenBau1997, Theorem 38.1]. Result: cg-optimality
Matrix.PosDef.isMinOn_cgIterate.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
[DecidableEq n] {A : Matrix n n 𝕜} (hA : A.PosDef) {b xs : n → 𝕜} (hxs : A *ᵥ xs = b) (x₀ : n → 𝕜)
(q : ℕ) :
IsMinOn (fun y ↦ RCLike.re (quadForm A (xs - y)))
(↑(AffineSubspace.mk' x₀ (krylovSpace A (b - A *ᵥ x₀) q))) (cgIterate A b x₀ q)Import NLAlib.Krylov.LinearSystems.CG.