NLAlib.Krylov.CG.HSPCG.pcgStep_eq
Library · theorem
The real preconditioned recurrence computes its two scalar ratios and four vector updates. The preconditioner is applied directly, as an approximation of the inverse system matrix.
NLAlib.Krylov.CG.HSPCG.pcgStep_eq.{u_1} {n : Type u_1} [Fintype n] (A M : Matrix n n ℝ)
(s : PCGState ℝ n) :
pcgStep A M s =
have ρ := s.r ⬝ᵥ s.z;
have α := ρ / s.p ⬝ᵥ A *ᵥ s.p;
have r' := s.r - α • A *ᵥ s.p;
have z' := M *ᵥ r';
{ x := s.x + α • s.p, r := r', z := z', p := z' + (r' ⬝ᵥ z' / ρ) • s.p }Import NLAlib.Krylov.CG.HSPCG.Spec.