NLAlib.sketchAndSolve_smul_sketch
Library ยท theorem
Rescaling the sketch does not change the sketch-and-solve solution: \mathsf{sketchAndSolve}(\mathbf{A}, c\mathbf{S}, \mathbf{B}) = \mathsf{sketchAndSolve}(\mathbf{A}, \mathbf{S}, \mathbf{B}) for c \ne 0, for instance the normalisations \lvert k \rvert^{-1/2}\mathbf{G} and \sqrt{\lvert n \rvert / \lvert k \rvert}\,\mathbf{Q}^{\mathsf{H}} of Gaussian and Haar sketches; a real scalar is the case RCLike.real_smul_eq_coe_smul. The fitted values are the case NLAlib.obliqueProjector_smul_right.
NLAlib.sketchAndSolve_smul_sketch.{u_1, u_3, u_4, u_5, u_6} {๐ : Type u_1} [RCLike ๐] {m : Type u_3}
{n : Type u_4} [Fintype m] [Fintype n] {k : Type u_5} {p : Type u_6} [Fintype k]
(A : Matrix m n ๐) (S : Matrix k m ๐) (B : Matrix m p ๐) {c : ๐} (hc : c โ 0) :
sketchAndSolve A (c โข S) B = sketchAndSolve A S BImport NLAlib.Matrix.Pseudoinverse.LeastSquares.