NLA-lib Explorer

NLAlib.galerkinInverse_krylovMatrix_eq_arnoldiMatrix

Library · theorem

The Galerkin inverse in the canonical basis, for every \mathbf{A} and q: \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{K}_q) = \mathbf{Q}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q})^{+}\mathbf{Q}^{\mathsf{H}} with \mathbf{Q} = \mathsf{arnoldiMatrix}(\mathbf{A}, \mathbf{b}, q), also past the grade, where \mathbf{Q} has zero columns.

NLAlib.galerkinInverse_krylovMatrix_eq_arnoldiMatrix.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] (A : Matrix n n 𝕜) (b : n → 𝕜) (q : ℕ) :
  galerkinInverse A (krylovMatrix A b q) =
    arnoldiMatrix A b q * pinv ((arnoldiMatrix A b q)ᴴ * A * arnoldiMatrix A b q) *
      (arnoldiMatrix A b q)ᴴ

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CGLanczos.