NLA-lib Explorer

The CG error is a Gauss quadrature error

Library · Result group

Theorem (Matrix.PosDef.re_quadForm_sub_cgIterate_eq_integral_sub). The CG error is a Gauss quadrature error: for positive definite \mathbf{A}, \mathbf{A}\mathbf{x}_\star = \mathbf{b}, every \mathbf{x}_0 and q, with \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0 and \mathbf{x}_q = \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q), \|\mathbf{x}_\star - \mathbf{x}_q\|_{\mathbf{A}}^2 = \int \mathbf{x}^{-1}\,d\mu_{\mathbf{A},\mathbf{r}_0} - \int \mathbf{x}^{-1}\,d\,\mathsf{gaussQuadrature}(\mu_{\mathbf{A},\mathbf{r}_0}, q)\,. [GolubMeurant2010, Ch. 12]; [GolubStrakos1994, §3] (locators to check).

Headline

Lean statement and details
Matrix.PosDef.re_quadForm_sub_cgIterate_eq_integral_sub.{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 : ℕ) :
  RCLike.re (quadForm A (xs - cgIterate A b x₀ q)) =
    ∫ (x : ℝ), x⁻¹ ∂spectralMeasure A (b - A *ᵥ x₀) -
      ∫ (x : ℝ), x⁻¹ ∂gaussQuadrature (spectralMeasure A (b - A *ᵥ x₀)) q

Full source on GitHub

Copy link