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)Import NLAlib.Regression.SketchAndProject.