NLA-lib Explorer

NLAlib.overRelaxedCG_p_dotProduct_r

Library · theorem

The line search defect drifts linearly: if \mathbf{p}_i^{\mathsf{T}}\mathbf{A}\mathbf{p}_i \ne 0 for i < j, then \mathbf{p}_j^{\mathsf{T}}\mathbf{r}_j = (1 - j(c - 1))\,\mathbf{r}_j^{\mathsf{T}}\mathbf{r}_j exactly. The multiplier \delta_{j-1}\rho_{j-1}^2/\rho_j^2 of the defect is 1, so it is never damped (the mechanism behind [StrakosTichy2002, (9.6)]).

NLAlib.overRelaxedCG_p_dotProduct_r {n : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} (b : Fin n → ℝ) (c : ℝ)
  {j : ℕ} (hμ : ∀ i < j, (overRelaxedCG A b c i).p ⬝ᵥ A *ᵥ (overRelaxedCG A b c i).p ≠ 0) :
  (overRelaxedCG A b c j).p ⬝ᵥ (overRelaxedCG A b c j).r =
    (1 - ↑j * (c - 1)) * (overRelaxedCG A b c j).r ⬝ᵥ (overRelaxedCG A b c j).r

Full source on GitHub

Import NLAlib.Krylov.FinitePrecision.OverRelaxedCG.