Академический Документы
Профессиональный Документы
Культура Документы
1.1
CHAPTER 1.
1.2
LU Factorization
Algorithm 1.2.1 (LU Factorization, with the main diagonal of L of all ones, and without pivoting).
l11 = 1, u11 = a11 , if a11 = 0, Output Factorization Impossible, STOP
for j = 2 : n
a1j
u1j =
l11
aj1
lj1 =
u11
end for
for i = 2 : n 1
lii = 1
P
uii = aii i1
k=1 lik uki
if uii = 0, then Output Factorization Impossible, STOP
for j = i + 1 : n
P
1
uij = [aij i1
k=1 lik ukj ]
lii
P
1
lji =
[aji i1
k=1 ljk uki ]
uii
end for
end for
lnn = 1
P
unn = ann n1
k=1 lnk ukn
STOP
Definition 1.2.2. A permutation matrix P is a row-permuted identity matrix.
Proposition 1.2.3. Let P be a permutation matrix, then
1. P X is the same as X with its rows permuted. XP is the same as X with its column
permuted.
2. P 1 = P T .
3. det(P ) = 1.
4. P1 P2 is a permutation matrix.
Remark 1.2.4 (Elimination = Factorization). The direct method for solving Ax = b using
Gaussian elimination is (sometimes implicitly) carried out by the factorization procedure
(Algorithm 1.2.5).
Algorithm 1.2.5. Suppose Ax = b with A nonsingular.
1. Factorize A = P LU where
P = permutation matrix,
L = unit lower triangular matrix,
U = nonsingular upper triangular matrix.
10
1
Example 1.2.11. Consider LU factorization of A =
.
1
1
1.3