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
- Matrix.IsHermitian.re_quadForm_sub_cgIterate_le_four_mul_pow
- Matrix.PosDef.cgIterate_eq
- Matrix.PosDef.cgIterate_eq_of_krylovGrade_le
- Matrix.PosDef.conjTranspose_krylovMatrix_mulVec_sub_mulVec_cgIterate_eq_zero
- Matrix.PosDef.eq_cgIterate_of_conjTranspose_krylovMatrix_mulVec_sub_eq_zero
- Matrix.PosDef.isMinOn_cgIterate
- Matrix.PosDef.re_quadForm_sub_cgIterate_le
- Matrix.PosDef.re_quadForm_sub_cgIterate_le_four_mul_pow_of_forall_le
- Matrix.PosDef.re_quadForm_sub_cgIterate_le_four_mul_pow_pseudoConditionNumber
- Matrix.PosDef.re_quadForm_sub_cgIterate_le_four_mul_sq_mul_pow
- Matrix.PosDef.re_quadForm_sub_cgIterate_le_four_mul_sq_mul_pow_of_forall_lt
- Matrix.PosDef.re_quadForm_sub_cgIterate_le_iSup_sq_mul
- Matrix.PosDef.re_quadForm_sub_cgIterate_le_re_quadForm_aeval
- Matrix.PosDef.re_quadForm_sub_cgIterate_le_residualMinimax_sq_mul
- NLAlib.HasOrthonormalCols.cgIterate_eq
- NLAlib.cgIterate
- NLAlib.cgIterate_sub_mem_krylovSpace
- NLAlib.cgIterate_zero
- NLAlib.exists_sub_cgIterate_eq_aeval
- NLAlib.galerkinInverse_blockKrylovMatrix_replicateCol
- NLAlib.galerkinInverse_blockKrylovMatrix_replicateCol_mul
- NLAlib.re_quadForm_sub_cgIterate_conjTranspose_mul_le_four_mul_pow