Iterative Methods for Sparse Linear Systems, Second Edition

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.
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
Compute r 0 = b ? Ax 0, ? := ? r 0 ? 2, and ? 1 := r 0/ ?
For j = 1, 2, , m, Do
w j = A ? j ? ? j ? j-1 ( If j = 1 set ? 1 ? 0 ? 0)
? j = ( w j, ? j)
w j := w