Matrix.IsHermitian.slq_eq_sum_lanczosFA
Library · theorem
SLQ is what the Lanczos algorithm computes: for Hermitian \mathbf{A}, every f : \mathbb{R} \to \mathbb{R}, every test matrix \mathbf{\Omega} with m columns \boldsymbol{\omega}_j and every q, \mathsf{slq}(\mathbf{A}, f, \mathbf{\Omega}, q) = \frac{1}{m}\sum_{j=1}^m \boldsymbol{\omega}_j^{\mathsf{H}}\,\mathsf{lanczosFA}(\mathbf{A}, f, \boldsymbol{\omega}_j, q)\,: each probe's Gauss rule is its Lanczos rule (Matrix.IsHermitian.lanczosQuadrature_eq_gaussQuadrature) and the Lanczos rule integrates f to the Lanczos-FA quadratic form, which is real. [MartinssonTropp2020, §6.6, Algorithm 6]; there as the definition.
Matrix.IsHermitian.slq_eq_sum_lanczosFA.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
{m : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] {A : Matrix n n 𝕜} (hA : A.IsHermitian)
(f : ℝ → ℝ) (Ω : Matrix n m 𝕜) (q : ℕ) :
slq A f Ω q = (∑ j, (star fun i ↦ Ω i j) ⬝ᵥ lanczosFA A f (fun i ↦ Ω i j) q) / ↑(Fintype.card m)Import NLAlib.Estimation.Trace.StochasticLanczosQuadrature.