NLA-lib Explorer

NLAlib.pcgState_r_eq

Library ยท theorem

The updated residual is the true residual, for every \mathbf{A} and \mathbf{M}.

NLAlib.pcgState_r_eq.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} [Fintype n]
  (A M : Matrix n n ๐•œ) (b xโ‚€ : n โ†’ ๐•œ) (k : โ„•) :
  (pcgState A M b xโ‚€ k).r = b - A *แตฅ (pcgState A M b xโ‚€ k).x

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.PCGRecurrence.