NLA-lib Explorer

NLAlib.samplingSketchMatrix_mul_conjTranspose_of_injective

Library · theorem

Distinct indices give orthogonal rows: for an injective \iota, the rows of the sketch have disjoint supports, so \mathbf{S}\mathbf{S}^{\mathsf{H}} is diagonal with entries (\lvert k \rvert \, p_{\iota(j)})^{-1} (0 where p_{\iota(j)} = 0). At uniform weights it is (\lvert n \rvert / \lvert k \rvert) \mathbf{I}, the partial isometry of row sampling without replacement and of the subsampled randomized Hadamard transform.

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

Full source on GitHub

Import NLAlib.Sketching.Sampling.RowSampling.