NLA-lib Explorer

NLAlib.eq_minResidualInverse_mulVec_of_conjTranspose_mulVec_sub_eq_zero

Library · theorem

The Petrov–Galerkin condition characterises the minimal residual approximation for \mathbf{A} of full column rank: a vector \mathbf{y} of the column space with (\mathbf{A}\mathbf{X})^{\mathsf{H}}(\mathbf{b} - \mathbf{A}\mathbf{y}) = \mathbf{0} is \mathsf{minResidualInverse}(\mathbf{A}, \mathbf{X})\,\mathbf{b}. [Saad2003, §5.2.2].

NLAlib.eq_minResidualInverse_mulVec_of_conjTranspose_mulVec_sub_eq_zero.{u_1, u_2, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2} {n : Type u_3} {p : Type u_4} [Fintype m] [Fintype n]
  [Fintype p] {A : Matrix m n 𝕜} (hA : Function.Injective A.mulVec) {X : Matrix n p 𝕜} {b : m → 𝕜}
  {y : n → 𝕜} (hy : y ∈ X.mulVecLin.range) (h : (A * X)ᴴ *ᵥ (b - A *ᵥ y) = 0) :
  y = minResidualInverse A X *ᵥ b

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.MinResidual.