NLAlib.gmresIterate_eq_of_krylovGrade_le
Library ยท theorem
Headline of gmres-finite-termination
Finite termination: for invertible \mathbf{A} and \mathbf{A}\mathbf{x}_\star = \mathbf{b}, G\mathbf{M}RES reaches the solution once q is at least the grade of \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0: \mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_\star. [SaadSchultz1986, Proposition 2]; [Saad2003, Proposition 6.10]. Both state that the iterate at the breakdown step, which is the grade ([Saad2003, Proposition 6.6]), is exact. Result: gmres-finite-termination
NLAlib.gmresIterate_eq_of_krylovGrade_le.{u_1, u_2} {๐ : Type u_1} [RCLike ๐] {n : Type u_2}
[Fintype n] [DecidableEq n] {A : Matrix n n ๐} (hA : IsUnit A) {b xs : n โ ๐} (hxs : A *แตฅ xs = b)
(xโ : n โ ๐) {q : โ} (h : krylovGrade A (b - A *แตฅ xโ) โค q) : gmresIterate A b xโ q = xsImport NLAlib.Krylov.LinearSystems.GMRES.