NLA-lib Explorer

NLAlib.samplingSketchMatrix_eq_diagonal_mul

Library · theorem

The row-sampling sketch is a diagonal scaling of the transposed selection matrix: \mathbf{S} = \operatorname{diag}\bigl((\lvert k \rvert \, p_{\iota(j)})^{-1/2}\bigr) \mathbf{P}^{\mathsf{H}} for the selection matri\mathbf{x} \mathbf{P} of \iota.

NLAlib.samplingSketchMatrix_eq_diagonal_mul.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3}
  {n : Type u_4} [Fintype k] [DecidableEq n] [DecidableEq k] (p : n → ℝ≥0) (ι : k → n) :
  samplingSketchMatrix p ι =
    (diagonal fun j ↦ ↑(√(↑(Fintype.card k) * ↑(p (ι j))))⁻¹) * (selectionMatrix ι)ᴴ

Full source on GitHub

Import NLAlib.Sketching.Sampling.RowSampling.