NLA-lib Explorer

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 B

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.