NLAlib.slq
Library · def
The stochastic Lanczos quadrature estimate of \operatorname{tr} f(\mathbf{A}) from the test matrix \mathbf{\Omega}, whose m columns \boldsymbol{\omega}_1, \dots, \boldsymbol{\omega}_m are the pro\mathbf{b}es: the a\mathbf{v}erage o\mathbf{v}er the pro\mathbf{b}es of the q-point Gauss rule of each probe's spectral measure \mu_j = \mu_{\mathbf{A},\boldsymbol{\omega}_j} applied to f, \mathsf{slq}(\mathbf{A}, f, \mathbf{\Omega}, q) := \frac{1}{m}\sum_{j=1}^m \int f\,d\,\mathsf{gaussQuadrature}(\mu_j, q)\,, the Girard–Hutchinson estimate with each \boldsymbol{\omega}_j^{\mathsf{H}}f(\mathbf{A})\boldsymbol{\omega}_j = \int f\,d\mu_j replaced by its Gauss quadrature. For Hermitian \mathbf{A} this is what q Lanczos steps per probe compute, \tfrac{1}{m}\sum_j\boldsymbol{\omega}_j^{\mathsf{H}}\mathsf{lanczosFA}(\mathbf{A}, f, \boldsymbol{\omega}_j, q) = \tfrac{1}{m}\sum_j\|\boldsymbol{\omega}_j\|^2\mathbf{e}_1^{\mathsf{T}} f(\mathbf{T}_j)\mathbf{e}_1 (\mathbf{M}atri\mathbf{x}.Is\mathbf{H}ermitian.slq_eq_sum_lanczosF\mathbf{A}), with mq products with \mathbf{A}. A real number in 𝕜. Junk value: 0 when \mathbf{\Omega} has no columns, when q = 0 and when \mathbf{A} is not Hermitian. [UbaruChenSaad2017, §3] (locator to check); [MartinssonTropp2020, §6.6, Algorithm 6]. Algorithm: stochastic-lanczos-quadrature
NLAlib.slq.{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 𝕜) (f : ℝ → ℝ) (Ω : Matrix n m 𝕜) (q : ℕ) : 𝕜Import NLAlib.Estimation.Trace.StochasticLanczosQuadrature.