NLA-lib Explorer

NLAlib.cgState_r_eq

Library ยท theorem

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

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

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CGRecurrence.