CS475 / CM375 Lecture 11: Oct 18, 2011 QR Factorization and Gram - - PDF document

cs475 cm375 lecture 11 oct 18 2011
SMART_READER_LITE
LIVE PREVIEW

CS475 / CM375 Lecture 11: Oct 18, 2011 QR Factorization and Gram - - PDF document

19/10/2011 CS475 / CM375 Lecture 11: Oct 18, 2011 QR Factorization and Gram Schmidt Orthogonalization Reading: [TB] Chapters 7, 8 CS475/CM375 (c) 2011 P. Poupart & J. Wan 1 Gram Schmidt Orthogonalization QR factorization algorithm


slide-1
SLIDE 1

19/10/2011 1

CS475 / CM375 Lecture 11: Oct 18, 2011

QR Factorization and Gram‐Schmidt Orthogonalization Reading: [TB] Chapters 7, 8

CS475/CM375 (c) 2011 P. Poupart & J. Wan 1

Gram‐Schmidt Orthogonalization

  • QR factorization algorithm

– ( orthogonal and upper ∆) – Picture:

  • At the step

– is orthogonal to , … , –

  • 1

CS475/CM375 (c) 2011 P. Poupart & J. Wan 2

slide-2
SLIDE 2

19/10/2011 2

Gram‐Schmidt Orthogonalization

  • Consider ∑
  • Since 0
  • 1, … , 1
  • 1

⟹ ∑

  • CS475/CM375 (c) 2011 P. Poupart & J. Wan

3

Gram‐Schmidt Orthogonalization

  • Normalize 
  • Hence

  • Where

,

  • CS475/CM375 (c) 2011 P. Poupart & J. Wan

4

slide-3
SLIDE 3

19/10/2011 3

Gram‐Schmidt Algorithm

For 1,2, … , for 1, … , 1

  • end
  • end

CS475/CM375 (c) 2011 P. Poupart & J. Wan 5

Modified Gram‐Schmidt

  • Change: “

”  “ ” (more stable)

  • In the ‐loop, changes for each

1:

  • 2:

⋮ 1:

  • At ,
  • , … ,
  • CS475/CM375 (c) 2011 P. Poupart & J. Wan

6

slide-4
SLIDE 4

19/10/2011 4

Complexity of Gram‐Schmidt

  • Consider the ‐loop:
  • r
  •  mult, 1 adds

 mult, subs

∴ ∽ 4

  • Total flops ∑

∑ 4

1 4 ∼ 4 ∑

  • ∼ 2
  • Note: when , then 2

3

CS475/CM375 (c) 2011 P. Poupart & J. Wan 7

Example

CS475/CM375 (c) 2011 P. Poupart & J. Wan 8

slide-5
SLIDE 5

19/10/2011 5

Householder triangularization

  • More stable than Gram‐Schmidt
  • Idea: …

∈ orthogonal matrices

  • Similar to GE, each will make the entries of col

become zero

  • Picture:

CS475/CM375 (c) 2011 P. Poupart & J. Wan 9

Householder reflectors

  • Define
  • 1

1

  • is chosen to be a Householder reflector
  • Picture

CS475/CM375 (c) 2011 P. Poupart & J. Wan 10

slide-6
SLIDE 6

19/10/2011 6

Householder Reflector

  • Suppose
  • then

| | ⋮

  • “reflects” across hyperplane orthogonal to
  • The orthogonal projector of onto :
  • Since is a reflector, it should go twice as far:

2

  • CS475/CM375 (c) 2011 P. Poupart & J. Wan

11

Householder Reflectors

  • Two possibilities:
  • For stability reason, the further one is chosen

– i.e.,

CS475/CM375 (c) 2011 P. Poupart & J. Wan 12

slide-7
SLIDE 7

19/10/2011 7

Another Derivation

  • Let 2
  • . Find s.t. ∈ .
  • 2
  • ∈ ⟺ ∈ ,
  • Let

2

CS475/CM375 (c) 2011 P. Poupart & J. Wan 13

Derivation Continued

  • Hence

and ∓

CS475/CM375 (c) 2011 P. Poupart & J. Wan 14

slide-8
SLIDE 8

19/10/2011 8

Example

CS475/CM375 (c) 2011 P. Poupart & J. Wan 15