NLA-lib Explorer

NLAlib.HasOrthonormalCols.lanczosQuadrature_eq_interpolatoryQuadrature

Library ยท theorem

Lanczos quadrature is the Gauss rule of the spectral measure: for Hermitian \mathbf{A}, \mathbf{Q} with orthonormal columns spanning \mathcal{K}_q(\mathbf{A}, \mathbf{b}) and every q, \mathsf{lanczosQuadrature}(\mathbf{A}, \mathbf{b}, q) is the interpolatory rule of \mu_{\mathbf{A},\mathbf{b}} at the set s of the distinct Ritz values (the eigenvalues of \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}), q of them when q is at most the grade of \mathbf{b}. Past the grade both sides are \mu_{\mathbf{A},\mathbf{b}} itself. [GolubMeurant2010, Ch. 6]. Result: lanczos-gauss-quadrature

NLAlib.HasOrthonormalCols.lanczosQuadrature_eq_interpolatoryQuadrature.{u_1, u_2, u_3}
  {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} {r : Type u_3} [Fintype n] [DecidableEq n] [Fintype r]
  [DecidableEq r] {Q : Matrix n r ๐•œ} (hQ : HasOrthonormalCols Q) {A : Matrix n n ๐•œ}
  (hA : A.IsHermitian) {b : n โ†’ ๐•œ} {q : โ„•} (hK : Q.mulVecLin.range = krylovSpace A b q)
  {s : Finset โ„} (hs : โ†‘s = spectrum โ„ (Qแดด * A * Q)) :
  lanczosQuadrature A b q = interpolatoryQuadrature (spectralMeasure A b) s

Full source on GitHub

Import NLAlib.Krylov.Functions.Quadrature.