NLA-lib Explorer

Matrix.PosDef.eq_galerkinInverse_mulVec_of_conjTranspose_mulVec_sub_eq_zero

Library · theorem

The Galerkin condition determines the approximation: for positive definite \mathbf{A}, a vector \mathbf{y} of the column space of \mathbf{X} with \mathbf{X}^{\mathsf{H}}(\mathbf{b} - \mathbf{A}\mathbf{y}) = \mathbf{0} is \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{X})\,\mathbf{b}. [Saad2003, §5.2].

Matrix.PosDef.eq_galerkinInverse_mulVec_of_conjTranspose_mulVec_sub_eq_zero.{u_1, u_2, u_3}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} {p : Type u_3} [Fintype n] [Fintype p] {A : Matrix n n 𝕜}
  (hA : A.PosDef) {X : Matrix n p 𝕜} {b y : n → 𝕜} (hy : y ∈ X.mulVecLin.range)
  (h : Xᴴ *ᵥ (b - A *ᵥ y) = 0) : y = galerkinInverse A X *ᵥ b

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.Galerkin.