Chapter 9
Krylov Methods for Ax = d
In this chapter
we show each iterate of the conjugate gradient method can be expressed as the
initial guess plus a linear combination of the
D
l
u({
0
) where u
0
= u({
0
) = gD{
0
is the initial residual and D
l
u({
0
) are called the Krylov vectors. Here {
p
= {
0
+
f
0
u
0
+ f
1
Du
0
+ · · · + f
p1
D
p1
u
0
and the coe!cients are the unknowns. They
can b e determined by either requiring M({
p
) =
1
2
({
p
)
W
D{
p
({
p
)
W
g> where D
is a SPD matrix, to be a minimum, or to require U ({
p
) = u({
p
)
W
u({
p
) to be a
minimum. The first case gives rise to the conjugate gradient method (CG), and
the second case generates the generalized minimum residual method (GMRES).
Both methods have many variations, and they can be accelerated by using
suitable preconditioners,
P, where one applies these methods to P
1
D{ =
P
1
g= A number of preconditioners will be described, and the parallel aspects
of these methods will be illustrated by MPI codes for preconditioned CG and
a restarted version of GMRES.
9.1 Conjugate Gradient Method
The conjugate gradient method as described in Sections 3.5 and 3.6 is an en-
hanced version of the method of steepest descent. First, the multiple residuals
are used so as to increase the dimensions of the underlying search set of vectors.
Second, conjugate directions are used so that the resulting algebraic systems for
the coe
!cients will be diagonal. As an additional benefit to using the conjugate
directions, all the coe
!cients are zero except for the l ast one. This means the
next iterate in the conjugate gradient method is the previous iterate plus a con-
stant times the last search direction. Thus, not all the search directions need
to be stored. This is in contrast to the GMRES method, which is applicable to
problems where the coe
!cient matrix is not SPD.
The implementation of the conjugate gradient method has the form given
below. The steepest descent in the direction
s
p
is given by using the parameter
> and the new conjugate direction s
p+1
is given by using the parameter = For
345
© 2004 by Chapman & Hall/CRC
The conjugate gradientmethodwas introduced in Chapter 3.