NLA-lib Explorer

The conjugate gradient iterate

Library · Source module

The conjugate gradient iterate

The conjugate gradient iterate is defined mathematically, with no algorithm: from a start \mathbf{x}_0 it is \mathbf{x}_0 plus the Galerkin approximation to the error from the Krylov space of the initial residual, \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_0 + \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{K}_q(\mathbf{A}, \mathbf{r}_0))\,\mathbf{r}_0. For positive definite \mathbf{A} it equals \mathbf{x}_0 + \mathbf{Q}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q})^{-1}\mathbf{Q}^{\mathsf{H}}\mathbf{r}_0 for every orthonormal basis \mathbf{Q} of the Krylov space, minimises the \mathbf{A}-norm error over \mathbf{x}_0 + \mathcal{K}_q, beats every residual polynomial, converges at the Chebyshev rate and terminates at the grade.

Errors are written target minus output in the squared \mathbf{A}-norm RCLike.re (quadForm A _). Spectral hypotheses are spectrum ℝ A ⊆ s; a Loewner sandwich reaches them through spectrum_subset_Icc_of_le. The rate is written with \kappa = a'/a for a spectrum in [a, a'].

Main definitions

* NLAlib.cgIterate: the CG iterate from the start \mathbf{x}_0.

Main results

* Matrix.PosDef.cgIterate_eq: the frame form. * Matrix.PosDef.isMinOn_cgIterate: \mathbf{A}-norm optimality over \mathbf{x}_0 + \mathcal{K}_q. * Matrix.PosDef.eq_cgIterate_of_conjTranspose_krylovMatrix_mulVec_sub_eq_zero: the Galerkin characterisation. * NLAlib.exists_sub_cgIterate_eq_aeval: the error polynomial. * Matrix.PosDef.re_quadForm_sub_cgIterate_le: the polynomial bound. * Matrix.IsHermitian.re_quadForm_sub_cgIterate_le_four_mul_pow: the Chebyshev rate in \kappa. * Matrix.PosDef.re_quadForm_sub_cgIterate_le_four_mul_sq_mul_pow: the outlier bound. * Matrix.PosDef.re_quadForm_sub_cgIterate_le_residualMinimax_sq_mul: the spectrum-optimal bound. * NLAlib.re_quadForm_sub_cgIterate_conjTranspose_mul_le_four_mul_pow: CGLS. * Matrix.PosDef.cgIterate_eq_of_krylovGrade_le: finite termination. * NLAlib.galerkinInverse_blockKrylovMatrix_replicateCol_mul: block CG with one column is CG.

Declarations