NLA-lib Explorer

NLAlib.isLeastSquaresSolution_sketchAndProject

Library ยท theorem

The step solves the sketched least-squares problem: for every \mathbf{A} \in \Bbbk^{m \times n}, sketch \mathbf{S}, \mathbf{b} and \mathbf{x}, \mathsf{sketchAndProject}(\mathbf{A}, \mathbf{S}, \mathbf{b}, \mathbf{x}) minimizes \|\mathbf{S}\mathbf{A}\mathbf{y} - \mathbf{S}\mathbf{b}\| over \mathbf{y}. [GowerRichtarik2015, (2.2)], there for a consistent system.

NLAlib.isLeastSquaresSolution_sketchAndProject.{u_1, u_2, u_3, u_4} {๐•œ : Type u_1} [RCLike ๐•œ]
  {k : Type u_2} {m : Type u_3} {n : Type u_4} [Fintype k] [Fintype m] [Fintype n]
  (A : Matrix m n ๐•œ) (S : Matrix k m ๐•œ) (b : m โ†’ ๐•œ) (x : n โ†’ ๐•œ) :
  IsLeastSquaresSolution (S * A) (S *แตฅ b) (sketchAndProject A S b x)

Full source on GitHub

Import NLAlib.Regression.SketchAndProject.