Transcript
Page 1: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Linear Algebra and Applications:Numerical Linear Algebra

David S. [email protected]

Department of Mathematics

Washington State University

IMA Summer Program, 2008 – p. 1

Page 2: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

My Pledge to You

IMA Summer Program, 2008 – p. 2

Page 3: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

My Pledge to YouI promise not to cover as much materialas I previously claimed I would.

IMA Summer Program, 2008 – p. 2

Page 4: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Resources

IMA Summer Program, 2008 – p. 3

Page 5: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Resources (a biased list)

IMA Summer Program, 2008 – p. 3

Page 6: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Resources (a biased list)David S. Watkins,Fundamentals of MatrixComputations, Second Edition, John Wiley andSons, 2002. (FMC)

IMA Summer Program, 2008 – p. 3

Page 7: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Resources (a biased list)David S. Watkins,Fundamentals of MatrixComputations, Second Edition, John Wiley andSons, 2002. (FMC)

David S. Watkins,The QR algorithm revisited,SIAM Review, 50 (2008), pp. 133–145.

IMA Summer Program, 2008 – p. 3

Page 8: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Resources (a biased list)David S. Watkins,Fundamentals of MatrixComputations, Second Edition, John Wiley andSons, 2002. (FMC)

David S. Watkins,The QR algorithm revisited,SIAM Review, 50 (2008), pp. 133–145.

David S. Watkins,The Matrix Eigenvalue Problem,GR and Krylov Subspace Methods, SIAM, 2007.

IMA Summer Program, 2008 – p. 3

Page 9: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Leslie Hogben,Handbook of Linear Algebra,Chapman and Hall/CRC, 2007.

IMA Summer Program, 2008 – p. 4

Page 10: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Leslie Hogben,Handbook of Linear Algebra,Chapman and Hall/CRC, 2007.

Lloyd N. Trefethen and David Bau, III,NumericalLinear Algebra, SIAM, 1997.

IMA Summer Program, 2008 – p. 4

Page 11: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Leslie Hogben,Handbook of Linear Algebra,Chapman and Hall/CRC, 2007.

Lloyd N. Trefethen and David Bau, III,NumericalLinear Algebra, SIAM, 1997.

James W. Demmel,Applied Numerical LinearAlgebra, SIAM, 1997.

IMA Summer Program, 2008 – p. 4

Page 12: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Leslie Hogben,Handbook of Linear Algebra,Chapman and Hall/CRC, 2007.

Lloyd N. Trefethen and David Bau, III,NumericalLinear Algebra, SIAM, 1997.

James W. Demmel,Applied Numerical LinearAlgebra, SIAM, 1997.

G. H. Golub and C. F. Van Loan,MatrixComputations, Third Edition, Johns HopkinsUniversity Press, 1996.

IMA Summer Program, 2008 – p. 4

Page 13: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Common Linear AlgebraComputations

IMA Summer Program, 2008 – p. 5

Page 14: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Common Linear AlgebraComputations

linear systemAx = b

IMA Summer Program, 2008 – p. 5

Page 15: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Common Linear AlgebraComputations

linear systemAx = b

overdetermined linear systemAx = b

IMA Summer Program, 2008 – p. 5

Page 16: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Common Linear AlgebraComputations

linear systemAx = b

overdetermined linear systemAx = b

eigenvalue problemAv = λv

IMA Summer Program, 2008 – p. 5

Page 17: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Common Linear AlgebraComputations

linear systemAx = b

overdetermined linear systemAx = b

eigenvalue problemAv = λv

various generalized eigenvalue problems,e.g.Av = λBv

IMA Summer Program, 2008 – p. 5

Page 18: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Linear Systems

IMA Summer Program, 2008 – p. 6

Page 19: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Linear SystemsAx = b, n × n, nonsingular, real or complex

IMA Summer Program, 2008 – p. 6

Page 20: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Linear SystemsAx = b, n × n, nonsingular, real or complex

Examples: FMC §1.2, 7.1; any linear algebra text

IMA Summer Program, 2008 – p. 6

Page 21: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Linear SystemsAx = b, n × n, nonsingular, real or complex

Examples: FMC §1.2, 7.1; any linear algebra text

Major tools:Gaussian elimination (LU Decomp.)various iterative methods

IMA Summer Program, 2008 – p. 6

Page 22: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Overdetermined Linear Systems

IMA Summer Program, 2008 – p. 7

Page 23: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Overdetermined Linear SystemsAx = b, n × m, n > m

IMA Summer Program, 2008 – p. 7

Page 24: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Overdetermined Linear SystemsAx = b, n × m, n > m

oftenn ≫ m

IMA Summer Program, 2008 – p. 7

Page 25: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Overdetermined Linear SystemsAx = b, n × m, n > m

oftenn ≫ m

Example: fitting data by a straight line

IMA Summer Program, 2008 – p. 7

Page 26: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Overdetermined Linear SystemsAx = b, n × m, n > m

oftenn ≫ m

Example: fitting data by a straight line

minimize‖b − Ax‖2

(least squares)

IMA Summer Program, 2008 – p. 7

Page 27: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Overdetermined Linear SystemsAx = b, n × m, n > m

oftenn ≫ m

Example: fitting data by a straight line

minimize‖b − Ax‖2

(least squares)

Major tools:QR decompositionsingular value decomposition

IMA Summer Program, 2008 – p. 7

Page 28: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problems

IMA Summer Program, 2008 – p. 8

Page 29: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problemsstandard:Av = λv, n × n, real or complex

IMA Summer Program, 2008 – p. 8

Page 30: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problemsstandard:Av = λv, n × n, real or complex

Examples: FMC § 5.1

IMA Summer Program, 2008 – p. 8

Page 31: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problemsstandard:Av = λv, n × n, real or complex

Examples: FMC § 5.1

generalized:Av = λBv

IMA Summer Program, 2008 – p. 8

Page 32: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problemsstandard:Av = λv, n × n, real or complex

Examples: FMC § 5.1

generalized:Av = λBv

Examples: FMC § 6.7

IMA Summer Program, 2008 – p. 8

Page 33: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problemsstandard:Av = λv, n × n, real or complex

Examples: FMC § 5.1

generalized:Av = λBv

Examples: FMC § 6.7

product:A1A2

IMA Summer Program, 2008 – p. 8

Page 34: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problemsstandard:Av = λv, n × n, real or complex

Examples: FMC § 5.1

generalized:Av = λBv

Examples: FMC § 6.7

product:A1A2

Examples: generalized (AB−1), SVD (A∗A)

IMA Summer Program, 2008 – p. 8

Page 35: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Eigenvalue Problemsstandard:Av = λv, n × n, real or complex

Examples: FMC § 5.1

generalized:Av = λBv

Examples: FMC § 6.7

product:A1A2

Examples: generalized (AB−1), SVD (A∗A)

quadratic:(λ2K + λG + M)v = 0

IMA Summer Program, 2008 – p. 8

Page 36: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Sizes of Linear Algebra Problems

IMA Summer Program, 2008 – p. 9

Page 37: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Sizes of Linear Algebra Problemssmall

IMA Summer Program, 2008 – p. 9

Page 38: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Sizes of Linear Algebra Problemssmall

medium

IMA Summer Program, 2008 – p. 9

Page 39: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Sizes of Linear Algebra Problemssmall

medium

large

IMA Summer Program, 2008 – p. 9

Page 40: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:

IMA Summer Program, 2008 – p. 10

Page 41: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

IMA Summer Program, 2008 – p. 10

Page 42: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

IMA Summer Program, 2008 – p. 10

Page 43: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

storeA conventionally

IMA Summer Program, 2008 – p. 10

Page 44: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

storeA conventionally

solve using Gaussian elimination

IMA Summer Program, 2008 – p. 10

Page 45: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

storeA conventionally

solve using Gaussian elimination

A = LU

IMA Summer Program, 2008 – p. 10

Page 46: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

storeA conventionally

solve using Gaussian elimination

A = LU

PA = LU (partial pivoting)

IMA Summer Program, 2008 – p. 10

Page 47: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

storeA conventionally

solve using Gaussian elimination

A = LU

PA = LU (partial pivoting)

forward and back substitution

IMA Summer Program, 2008 – p. 10

Page 48: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

storeA conventionally

solve using Gaussian elimination

A = LU

PA = LU (partial pivoting)

forward and back substitution

Questions: cost?,

IMA Summer Program, 2008 – p. 10

Page 49: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:small problems

Ax = b, n × n, n “small”

storeA conventionally

solve using Gaussian elimination

A = LU

PA = LU (partial pivoting)

forward and back substitution

Questions: cost?, accuracy? (FMC Ch. 2)

IMA Summer Program, 2008 – p. 10

Page 50: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Positive Definite Case

IMA Summer Program, 2008 – p. 11

Page 51: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Positive Definite CaseA = A∗, x∗Ax > 0 for all x 6= 0

IMA Summer Program, 2008 – p. 11

Page 52: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Positive Definite CaseA = A∗, x∗Ax > 0 for all x 6= 0

A = R∗R Cholesky decomposition

IMA Summer Program, 2008 – p. 11

Page 53: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Positive Definite CaseA = A∗, x∗Ax > 0 for all x 6= 0

A = R∗R Cholesky decomposition

symmetric variant of Gaussian elimination

IMA Summer Program, 2008 – p. 11

Page 54: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Positive Definite CaseA = A∗, x∗Ax > 0 for all x 6= 0

A = R∗R Cholesky decomposition

symmetric variant of Gaussian elimination

flop count is halved

IMA Summer Program, 2008 – p. 11

Page 55: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:

IMA Summer Program, 2008 – p. 12

Page 56: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

IMA Summer Program, 2008 – p. 12

Page 57: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

Larger problems are usually sparser.

IMA Summer Program, 2008 – p. 12

Page 58: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

Larger problems are usually sparser.

Use sparse data structure.

IMA Summer Program, 2008 – p. 12

Page 59: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

Larger problems are usually sparser.

Use sparse data structure.

sparse Gaussian elimination

IMA Summer Program, 2008 – p. 12

Page 60: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

Larger problems are usually sparser.

Use sparse data structure.

sparse Gaussian elimination

A = LU

IMA Summer Program, 2008 – p. 12

Page 61: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

Larger problems are usually sparser.

Use sparse data structure.

sparse Gaussian elimination

A = LU

factors “usually” less sparse thanA,

IMA Summer Program, 2008 – p. 12

Page 62: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

Larger problems are usually sparser.

Use sparse data structure.

sparse Gaussian elimination

A = LU

factors “usually” less sparse thanA, but still sparse

IMA Summer Program, 2008 – p. 12

Page 63: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:medium problems

Larger problems are usually sparser.

Use sparse data structure.

sparse Gaussian elimination

A = LU

factors “usually” less sparse thanA, but still sparse

Crucial question: Can factors fit in main memory?

IMA Summer Program, 2008 – p. 12

Page 64: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:

IMA Summer Program, 2008 – p. 13

Page 65: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

IMA Summer Program, 2008 – p. 13

Page 66: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

IMA Summer Program, 2008 – p. 13

Page 67: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

Use an iterative method.

IMA Summer Program, 2008 – p. 13

Page 68: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

Use an iterative method.

direct vs. iterative methods

IMA Summer Program, 2008 – p. 13

Page 69: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

Use an iterative method.

direct vs. iterative methods

Some buzz words: descent method, conjugategradients (CG), GMRES, . . .

IMA Summer Program, 2008 – p. 13

Page 70: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

Use an iterative method.

direct vs. iterative methods

Some buzz words: descent method, conjugategradients (CG), GMRES, . . .

preconditioners,

IMA Summer Program, 2008 – p. 13

Page 71: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

Use an iterative method.

direct vs. iterative methods

Some buzz words: descent method, conjugategradients (CG), GMRES, . . .

preconditioners, and on and on.

IMA Summer Program, 2008 – p. 13

Page 72: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

Use an iterative method.

direct vs. iterative methods

Some buzz words: descent method, conjugategradients (CG), GMRES, . . .

preconditioners, and on and on.

FMC Chapter 7

IMA Summer Program, 2008 – p. 13

Page 73: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Solving Linear Systems:large problems

L andU factors may be too large to store . . .

Use an iterative method.

direct vs. iterative methods

Some buzz words: descent method, conjugategradients (CG), GMRES, . . .

preconditioners, and on and on.

FMC Chapter 7

Richard Barrett et. al.,Templates for the Solution ofLinear Systems, . . . , SIAM 1994. (FREE!!!)

IMA Summer Program, 2008 – p. 13

Page 74: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving On

IMA Summer Program, 2008 – p. 14

Page 75: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

IMA Summer Program, 2008 – p. 14

Page 76: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

generally useful computing tools

IMA Summer Program, 2008 – p. 14

Page 77: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

generally useful computing tools

sticking to real case for simplicity

IMA Summer Program, 2008 – p. 14

Page 78: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

generally useful computing tools

sticking to real case for simplicity

standard inner product: 〈x, y〉 =∑n

j=1xjyj

IMA Summer Program, 2008 – p. 14

Page 79: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

generally useful computing tools

sticking to real case for simplicity

standard inner product: 〈x, y〉 =∑n

j=1xjyj

Euclidean norm: ‖x‖2

=(

∑nj=1

x2

j

)1/2

IMA Summer Program, 2008 – p. 14

Page 80: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

generally useful computing tools

sticking to real case for simplicity

standard inner product: 〈x, y〉 =∑n

j=1xjyj

Euclidean norm: ‖x‖2

=(

∑nj=1

x2

j

)1/2

‖x‖2

=√

〈x, x〉

IMA Summer Program, 2008 – p. 14

Page 81: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

generally useful computing tools

sticking to real case for simplicity

standard inner product: 〈x, y〉 =∑n

j=1xjyj

Euclidean norm: ‖x‖2

=(

∑nj=1

x2

j

)1/2

‖x‖2

=√

〈x, x〉

definition of orthogonal:QT = Q−1

IMA Summer Program, 2008 – p. 14

Page 82: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Moving OnOrthogonal Transformations

generally useful computing tools

sticking to real case for simplicity

standard inner product: 〈x, y〉 =∑n

j=1xjyj

Euclidean norm: ‖x‖2

=(

∑nj=1

x2

j

)1/2

‖x‖2

=√

〈x, x〉

definition of orthogonal:QT = Q−1

properties of orthogonal matricesIMA Summer Program, 2008 – p. 14

Page 83: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors

IMA Summer Program, 2008 – p. 15

Page 84: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

IMA Summer Program, 2008 – p. 15

Page 85: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

one of two major classes of computationally usefulorthogonal transformations

IMA Summer Program, 2008 – p. 15

Page 86: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

one of two major classes of computationally usefulorthogonal transformations

Q = I − 2uuT , ‖u‖2

= 1

IMA Summer Program, 2008 – p. 15

Page 87: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

one of two major classes of computationally usefulorthogonal transformations

Q = I − 2uuT , ‖u‖2

= 1

geometric action

IMA Summer Program, 2008 – p. 15

Page 88: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

one of two major classes of computationally usefulorthogonal transformations

Q = I − 2uuT , ‖u‖2

= 1

geometric action

Qx = y

IMA Summer Program, 2008 – p. 15

Page 89: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

one of two major classes of computationally usefulorthogonal transformations

Q = I − 2uuT , ‖u‖2

= 1

geometric action

Qx = y

creating zeros

IMA Summer Program, 2008 – p. 15

Page 90: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

one of two major classes of computationally usefulorthogonal transformations

Q = I − 2uuT , ‖u‖2

= 1

geometric action

Qx = y

creating zeros

details: FMC Chapter 3

IMA Summer Program, 2008 – p. 15

Page 91: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Elementary Reflectors= Householder transformations

one of two major classes of computationally usefulorthogonal transformations

Q = I − 2uuT , ‖u‖2

= 1

geometric action

Qx = y

creating zeros

details: FMC Chapter 3

QR decomposition

IMA Summer Program, 2008 – p. 15

Page 92: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Uses of theQR Decomposition

IMA Summer Program, 2008 – p. 16

Page 93: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Uses of theQR DecompositionAx = b, n × n

IMA Summer Program, 2008 – p. 16

Page 94: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Uses of theQR DecompositionAx = b, n × n

overdetermined system

IMA Summer Program, 2008 – p. 16

Page 95: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

Uses of theQR DecompositionAx = b, n × n

overdetermined system

orthonormalizing vectors

IMA Summer Program, 2008 – p. 16

Page 96: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The Gram-Schmidt Process

IMA Summer Program, 2008 – p. 17

Page 97: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The Gram-Schmidt Processorthonormalization of vectors

IMA Summer Program, 2008 – p. 17

Page 98: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The Gram-Schmidt Processorthonormalization of vectors

relationship toQR decomposition

IMA Summer Program, 2008 – p. 17

Page 99: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The Gram-Schmidt Processorthonormalization of vectors

relationship toQR decomposition

reorthogonalization

IMA Summer Program, 2008 – p. 17

Page 100: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The SVD

IMA Summer Program, 2008 – p. 18

Page 101: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The SVDsingular value decomposition

IMA Summer Program, 2008 – p. 18

Page 102: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The SVDsingular value decomposition

A = UΣV T

IMA Summer Program, 2008 – p. 18

Page 103: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The SVDsingular value decomposition

A = UΣV T

product eigenvalue problem

IMA Summer Program, 2008 – p. 18

Page 104: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The SVDsingular value decomposition

A = UΣV T

product eigenvalue problem

FMC Chapter 4

IMA Summer Program, 2008 – p. 18

Page 105: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The SVDsingular value decomposition

A = UΣV T

product eigenvalue problem

FMC Chapter 4

numerical rank determination

IMA Summer Program, 2008 – p. 18

Page 106: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

The SVDsingular value decomposition

A = UΣV T

product eigenvalue problem

FMC Chapter 4

numerical rank determination

solution of least-squares problem

IMA Summer Program, 2008 – p. 18

Page 107: Linear Algebra and Applications: Numerical Linear Algebra ·  · 2008-07-06Linear Algebra and Applications: Numerical Linear Algebra ... Linear Algebra, SIAM, 1997. James W. Demmel,

End of Part I

IMA Summer Program, 2008 – p. 19


Top Related