NLA-lib Explorer

NLAlib.srhtMatrix

Library · def

The SRHT built from given signs and indices: \sqrt{\lvert n \rvert / \lvert k \rvert}\, \mathbf{P}^{\mathsf{H}} \mathbf{F} \mathbf{D}, with \mathbf{P} the selection matrix of \iota and \mathbf{D} = \operatorname{diag}(\boldsymbol{\xi}); row j is \sqrt{\lvert n \rvert / \lvert k \rvert} times row \iota(j) of \mathbf{F}\mathbf{D}. The factor \sqrt{\lvert n \rvert / \lvert k \rvert}\, \mathbf{P}^{\mathsf{H}} is NLAlib.samplingSketchMatrix at uniform weights. Its laws are NLAlib.srht (a uniform injection) and NLAlib.srhtWithReplacement (i.i.d. uniform indices). Halko, Martinsson and Tropp's test matrix \sqrt{n/\ell}\, \mathbf{D}\mathbf{F}\mathbf{R} acts on the right: it is \mathbf{S}^{\mathsf{H}} for their \mathbf{F}^{\mathsf{H}} in place of \mathbf{F}, which NLAlib.IsBoundedOrthonormal.conjTranspose carries across. [MartinssonTropp2020, §9.3] (there \sqrt{n/d}\, \mathbf{R}\mathbf{F}\mathbf{E}\mathbf{\Pi}, no permutation here); [HalkoMartinssonTropp2011, §4.6] (the SRFT, there with complex unimodular \mathbf{D}); [Woodruff2014, Theorem 7].

NLAlib.srhtMatrix.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3} {n : Type u_4}
  [Fintype k] [Fintype n] [DecidableEq n] (F : Matrix n n 𝕜) (ξ : n → ℝ) (ι : k → n) : Matrix k n 𝕜

Full source on GitHub

Import NLAlib.Sketching.Structured.SRHT.