NLA-lib Explorer

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ā‚€) q

Full source on GitHub

Import NLAlib.Regression.SketchAndPrecondition.