NLA-lib Explorer

NLAlib.spectralMeasure_jacobiMatrix

Library · theorem

Headline of golub-welsch

Golub–Welsch: for a finite measure \mu supported in [a, c] and every k, the (k+1)-point Gauss rule of \mu is the spectral measure of its Jacobi matrix and \sqrt{\mu(\mathbb{R})}\,\mathbf{e}_0: its nodes are the eigenvalues of \mathbf{J}_{k+1}(\mu) and its weights \mu(\mathbb{R}) times the squared first components of the eigenvectors. Past the support size of \mu the matrix has zero rows, and the extra eigenvalues carry no weight. [Gautschi2004, Theorem 3.1]; [GolubWelsch1969, §2] (labels to check). Result: golub-welsch

NLAlib.spectralMeasure_jacobiMatrix (μ : Measure ℝ) [IsFiniteMeasure μ] {a c : ℝ}
  (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a c) (k : ℕ) :
  spectralMeasure (jacobiMatrix μ (k + 1)) (√(μ.real Set.univ) • Pi.single 0 1) =
    gaussQuadrature μ (k + 1)

Full source on GitHub

Import NLAlib.Krylov.Functions.Quadrature.