next up previous
Next: Chasing the bulge Up: An algorithm for computing Previous: Reduction of a matrix


Applying an implicit $ QR$ step

This section is dedicated to the implicit $ QR$ algorithm. The orthogonal transformations applied on the upper triangular semiseparable matrix $ S_u$ such that a $ QR$ step on the matrix $ S_u^T*S_u$ is performed will be derived in this section.

As mentioned in the introduction: to find the singular values of the matrix $ S_u$ one can apply the implicit $ QR$ algorithm to the matrix % latex2html id marker 3324
$ \S =S_u^T*S_u$. However, this is a numerically unstable procedure because the condition number is squared. Therefore the implicit $ QR$ step is split up into two independent and important parts. The first building block consists of creating a sequence of transformations on the matrix $ S_u$, such that one can be sure that the second step completes the implicit $ QR$ step. Step one can be seen as an initialization of the second step.

To construct the sequence of Givens, first it has to be checked what happens to the upper triangular matrix $ S_u$ when applying a $ QR$ step on the matrix % latex2html id marker 3336
$ \S $. To perform a $ QR$ factorization, we use the algorithm in [2].

Denote with $ u$ and $ v$ the generators of the matrix $ S_u$,

% latex2html id marker 3346
$\displaystyle S_u=\left( \begin{array}{ccccc} u_1v_...
...\vdots& &\ddots &\ddots & \vdots\\  0 &\cdots & & 0 & u_nv_n \end{array}\right)$ (2)

Let us denote % latex2html id marker 3348
$ \t{i}=\sum_{k=1}^iv_k^2$. An easy calculation reveals the following structure of % latex2html id marker 3350
$ \S =S_u^T*S_u$, which is a symmetric semiseparable matrix:

% latex2html id marker 3352
$\displaystyle \S =\left( \begin{array}{ccccc} u_1\,...
...s & \\  u_n\,u_1\t{1}& u_n\,u_2\t{2}&\cdots & & u_n\,v_n\t{n}\end{array}\right)$ (3)

Let us denote the generators for this symmetric semiseparable matrix % latex2html id marker 3354
$ \S $ as $ \hat{u}$ and $ \hat{v}$. These two vectors have of the following form:

$\displaystyle \hat{u}=u$ $\displaystyle =$ $\displaystyle \left(u_1,u_2,u_3,\cdots,u_n\right)$  
$\displaystyle \hat{v}$ $\displaystyle =$ % latex2html id marker 3371
$\displaystyle \left(u_1\t{1},u_2\t{2},u_3\t{3},\cdots,u_n\t{n}\right).$  

Suppose $ Q$ is the matrix from a $ QR$ step on the matrix % latex2html id marker 3377
$ \S -\kappa I$, where $ \kappa$ is the Wilkinson shift. The shift $ \kappa$ can be calculated in a cheap and easy way. This shift is the eigenvalue of the lower left $ 2$ by $ 2$ block closest to the lower right element. Remember that $ Q$ is the orthogonal matrix such that % latex2html id marker 3389
$ Q^T(\S -\kappa I)$ is upper triangular. The transformations applied on the explicit matrix % latex2html id marker 3391
$ \S -\kappa I$, have to be applied on the matrix $ S_u$ to come to an implicit $ QR$ step. The aim of this investigation, is the ability to construct the matrix $ Q$ directly from the matrix $ S_u$, without having to use the matrix % latex2html id marker 3401
$ \S $. This possibility will not only gain us accuracy, but also speed.

To get a full understanding of the construction a recapitulization of the $ QR$ factorization of semiseparable plus diagonal matrices, as described in [2] is needed. The $ Q$ factor of this reduction consists of $ 2n-2$ Givens transformations. The first $ n-1$ Givens operations from bottom to top are performed on the semiseparable matrix, without looking at the diagonal. (One can write the semiseparable plus diagonal as a sum of a semiseparable and a diagonal to get a full understanding of this part.) These Givens transformations, transform the semiseparable structure into an upper triangular matrix. When taking into consideration the diagonal, one can see that the $ n-1$ Givens transformations, just performed on the semiseparable matrix, transform this matrix into an upper Hessenberg one. Recombining the upper triangular matrix and the upper Hessenberg matrix gives an upper Hessenberg matrix. This matrix will then be made upper triangular by $ n-1$ Givens transformations from top to bottom.

The sequence of Givens transformations needed in the first part of the implicit $ QR$ algorithm are the first $ n-1$ Givens transformations. Later on it will be proved that these first Givens combined with the second part do perform an implicit $ QR$ step. It still remains now to construct these first $ n$ Givens transformations directly from $ S_u$ in a stable and fast way.

Substituting % latex2html id marker 3425
$ \S =S_u^TS_u$ gives % latex2html id marker 3427
$ Q^T\S Q=(Q^TS_u^T)(S_uQ)$. The first $ n-1$ Givens transformations applied on % latex2html id marker 3431
$ \S $ make this matrix upper triangular. It can however be seen from the structures in equations (3) and (2), that these first $ n-1$ Givens transformations $ G_1\,G_2\cdots G_{n-1}$ transform the upper triangular matrix $ S_u$ into a lower triangular one $ S_l=S_uG_1 G_2 \cdots G_{n-1}$. These first $ n-1$ Givens transformations can therefore already calculated in a cheap and fast way.

The following $ n-1$ Givens transformations also involve the shift. Givens transformation $ n$ can be calculated, working on the upper Hessenberg matrix. To calculate this transformation in a fast and accurate way, a closer look has to be given to the matrix equations involved into the first transformations. The transformations are applied onto the following equation:

$\displaystyle S-\kappa I = S_u^T S_u-\kappa I $

on which the first $ n-1$ Givens transformations are performed:

$\displaystyle G_{n-1}^T\dots G_1^T (S-\kappa I)= G_{n-1}^T\dots G_1^T (S_u^T S_u-\kappa
I).$

The left side is an upper Hessenberg matrix, from which the two first elements in the first column are needed to calculate the first Givens transformation. The formulas on the right can be rewritten as

$\displaystyle G_{n-1}^T\dots G_1^T (S_u^T S_u-\kappa I)=S_l^T S_u- G_{n-1}^T\dots G_1^T
\kappa I$

using $ S_l$ as defined above. From these equations the two nonzero elements in the first column can easily be calculated by adding to the first component of

% latex2html id marker 3457
$\displaystyle -G_{n-1}^T\left(\begin{array}{c} \kappa \\  0
\end{array}\right)$

the product of the upper left element of $ S_l$ with the upper left element of $ S_u$. Once these two elements are known the Givens transformation to annihilate the second element can be calculated.

The first $ n$ Givens transformations for applying an implicit $ QR$ step are known, they can be calculated by only working on the matrix $ S_u$. This completes the first building block of the implicit $ QR$ step.

The correctness of this approach, i.e. the splitting of the implicit $ QR$ algorithm into two separate parts will be proved in a next section.


next up previous
Next: Chasing the bulge Up: An algorithm for computing Previous: Reduction of a matrix
Raf Vandebril 2004-04-19