NLA-lib Explorer

NLAlib.conjTranspose_samplingSketchMatrix_mul_mul

Library · theorem

The Gram-atoms identity: the sketched cross-Gram matrix (\mathbf{S}\mathbf{A})^{\mathsf{H}} (\mathbf{S}\mathbf{B}) is the sum over the samples j of the rank-one atoms (\lvert k \rvert \, p_{\iota(j)})^{-1} \mathbf{a}_{\iota(j)}^{\mathsf{H}} \mathbf{b}_{\iota(j)}, \mathbf{a}_i and \mathbf{b}_i the rows of \mathbf{A} and \mathbf{B}, the zero matrix where p_{\iota(j)} = 0.

NLAlib.conjTranspose_samplingSketchMatrix_mul_mul.{u_2, u_3, u_4, u_5, u_6} {𝕜 : Type u_2}
  [RCLike 𝕜] {k : Type u_3} {n : Type u_4} {q : Type u_5} {r : Type u_6} [Fintype k] [Fintype n]
  [DecidableEq n] (p : n → ℝ≥0) (ι : k → n) (A : Matrix n q 𝕜) (B : Matrix n r 𝕜) :
  (samplingSketchMatrix p ι * A)ᴴ * (samplingSketchMatrix p ι * B) =
    ∑ j, (↑(Fintype.card k) * ↑(p (ι j)))⁻¹ • vecMulVec (star (A (ι j))) (B (ι j))

Full source on GitHub

Import NLAlib.Sketching.Sampling.RowSampling.