NLAlib.hutchpp
Library 路 def
Hutch++: for a square \mathbf{A}, a sketch test matrix \mathbf{S} and a residual test matrix \mathbf{G}, \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) := \operatorname{tr}\mathsf{rsvd}(\mathbf{A}, \mathbf{S}) + \mathsf{girardHutchinson}\bigl((\mathbf{I} - \mathbf{P}_{\mathbf{A}\mathbf{S}})\mathbf{A} (\mathbf{I} - \mathbf{P}_{\mathbf{A}\mathbf{S}}), \mathbf{G}\bigr)\,, the exact trace of the randomized SVD of \mathbf{A} with sketch \mathbf{S} plus the Girard鈥揌utchinson estimate, with the columns of \mathbf{G} as probes, of the trace of the compressed residual. It uses \lvert s \rvert products to form \mathbf{A}\mathbf{S}, at most \lvert s \rvert more for \mathbf{A}\mathbf{Q} with \mathbf{Q} a basis of its range, and \lvert t \rvert for the residual. Junk value: with no residual probes (t empty) the estimate of the residual is 0 and the output is \operatorname{tr}\mathsf{rsvd}(\mathbf{A}, \mathbf{S}). The basis form of the papers is NLAlib.hutchpp_eq_of_mul_conjTranspose_self_eq_rangeProjector. [MeyerMuscoMuscoWoodruff2021, Algorithm 1 and Algorithm 3]; [EpperlyTroppWebber2024, (1.3)]; there with an orthonormal basis \mathbf{Q} of the range of \mathbf{A}\mathbf{S} and \mathbf{S}, \mathbf{G} random (sign or Gaussian entries). Algorithm: hutchpp
NLAlib.hutchpp.{u_2, u_3, u_4, u_5} {饾暅 : Type u_2} [RCLike 饾暅] {n : Type u_3} {s : Type u_4}
{t : Type u_5} [Fintype n] [Fintype s] [Fintype t] [DecidableEq n] (A : Matrix n n 饾暅)
(S : Matrix n s 饾暅) (G : Matrix n t 饾暅) : 饾暅Import NLAlib.Estimation.Trace.HutchPlusPlus.