NLA-lib Explorer

Matrix.PosDef.norm_cgState_p_sq_eq

Library · theorem

The direction norm of exact CG [HestenesStiefel1952, Theorem 5:5]: for positive definite \mathbf{A}, \|\mathbf{p}_j\|^2 = \|\mathbf{r}_j\|^4\sum_{i \le j}\|\mathbf{r}_i\|^{-2} . No hypothesis on the residuals: once \mathbf{r}_i = \mathbf{0} the later residuals and directions vanish (the step length and the coefficient are 0 in NLAlib.cgStep), and both sides are 0. With (E2) it bounds the residual ratios of a positive definite CG run, \sum_{i \le j}\|\mathbf{r}_j\|^2/\|\mathbf{r}_i\|^2 \le a'/a: the step (P) of the a priori analysis of finite-precision CG, applied to exact CG on the backward model.

Matrix.PosDef.norm_cgState_p_sq_eq.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  {A : Matrix n n 𝕜} (hA : A.PosDef) (b : n → 𝕜) (j : ℕ) :
  ‖WithLp.toLp 2 (cgState A b 0 j).p‖ ^ 2 =
    ‖WithLp.toLp 2 (cgState A b 0 j).r‖ ^ 4 *
      ∑ i ∈ Finset.range (j + 1), (‖WithLp.toLp 2 (cgState A b 0 i).r‖ ^ 2)⁻¹

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CGTridiagonal.