NLA-lib Explorer

Matrix.IsHermitian.lanczosQuadrature_succ_eq_sum

Library · theorem

Golub–Welsch: for Hermitian \mathbf{A}, every q, and a unitary diagonalisation \mathbf{T} = \mathbf{U}\operatorname{diag}(\mathbf{d})\mathbf{U}^{\mathsf{H}} of the tridiagonal matrix of q + 1 steps of the Lanczos recurrence, \mathsf{lanczosQuadrature}(\mathbf{A}, \mathbf{b}, q + 1) = \sum_i \|\mathbf{b}\|^2\lvert\mathbf{U}_{0,i}\rvert^2\,\delta_{\mathbf{d}_i}\,: the nodes are the eigenvalues of \mathbf{T}, the weights the squared first entries of its eigenvectors. [GolubMeurant2010, Ch. 6] (locator to check). Result: lanczos-gauss-quadrature

Matrix.IsHermitian.lanczosQuadrature_succ_eq_sum.{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 : ℕ)
  {U : Matrix (Fin (q + 1)) (Fin (q + 1)) 𝕜} (hU : HasOrthonormalCols U) {d : Fin (q + 1) → ℝ}
  (hT : lanczosTridiagonal A b (q + 1) = (U * diagonal fun i ↦ ↑(d i)) * Uᴴ) :
  lanczosQuadrature A b (q + 1) =
    ∑ i, ENNReal.ofReal (‖WithLp.toLp 2 b‖ ^ 2 * ‖U 0 i‖ ^ 2) • Measure.dirac (d i)

Full source on GitHub

Import NLAlib.Krylov.Functions.Quadrature.