NLA-lib Explorer

NLAlib.girardHutchinson

Library · def

The Girard–Hutchinson estimate of \operatorname{tr}\mathbf{A} from the test matrix \mathbf{\Omega}, whose m columns are the probes: \mathsf{girardHutchinson}(\mathbf{A}, \mathbf{\Omega}) := \operatorname{tr}(\mathbf{\Omega}^{\mathsf{H}}\mathbf{A}\mathbf{\Omega}) / m. Junk \mathbf{v}alue: 0 when \mathbf{\Omega} has no columns. [Epperly2023, Girard–Hutchinson Estimator: The Basics]. Algorithm: girard-hutchinson

NLAlib.girardHutchinson.{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 𝕜) : 𝕜

Full source on GitHub

Import NLAlib.Estimation.Trace.GirardHutchinson.