Docsity

LU Factorization in Numerical Methods: Matrix Computations - Prof. Chongwoo Park, Study notes of Computer Science

Partial preview of the text

Download LU Factorization in Numerical Methods: Matrix Computations - Prof. Chongwoo Park and more Study notes Computer Science in PDF only on Docsity!

CS 8803 NMC: Numerical Methods in

Computational Science and Engineering: Matrix

Computations

Haesun Park ^ hpark

 @cc.gatech.edu

Division of Computational Science and Engineering

College of Computing Georgia Institute of Technology

Atlanta, GA 30332, USALecture 4, August 30, 2007

LU Factorization 3.^

G.E. with Partial Pivoting 

^ ,

(Partial) pivoting: avoid small pivot elements, i.e. avoids large multipliers.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.1/

LU Factorization e.g.

 



CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.3/

LU Factorization Every time we reorder rows and choose the biggest pivot elements:   If

 ^ ^ 

then

 multiplier

Let

be s.t.

 ^ ^ 

  , then

^ 

^  

and

where

^ 

initially.

is the permutation which swaps row

 and row

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.4/

LU Factorization e.g.

  swaps rows 3 and

, then

^ ^ 

^  

So we have

 ^ ^ 

^  

 ^ ^ 

^ ^ 

^  

^ ^ 

^ 

^  

^  

^  

^  

^  

^  

, which leads to

 

 ^ ^  

^ 

Let

^ 

^  

^ 

, then

^ 

^ 



CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.6/

LU Factorization Each

^  is an interchange permutation involving row

 and a row with

index

^ . So each

 ^ 

is also a Gauss Transformation.

To solve

^

, it equals to

  1. Solve

for

  1. Solve

for

In practice, never store

 as a matrix,

^ locations is enough to store

e.g.

^  

 ^    ^

 ^    ^

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.7/

LU Factorization 3.^

Complexity:

  

Flops

G.E.:

flops.

G.E. with partial pivoting:

flops

^ 

comparisons

flops

comparisons

G.E. with complete pivoting:

flops

comparisons

G.E. with complete pivoting is a little better than G.E. with partial pivoting. ButG.E. with partial pivoting is good enough, which is adopted in practice.

CS 8803 NMC: Numerical Methods in Computational Science and Engineering: Matrix Computations โ€“ p.9/