For a positive-definite matrix , the conjugate gradient method chooses mutually -conjugate search directions. Starting with and , it usesand with
.
.
For a symmetric positive-definite matrix, choose an orthonormal eigenbasis and write the exact solution as . Starting at zero, the conjugate gradient method chooses an admissible polynomial of degree at most the iteration count that minimizes the displayed error. The weights depend on both the eigenvalues and the solution coefficients. For two eigenvalues , the first polynomial is , with . Comparable nonzero coefficients and large give , so the high-eigenvalue error is removed first. A sufficiently tiny high-mode coefficient changes this behavior; the spectrum alone does not determine the first step.
Nonzero vectors are conjugate directions with respect to a symmetric positive-definite matrix when they are pairwise orthogonal in the inner product . They need not be orthogonal in the ordinary Euclidean inner product. They are linearly independent: multiplying a vanishing linear combination by isolates its th coefficient times .
Let be conjugate directions for a symmetric positive-definite matrix . Starting from any , minimize successively along those full lines, stopping early if the linear-system residual vanishes. The quadratic minimization along a line uses and gives .
This makes . For , conjugacy preserves . By mathematical induction, is orthogonal to all preceding search vectors. The conjugate directions are linearly independent and hence form a basis, so . Thus the method reaches the unique solution of the linear system in at most steps in exact arithmetic. The conjugate gradient method generates such directions without storing a complete prescribed basis in advance.
For a symmetric positive-definite matrix , the Conjugate gradient method minimizes the error in the induced weighted norm over its affine Krylov subspace. Writing the error as givesFor , choose the scaled Chebyshev polynomial . On the spectral interval its numerator has absolute value at most one. With , the denominator equals . This proves the displayed bound. If the two endpoints coincide, is a positive scalar multiple of the identity and one iteration solves the system exactly.
The residual of an approximate solution of is . It is the unbalanced right-hand side, while the solution error is . The conjugate gradient method makes residuals orthogonal to successive Krylov subspaces.
The norm of a linear-system residual, used to measure how closely an approximate solution satisfies its linear system. It differs from the solution-error norm . Their relationship depends on the matrix inverse and the condition number, so a small residual alone is not a scale-free relative-error guarantee.
At iteration of the conjugate gradient method,and itself lies in . These Galerkin conditions imply finite termination once the Krylov subspace becomes invariant under .
A symmetric preconditioner transforms intoThe aim is to make the transformed positive-definite matrix have clustered eigenvalues while keeping application of inexpensive.
For a positive-definite matrix , choosing gives , so conjugate gradients terminates in one step. Constructing or applying the exact inverse square root is generally as expensive as solving the original system.
With zero initial guess, the generalized minimal residual method minimizes the Euclidean norm of the linear-system residual over each Krylov subspace. The Arnoldi decomposition reduces this to , followed by . Givens rotations solve the small problem in operations once the decomposition is available. For an invertible matrix , the same iterate minimizes the error in the weighted norm induced by , because .
One step of restarted GMRES searches along the current residual. In the displayed nonsingular system, the first residual minimization is , whose minimizer is zero. Restarting then repeats the same problem forever and never moves. Unrestarted GMRES instead solves exactly at step two, since span the entire space. Thus a smaller search-space cost can come at the price of stagnation; nonsingularity alone does not guarantee progress for one-step restarting.
Starting with , the Arnoldi iteration constructs an orthonormal basis of successive Krylov subspaces. At step , orthogonalize against , and normalize the remainder as if it is nonzero. The coefficients form an upper Hessenberg matrix and satisfy . A zero remainder means the current Krylov subspace is invariant under .
For a real symmetric matrix , the leading block of the Arnoldi decomposition is both symmetric and an upper Hessenberg matrix, hence a tridiagonal matrix. The resulting three-term recurrence is the Lanczos algorithm. If is a symmetric positive-definite matrix, its compression is too, since for nonzero .
The factorization produced by the Arnoldi iteration, with orthonormal and an upper Hessenberg matrix . Multiplying by identifies its leading square block as .
For a diagonalizable finite-dimensional operator, write with nonzero in distinct eigenspaces of eigenvalues . Then . The Vandermonde matrix of the first powers is invertible for distinct eigenvalues, so these powers span exactly the independent components . Thus the stabilized Krylov subspace dimension is . It counts distinct spectral components, not the number of nonzero coefficients in an arbitrary eigenbasis: , has Krylov dimension one. Equivalently it is the minimum number of eigenvectors needed when those vectors may be chosen freely.
In exact arithmetic, conjugate gradients reaches the exact solution in at most the number of distinct eigenvalues of , and therefore in at most steps for an -dimensional system.
Articles by others on the same topic
The Conjugate Gradient (CG) method is an iterative algorithm primarily used for solving systems of linear equations whose coefficient matrix is symmetric and positive-definite. It is particularly effective for large-scale problems, where direct methods (like Gaussian elimination) can be computationally expensive or infeasible due to memory requirements. ### Key Features of the Conjugate Gradient Method: 1. **Iteration**: The CG method generates a sequence of approximations to the solution.
For positive definite matrices only.
TODO application.
www.studentclustercompetition.us/ comments:
The HPCG benchmark uses a preconditioned conjugate gradient (PCG) algorithm to measure the performance of HPC platforms with respect to frequently observed but challenging patterns of computing, communication, and memory access. While HPL provides an optimistic performance target for applications, HPCG can be considered as a lower bound on performance. Many of the top 500 supercomputers also provide their HPCG performance as a reference.