NLAlib.lanczosQuadrature
Library ยท def
The Lanczos (Gauss) quadrature rule of q steps from \mathbf{b}: \mathsf{lanczosQuadrature}(\mathbf{A}, \mathbf{b}, q) := \mu_{\mathbf{P}\mathbf{A}\mathbf{P}, \mathbf{P}\mathbf{b}} with \mathbf{P} = \mathbf{P}_{\mathbf{K}_q(\mathbf{A},\mathbf{b})}; for any orthonormal basis \mathbf{Q} of the Krylov space it is the spectral measure of (\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}, \mathbf{Q}^{\mathsf{H}}\mathbf{b}) (HasOrthonormalCols.lanczosQuadrature_eq): atoms at the Ritz values. Junk: 0 at q = 0 and when the compression is not Hermitian. [GolubMeurant2010, Ch. 6].
NLAlib.lanczosQuadrature.{u_1, u_2} {๐ : Type u_1} [RCLike ๐] {n : Type u_2} [Fintype n]
[DecidableEq n] (A : Matrix n n ๐) (b : n โ ๐) (q : โ) : Measure โImport NLAlib.Krylov.Functions.Quadrature.