









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These lecture slides are very easy to understand and very helpful to built a concept about the Matrix computation.The key points discuss in these slides are:Householder Transformation, Givens Rotation, Gram-Schmidt Process, Geometry of Elementary Projectors, Orthogonal Projectors, Triangularization by Introducing Zeros, Householder Reflectors, Numerical Stability
Typology: Slides
1 / 17
This page cannot be seen from the preview
Don't miss anything!










QR decomposition by Householder transformation
QR decomposition by Givens rotation
For u, x ∈ IR
n , s.t. ‖u‖ = 1
Orthogonal projectors onto span{u} and u
⊥ are
Pu =
uu
>
u>u
, and Pu⊥ = I −
uu
>
u>u
For u 6 = 0, the Householder transformation or the elementary reflector
about u
⊥ is
uu
>
u>u
or
R = I − 2 uu
>
when ‖u‖ = 1, and
R = R
> = R
− 1
The matrix Qk is chosen to introduce zeros below the diagonal in the
k-th column while preserving all the zeros previously introduced
× × ×
× × ×
× × ×
× × ×
× × ×
Qk operates on row k,... , m (changed entries are denoted by
boldface or and blank entries are zero)
At beginning of step k, there is a block of zeros in the first k − 1
columns of these rows
The application of Qk forms linear combinations of these rows, and
the linear combination of the zero entries remain zero
After n steps, all the entries below the diagonal have been eliminated
and Qn · · · Q 2 Q 1 A = R is upper triangular
To introduce zeros into k-th column (x ∈ IR
m−k+ ), the Householder
transformation F should
x =
−→ F x =
‖x‖
0
. . .
0
= ‖x‖e 1 = αe 1
The reflector F will reflect the space IR
m−k+ across the hyperplane
H orthogonal to u = ‖x‖e 1 − x
A hyperplane is characterized by a vector u = ‖x‖e 1 − x
Every point x ∈ IR
m is mapped to a mirror point
F x = (I − 2
uu
>
u>u
)x = x − 2 u(
u
> x
u>u
and hence
uu
>
u
> u
Will fix the +/- sign in the next slide
Algorithm:
for k = 1 to n do
x = Ak:m,k
uk = sign(x 1 )‖x‖ 2 e 1 + x
uk =
uk ‖uk ‖ 2
Ak:m,k:n = (I − 2 uk u
> k )Ak:m,k:n
end for
Recall
Qk =
Upon completion, A has been reduced to upper triangular form, i.e.,
R in A = QR
> = Qn · · · Q 2 Q 1 or Q = Q
> 1 Q
> 2 · · ·^ Q
> n
Want to compute QR decomposition A with Householder
transformation
Need to find a reflector for first column of A, x = [12, 6 , −4]
> to
‖x‖e 1 = [14, 0 , 0]
>
u=‖x‖e 1 − x = [2, − 6 , 4]
> = 2[1, − 3 , 2]
>
uu> u>u
Next need to zero out A 32 and apply the same process to
Givens rotation: orthogonal transform to zero out elements selectively
G (i, k, θ) =
0 · · · c · · · s · · · 0
. . .
0 · · · −s · · · c · · · 0
. . .
i
k
i k
where c = cos(θ) and s = sin(θ) for some θ
Pre-multiply G (i, k, θ) amounts to a counterclockwise rotation θ in
the (i, k) coordinate plane, y = G (i, k, θ)x
yj =
cxi − sxk j = i
sxi + cxk j = k
xj j 6 = i, k
Can zero out yk = sxi + cxk = 0 by setting
c =
xi √
x
2 i +^ x
2 k
, s =
−xk √
x
2 i +^ x
2 k
, θ = arctan(xk /xi )
QR decomposition can be computed by a series of Givens rotations
Each rotation zeros an element in the subdiagonal of the matrix,
forming R matrix, Q = G 1... Gn forms the orthogonal Q matrix
Useful for zero out few elements off diagonal (e.g., sparse matrix)
Example
Want to zero out A 31 = −4 with rotation vector (6, −4) to point
along the x-axis, i.e., θ = arctan(− 4 /6)
Householder QR is numerically more stable
Gram-Schmidt computes orthonormal basis incrementally
Givens rotation is more useful for zero out few selective elements
Also known as spectral decomposition
A is a square matrix
A = QDQ
− 1
where Q is a square matrix whose columns are eigenvector and D is a
diagonal matrix whose elements are the corresponding eigenvalues
With eigendecomposition
Aqi = λi qi
where λi and qi are eigenvalues and eigenvectors of
Ax = λx
The eigenvectors are usually normalized but not necessarily
If A can be eigendecomposed with all non-zero eigenvalues
− 1 = QD
− 1 Q
− 1