NLA-lib Explorer

NLAlib.compressedCfc

Library ยท def

The compressed function of \mathbf{A} on the column space of \mathbf{X}: \mathsf{compressedCfc}(\mathbf{A}, f, \mathbf{X}) := \mathbf{P}f(\mathbf{P}\mathbf{A}\mathbf{P})\mathbf{P}, \mathbf{P} = \mathbf{P}_{\mathbf{X}}, where f(\cdot) is Mathlib's cfc f. It depends on \mathbf{X} only through its column space (compressedCfc_eq_of_range_eq) and equals \mathbf{Q}f(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q})\mathbf{Q}^{\mathsf{H}} for every \mathbf{Q} with orthonormal columns spanning it (HasOrthonormalCols.compressedCfc_eq). For f(\mathbf{x}) = \mathbf{x}^{-1} it is galerkinInverse A X. Junk value: \mathbf{0} when the compression is not Hermitian (in particular for most non-Hermitian \mathbf{A}). [Saad1992, ยง2]; [ChenPersson2026, (1)].

NLAlib.compressedCfc.{u_1, u_2, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} {p : Type u_3}
  [Fintype n] [DecidableEq n] [Fintype p] (A : Matrix n n ๐•œ) (f : โ„ โ†’ โ„) (X : Matrix n p ๐•œ) :
  Matrix n n ๐•œ

Full source on GitHub

Import NLAlib.Krylov.Functions.LanczosFA.