NLA-lib Explorer

NLAlib.samplingSketchMatrix

Library · def

The row-sampling sketch with weights p and indices \iota : k \to n: row j is (\lvert k \rvert \, p_{\iota(j)})^{-1/2} \, \mathbf{e}_{\iota(j)}^{\mathsf{H}}. Junk value: a zero row where p_{\iota(j)} = 0. Its law for i.i.d. indices is NLAlib.samplingSketch. [Woodruff2014, Definition 16], there \mathbf{D}\mathbf{\Omega}^{\mathsf{T}}; [MartinssonTropp2020, §9.6.3].

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

Full source on GitHub

Import NLAlib.Sketching.Sampling.RowSampling.