Test case: the Girard–Hutchinson trace estimator (visible randomness)
Library · Source module
Test case: the Girard–Hutchinson trace estimator (visible randomness)
hutch adds to the cell est the sum of gᵢᵀ (A gᵢ) over N probes. The algorithm itself draws each probe into its own scratch block g with the vector draw gauss, so the values are in its store and it computes with them: matvec, then dot of the probe with the product.
Main results
* NLAlib.Ops.Examples.integral_hutchF, variance_hutchF: mathematics. For probes whose decoded law is isotropic, 𝔼 Σᵢ gᵢᵀ A gᵢ = N tr A; the probes are independent (they are windows at disjoint positions), so the variance is N times that of one quadratic form. * NLAlib.Ops.Examples.runs_hutch: the run, for every interpretation satisfying the contracts and every tape: N calls of each operation, 2 n + 1 scratch cells and the workspace of one operation. * NLAlib.Ops.Examples.runsLaw_hutch: the abstract theorem: the estimate est / N is unbiased, 𝔼 est / N = tr A, and its variance is that of one quadratic form divided by N.
Declarations
- NLAlib.Ops.Examples.HutchOperands
- NLAlib.Ops.Examples.HutchPost
- NLAlib.Ops.Examples.decv_window
- NLAlib.Ops.Examples.hutch
- NLAlib.Ops.Examples.hutchCount
- NLAlib.Ops.Examples.hutchF
- NLAlib.Ops.Examples.hutchPeak
- NLAlib.Ops.Examples.hutchRel
- NLAlib.Ops.Examples.hutchRel_dom
- NLAlib.Ops.Examples.hutchRel_inLens
- NLAlib.Ops.Examples.hutchRel_nd
- NLAlib.Ops.Examples.hutchRel_outLens
- NLAlib.Ops.Examples.hutchRel_rel
- NLAlib.Ops.Examples.hutchRel_stream
- NLAlib.Ops.Examples.hutchRel_win
- NLAlib.Ops.Examples.hutchRoutine
- NLAlib.Ops.Examples.hutchRoutine_implements
- NLAlib.Ops.Examples.hutchRoutine_meets
- NLAlib.Ops.Examples.hutch_satisfies
- NLAlib.Ops.Examples.hutch_wp
- NLAlib.Ops.Examples.integral_hutchF
- NLAlib.Ops.Examples.map_probe
- NLAlib.Ops.Examples.measurable_probe
- NLAlib.Ops.Examples.probe
- NLAlib.Ops.Examples.runsLaw_hutch
- NLAlib.Ops.Examples.staticCost_hutch
- NLAlib.Ops.Examples.staticPeak_hutch_le
- NLAlib.Ops.Examples.sum_quadForm_window
- NLAlib.Ops.Examples.variance_hutchF