NLA-lib Explorer

NLAlib.HasOrthonormalCols.galerkinInverse_eq

Library · theorem

Frame form of the Galerkin inverse, for every \mathbf{A}: for \mathbf{Q} with orthonormal columns and the column space of \mathbf{X}, \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{X}) = \mathbf{Q}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q})^{+}\mathbf{Q}^{\mathsf{H}}. [Saad2003, §5.1].

NLAlib.HasOrthonormalCols.galerkinInverse_eq.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} {p : Type u_3} {r : Type u_4} [Fintype n] [Fintype p] [Fintype r] [DecidableEq r]
  {Q : Matrix n r 𝕜} (hQ : HasOrthonormalCols Q) {X : Matrix n p 𝕜}
  (h : Q.mulVecLin.range = X.mulVecLin.range) (A : Matrix n n 𝕜) :
  galerkinInverse A X = Q * pinv (Qᴴ * A * Q) * Qᴴ

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.Galerkin.