NLA-lib Explorer

NLAlib.girardHutchinson_eq_sum

Library · theorem

The Girard–Hutchinson estimate \mathsf{girardHutchinson}(\mathbf{A}, \mathbf{\Omega}) is the average of the single-probe estimates \boldsymbol{\omega}_j^{\mathsf{H}}\mathbf{A}\boldsymbol{\omega}_j.

NLAlib.girardHutchinson_eq_sum.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜] {n : Type u_3}
  {m : Type u_4} [Fintype n] [Fintype m] (A : Matrix n n 𝕜) (Ω : Matrix n m 𝕜) :
  girardHutchinson A Ω = (∑ j, quadForm A fun i ↦ Ω i j) / ↑(Fintype.card m)

Full source on GitHub

Import NLAlib.Estimation.Trace.GirardHutchinson.