NLAlib.galerkinInverse
Library 路 def
The Galerkin inverse of \mathbf{A} on the column space of \mathbf{X}: \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{X}) := (\mathbf{P}_{\mathbf{X}}\mathbf{A}\mathbf{P}_{\mathbf{X}})^{+}. Its range and corange already lie in the column space of \mathbf{X}, since the pseudoinverse of \mathbf{P}_{\mathbf{X}}\mathbf{A}\mathbf{P}_{\mathbf{X}} has the range of its adjoint. It depends on \mathbf{X} only through its column space (galerkinInverse_eq_of_range_eq), and for any \mathbf{Q} with orthonormal columns spanning that space it is \mathbf{Q}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q})^{+}\mathbf{Q}^{\mathsf{H}} (HasOrthonormalCols.galerkinInverse_eq). For positive definite \mathbf{A}, \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{X})\,\mathbf{b} is the Galerkin approximation to \mathbf{A}^{-1}\mathbf{b} from that space. Junk value: when \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q} is singular, the pseudoinverse is returned, which is not a Galerkin solution. [Saad2003, 搂5.2].
NLAlib.galerkinInverse.{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 饾暅) (X : Matrix n p 饾暅) : Matrix n n 饾暅Import NLAlib.Krylov.LinearSystems.Galerkin.