524
NUMERICAL
SOLUTION
OF
SYSTEMS
OF
LINEAR EQUATIONS
tion (8.3.3), with partial pivoting and implicit scaling,
see
the program unsymdet
in
Wilkinson and Reinsch (1971, pp. 93-110). In some situations, Crout's method
has advantages over the usual Doolittle method.
The principal advantage of the compact formula
is
that the elements lij and
uij all involve inner products,
as
illustrated below in formula (8.3.14)-(8.3.15) for
the factorization of a symmetric positive definite matrix. These inner products
can be accumulated using double precision arithmetic, possibly including a
concluding division, and then be rounded to single precision. This way of
computing inner products
was
discussed in Chapter 1 preceding the error
formula
(1.5.19). This limited use of double precision can greatly increase the
accuracy
of
the factors L and
U,
and it
is
not possible
to
do this with the regular
elimination method unless all operations and storage are done in double preci-
sion [for a complete discussion of these compact methods, see Wilkinson
(1965),
pp. 221-228, and Golub and Van Loan (1983),
sec.
5.1].
The Cholesky method Let A be a symmetric and positive definite matrix of
order n. The matrix
A
is
positive definite if
n n
(Ax,
x)
= L L
aijxixj
> 0
i=l
j=l
(8.3.7)
for all x E
R",
x *
0.
Some of the properties of positive definite matrices are
given
in
Problem 14 of Chapter 7 and Problems
9,
11,
and 12
of
this chapter.
Symmetric positive definite matrices occur
in
a wide variety of applications.
For
such a matrix A, there is a very convenient factorization, and it can be
carried through without any need for pivoting
or
scaling. This is called Choleski
's
method, and
it
states that
we
can find a lower triangular real matrix L such that
A
=LLT
(8.3.8)
The method requires only
!n(n
+ 1) storage locations fof
L,
rather than the
usual n
2
locations, and the number of operations is about
in
3
,
rather than the
number
tn
3
required for the usual decomposition.
To prove that
(8.3.8)
is
possible,
we
give a derivation of L based
on
induction.
Assume the result is true for all positive definite symmetric matrices of order
:$
n - 1. We show
it
is
true for all such matrices A of order n. Write the desired
L,
of order n, in the form
with
i a square matrix of order
n-
1, y E an-I, and x a scalar. The L
is
to be
chosen to satisfy
A =
LLT:
[
i
xo][i
0
T
YT
Y]=A=[A
X
CT
~]
(8.3.9)