NLA-lib Explorer

NLAlib.HasOrthonormalCols.sketchAndPrecondition_eq_mulVec_cgIterate

Library Ā· theorem

Headline of sketch-and-precondition-realisation (provisional)

Sketch-and-precondition is CGLS on \mathbf{A}\mathbf{M}: for \mathbf{A} \in \Bbbk^{m \times n}, a sketch \mathbf{S}, a square \mathbf{M} with \mathbf{S}\mathbf{A}\mathbf{M} orthonormal and \mathbf{M}\mathbf{z}_0 = \mathbf{x}_0, \mathsf{sketchAndPrecondition}(\mathbf{A}, \mathbf{S}, \mathbf{y}, \mathbf{x}_0, q) = \mathbf{M}\,\mathsf{cgIterate}((\mathbf{A}\mathbf{M})^{\mathsf{H}}\mathbf{A}\mathbf{M}, (\mathbf{A}\mathbf{M})^{\mathsf{H}}\mathbf{y}, \mathbf{z}_0, q)\,. Orthonormality makes \mathbf{M} and \mathbf{A} injective, so no rank hypothesis is needed. [EpperlyMeierNakatsukasa2024, §2.1], there for \mathbf{M} = \mathbf{R}^{-1}, where CG on the preconditioned normal equations is LSQR in exact arithmetic. Result: sketch-and-precondition-realisation

NLAlib.HasOrthonormalCols.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 → š•œ} {M : Matrix n n š•œ}
  (hSAM : HasOrthonormalCols (S * A * M)) (y : m → š•œ) {zā‚€ : n → š•œ} (hzā‚€ : M *ᵄ zā‚€ = xā‚€) (q : ā„•) :
  sketchAndPrecondition A S y xā‚€ q = M *ᵄ cgIterate ((A * M)į““ * (A * M)) ((A * M)į““ *ᵄ y) zā‚€ q

Full source on GitHub

Import NLAlib.Regression.SketchAndPrecondition.