Definition (CGLS). For \min_{\mathbf{x}}\|\mathbf{A}\mathbf{x}-\mathbf{b}\|_2, apply the mathematical CG iteration to the normal equations \mathbf{A}^{\mathsf{H}}\mathbf{A}\mathbf{x}=\mathbf{A}^{\mathsf{H}}\mathbf{b}. Compute products through \mathbf{A} and its adjoint rather than explicitly forming their Gram matrix. Full column rank makes the normal-equation matrix positive definite. Rank-deficient inputs require the corresponding breakdown and solution-selection conventions.
CGLS
Apply a conjugate-gradient recurrence to a least-squares problem.
Definition
Results
Theorem (CGLS).
conjugate gradients on the normal equations, with no definition of its own, \mathsf{cgIterate}(\mathbf{A}^{\mathsf{H}}\mathbf{A}, \mathbf{A}^{\mathsf{H}}\mathbf{b}, \mathbf{x}_0, q). For \mathbf{A} of full column rank and a least-squares solution \mathbf{x}_\star (\mathbf{A}^{\mathsf{H}}\mathbf{A}\mathbf{x}_\star = \mathbf{A}^{\mathsf{H}}\mathbf{b}), with \kappa = \kappa(\mathbf{A}), \|\mathbf{A}(\mathbf{x}_\star - \mathbf{x}_q)\|^2 \le 4\Bigl(\frac{\kappa - 1}{\kappa + 1}\Bigr)^{2q}\|\mathbf{A}(\mathbf{x}_\star - \mathbf{x}_0)\|^2 \,, written in the \mathbf{A}^{\mathsf{H}}\mathbf{A}-norm. [Saad2003, §8.3]; locator to verify.
Lean statement and details
NLAlib.re_quadForm_sub_cgIterate_conjTranspose_mul_le_four_mul_pow.{u_1, u_2, u_4} {𝕜 : Type u_1}
[RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {m : Type u_4} [Fintype m]
{A : Matrix m n 𝕜} (hA : Function.Injective A.mulVec) {b : m → 𝕜} {xs : n → 𝕜}
(hxs : (Aᴴ * A) *ᵥ xs = Aᴴ *ᵥ b) (x₀ : n → 𝕜) (q : ℕ) :
RCLike.re (quadForm (Aᴴ * A) (xs - cgIterate (Aᴴ * A) (Aᴴ *ᵥ b) x₀ q)) ≤
4 * ((pseudoConditionNumber A - 1) / (pseudoConditionNumber A + 1)) ^ (2 * q) *
RCLike.re (quadForm (Aᴴ * A) (xs - x₀))