NLAlib.IsQR.sketchAndPrecondition_eq_mulVec_cgIterate
Library Ā· theorem
Sketch-and-precondition with QR (Blendenpik): for a thin QR factorization \mathbf{S}\mathbf{A} = \mathbf{Q}\mathbf{R} with \mathbf{R} invertible, the iterate is \mathbf{R}^{-1} times CGLS on \mathbf{A}\mathbf{R}^{-1} from \mathbf{R}\mathbf{x}_0: \mathsf{sketchAndPrecondition}(\mathbf{A}, \mathbf{S}, \mathbf{y}, \mathbf{x}_0, q) = \mathbf{R}^{-1}\,\mathsf{cgIterate}((\mathbf{A}\mathbf{R}^{-1})^{\mathsf{H}} \mathbf{A}\mathbf{R}^{-1}, (\mathbf{A}\mathbf{R}^{-1})^{\mathsf{H}}\mathbf{y}, \mathbf{R}\mathbf{x}_0, q)\,. [Epperly2024, Algorithm 1], there with LSQR.
NLAlib.IsQR.sketchAndPrecondition_eq_mulVec_cgIterate.{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] [DecidableEq n]
{S : Matrix k m š} {A : Matrix m n š} {xā : n ā š} [LinearOrder n] {Q : Matrix k n š}
{R : Matrix n n š} (hQR : IsQR (S * A) Q R) (hR : IsUnit R) (y : m ā š) (q : ā) :
sketchAndPrecondition A S y xā q =
Rā»Ā¹ *ᵄ cgIterate ((A * Rā»Ā¹)į““ * (A * Rā»Ā¹)) ((A * Rā»Ā¹)į““ *ᵄ y) (R *ᵄ xā) qImport NLAlib.Regression.SketchAndPrecondition.