NLA-lib Explorer

Matrix.IsHermitian.matchesMoments_lanczosQuadrature

Library ยท theorem

Lanczos quadrature matches the first 2q moments of the spectral measure: for Hermitian \mathbf{A}, every \mathbf{b} and every q, \int p\,d\mu_{\mathbf{A},\mathbf{b}} = \int p\,d\,\mathsf{lanczosQuadrature}(\mathbf{A}, \mathbf{b}, q) for e\mathbf{v}ery real polynomial p of degree less than 2q. [GolubMeurant2010, Ch. 6]. Chen, Trogdon and Ubaru (2022) start their spectrum-approximation bounds from this form; locator to check. Result: lanczos-gauss-quadrature

Matrix.IsHermitian.matchesMoments_lanczosQuadrature.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n ๐•œ} (hA : A.IsHermitian) (b : n โ†’ ๐•œ)
  (q : โ„•) : MatchesMoments (spectralMeasure A b) (lanczosQuadrature A b q) (2 * q)

Full source on GitHub

Import NLAlib.Krylov.Functions.Quadrature.