NLA-lib Explorer

NLAlib.samplingSketch

Library · def

The law of the row-sampling sketch: the pushforward by NLAlib.samplingSketchMatrix p of \lvert k \rvert i.i.d. indices with law NLAlib.samplingMeasure p. The measurable space on n is ⊤ inside the definition; NLAlib.samplingSketch_eq_map restates it under any measurable space on n with measurable singletons, and NLAlib.samplingSketch_eq_sum_smul_dirac as a finite mixture of Diracs. A probability measure when \sum_i p_i = 1 or k is empty. [Woodruff2014, Definition 16]; [MartinssonTropp2020, §9.6.3].

NLAlib.samplingSketch.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜] (k : Type u_3) {n : Type u_4}
  [Fintype k] [Fintype n] [DecidableEq n] (p : n → ℝ≥0) : Measure (Matrix k n 𝕜)

Full source on GitHub

Import NLAlib.Sketching.Sampling.RowSampling.