NLA-lib Explorer

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 โ„

Full source on GitHub

Import NLAlib.Krylov.Functions.Quadrature.