NLA-lib Explorer

NLAlib.galerkinInverse_blockKrylovMatrix_replicateCol_mul

Library ยท theorem

Block CG with one column is CG: the block Galerkin approximation \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{K}_q(\mathbf{A}, \mathbf{B}))\,\mathbf{B} at the one-column block \mathbf{B} = [\mathbf{b}] is the column of the CG iterate from the zero start, [\mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{0}, q)].

NLAlib.galerkinInverse_blockKrylovMatrix_replicateCol_mul.{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 (blockKrylovMatrix A (replicateCol Unit b) q) * replicateCol Unit b =
    replicateCol Unit (cgIterate A b 0 q)

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CG.