NLA-lib Explorer

The tridiagonal matrix of the conjugate gradient coefficients

Library · Source module

The tridiagonal matrix of the conjugate gradient coefficients

The coefficients of the Hestenes–Stiefel recurrence determine the Lanczos tridiagonal matrix through its \mathbf{L}\mathbf{D}\mathbf{L}^{\mathsf{T}} factorisation: with step lengths \gamma_j and residual norms \rho_j, \mathbf{T}_k = \mathbf{L}_k\,\operatorname{diag}(\gamma_0^{-1}, \dots, \gamma_{k-1}^{-1})\, \mathbf{L}_k^{\mathsf{T}},\qquad (\mathbf{L}_k)_{i+1,i} = \rho_{i+1}/\rho_i, (NLAlib.cgTridiagonal, defined from any two sequences), and conversely, since the factorisation of a positive definite matrix is unique, a matrix on which exact Lanczos computes NLAlib.cgTridiagonal γ ρ k is one on which exact CG computes the step lengths \gamma_j and the residual norms \rho_j. The first entry of the inverse is the Gauss quadrature value \rho_0^2(\mathbf{T}_k^{-1})_{00} = \sum_{i<k}\gamma_i\rho_i^2, and the squared \mathbf{A}-norm error decreases by \gamma_j\rho_j^2 at step j [HestenesStiefel1952, Theorem 6:1]. Together with the pivot bounds of a positive definite CG run (residual ratios, \|\mathbf{p}_j\| / \|\mathbf{r}_j\|, the coefficient ratio \delta_j/\gamma_j), this is the exact-arithmetic layer of the finite-precision conjugate gradient analysis.

Placement on integration: NLAlib.cgAlpha and the pivot bounds go to CGRecurrence.lean, the rest is a new file NLAlib/Krylov/LinearSystems/CGTridiagonal.lean.

Main definitions

* NLAlib.cgAlpha: the step length of a Hestenes–Stiefel state. * NLAlib.cgBidiagonal, NLAlib.cgTridiagonal: the factors and the tridiagonal matrix.

Main results

* NLAlib.cgTridiagonal_eq_mul: the factorisation. * NLAlib.sq_mul_inv_cgTridiagonal_zero_zero: the Gauss quadrature value. * Matrix.PosDef.lanczosTridiagonal_eq_cgTridiagonal: exact CG–Lanczos correspondence. * Matrix.PosDef.cgAlpha_cgState_eq_of_lanczosTridiagonal_eq, Matrix.PosDef.norm_cgState_r_eq_of_lanczosTridiagonal_eq: the converse. * Matrix.PosDef.re_quadForm_sub_cgIterate_sub_re_quadForm_sub_cgIterate_succ: the decrease of the error. * Matrix.PosDef.cgState_p_ne_zero: a nonzero residual gives a nonzero direction. * Matrix.PosDef.norm_cgState_p_sq_eq: the direction norm [HestenesStiefel1952, Theorem 5:5]. * Matrix.PosDef.norm_cgState_r_le, Matrix.PosDef.norm_cgState_p_sq_le, Matrix.PosDef.cgAlpha_le, Matrix.PosDef.norm_cgState_r_succ_sq_div_le: pivot bounds.

Declarations