Iterative Methods for Sparse Linear Systems, Second Edition

6.7: The Conjugate Gradient Algorithm

6.7 The Conjugate Gradient Algorithm

The conjugate gradient (CG) algorithm is one of the best known iterative techniques for solving sparse symmetric positive definite (SPD) linear systems. Described in one sentence, the method is a realization of an orthogonal projection technique onto the Krylov subspace ( r 0, A), where r 0 is the initial residual. It is therefore mathematically equivalent to FOM. However, because A is symmetric, some simplifications resulting from the three-term Lanczos recurrence will lead to more elegant algorithms.

6.7.1 Derivation and Theory

We first derive the analogue of FOM, or Arnoldi's method, for the case when A is symmetric. Given an initial guess x 0 to the linear system Ax = b and the Lanczos vectors ? i, i = 1, , m, together with the tridiagonal matrix T m, the approximate solution obtained from an orthogonal projection method onto is given by

ALGORITHM 6.16: Lanczos Method for Linear Systems
  1. Compute r 0 = b ? Ax 0, ? := ? r 0 ? 2, and ? 1 := r 0/ ?

  2. For j = 1, 2, , m, Do

  3. w j = A ? j ? ? j ? j-1 ( If j = 1 set ? 1 ? 0 ? 0)

  4. ? j = ( w j, ? j)

  5. w j := w

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Thermocouple Elements
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.