NLA-lib Explorer

Lanczos quadrature

Use the Lanczos compression to approximate a quadratic form \mathbf{b}^{\mathsf{T}}f(\mathbf{A})\mathbf{b}.

Definition

Definition (Lanczos quadrature). For Hermitian \mathbf{A} and nonzero \mathbf{b}, approximate the quadratic form by

\mathbf{b}^{\mathsf{H}}f(\mathbf{A})\mathbf{b}\approx\|\mathbf{b}\|_2^2\mathbf{e}_1^{\mathsf{H}}f(\mathbf{T}_k)\mathbf{e}_1.

The eigenvalues of the Lanczos compression \mathbf{T}_k provide quadrature nodes; the squared first components of its normalized eigenvectors provide weights. The function, interval, and derivative assumptions determine which error bounds apply.

Lean statement and details
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

Copy link

Components

Results

Theorem (Lanczos quadrature is the Gauss rule of the spectral measure).

for Hermitian \mathbf{A} and every q, \mathsf{lanczosQuadrature}(\mathbf{A}, \mathbf{b}, q) is the q-point Gauss rule of \mu_{\mathbf{A},\mathbf{b}}, for every RCLike field (complex Hermitian included). [GolubMeurant2010, Ch. 6].

Lean statement and details
Matrix.IsHermitian.lanczosQuadrature_eq_gaussQuadrature.{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 : โ„•) : lanczosQuadrature A b q = gaussQuadrature (spectralMeasure A b) q

Full source on GitHub

Copy link

Used by other algorithms

Mathematical background

Appears under these tasks