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) sImport NLAlib.Krylov.Functions.Quadrature.