next up previous
Next: Bibliography Up: A Note on the Previous: Recursive Calculation of Dominant


Computation of the $ R Q $ factorization of the matrix $ \hat{S}$

Let $ G_u= I-\beta z z^T $ be the Householder transformation such that $ G_u^T u_{k+1} = e_{k+1}. $ Let us denote by $ \hat{s}_i,\;
i=1,\ldots, k+1, $ the $ i$th column of $ \hat{S}. $ Similarly, we use the notation $ \hat{r}_i$ for the $ i$th column of the matrix $ \hat{R} $.

The product $ G_u^T \hat{R} $ can be written as

$\displaystyle G_u^T \hat{R}= [ G_u^T \hat{r}_1, G_u^T \hat{r}_2, \ldots, G_u^T \hat{r}_{k+1}]. $

We observe that

$\displaystyle G_u^T \hat{r}_i = (I-\beta z z^T) \hat{r}_i
= \hat{r}_i - (\beta z^T \hat{r}_i) z. $

Since $ \hat{R} $ is an upper triangular matrix, the $ i$th column of $ \hat{S}$ below the main diagonal is a multiple of $ z, $ i.e.,

$\displaystyle \hat{s}_i (i+1:k+1)=( G_u^T \hat{r}_i)(i+1:k+1) = - (\beta
z^T \hat{r}_i) z(i+1:k+1).$

In other words, the strictly lower triangular part of $ \hat{S}$ is the strictly lower triangular part of a rank-one matrix. Therefore, the retriangularization of $ \hat{S}$ can be accomplished applying only $ 2k$ Givens rotations to the right, with $ O(k^2) $ operations as described below.

We observe that he strictly lower triangular part is not explicitly computed, since the entries of the $ i$th column below the main diagonal are given by $ -\beta z^T\hat{r}_i z(k),\; k>i,
$ where $ z(k)$ is the $ k$th entry of the vector $ z.$ Therefore, for any column it is only needed to store the values $ \gamma(i)=\beta z^T\hat{r}_i,\; i=1,\ldots,k. $

Let us suppose, for simplicity, that $ k= 5,$ and denote with $ \boxtimes $ the entries of $ \hat{S}$ belonging to the strictly lower triangular part:

\begin{displaymath}
\hat{S}=
\left[
\begin{array}{cccccc}
\times & \times &\tim...
...s &\boxtimes &\boxtimes &\boxtimes &\times
\end{array}\right].
\end{displaymath}

Applying a Givens rotation $ G_1 $ to the right in order to annihilate the entry $ (3,1), $ the whole column below this entry is annihilated, since both the columns are a multiple of the vector $ z $ below the main diagonal.

\begin{displaymath}
\hat{S}G_1=
\left[
\begin{array}{cccccc}
\times & \times &\...
...oxtimes &\boxtimes &\boxtimes &\times \\
\end{array}\right].
\end{displaymath}

Let $ c_1 $ and $ s_1 $ be the Givens coefficients of $ G_1 $, i.e.,

\begin{displaymath}
G_1= \left[
\begin{array}{cc}
c_1 & s_1 \\
-s_1 & c_1
\end...
... z^T
\hat{r}_1}{\sqrt{ (z^T\hat{r}_1)^2 +
(z^T\hat{r}_2)^2}}.
\end{displaymath}

Of course, it is not necessary to compute $ \hat{S} G_1 $ below the upper Hessenberg part of the matrix. In fact the entries of the first column with row indexes greater than 2 are zero. Moreover, the entries of the second column with row indexes greater than 2 are given by

$\displaystyle \beta z(i)\sqrt{ (z^T\hat{r}_1)^2 +
(z^T\hat{r}_2)^2}, \; i > 2. $

Therefore it is only needed to update the value $ \gamma(2)= \beta \sqrt{ (z^T\hat{r}_1)^2 +
(z^T\hat{r}_2)^2}. $

In the same manner, applying a Givens rotation $ G_2 $ to the right in order to annihilate the entry $ (4,2), $ the whole row below this entry is annihilated.

\begin{displaymath}\hat{S} G_1G_2=
\left[
\begin{array}{cccccc}
\times & \times ...
...& &\boxtimes &\boxtimes &\boxtimes &\times
\end{array}\right].
\end{displaymath}

Also in this case, only the upper Hessenberg part of columns $ 2 $ and $ 3 $ and the coeffcient $ \gamma(3)$ need to be updated.

Proceeding in this way, after $ k-1$ multiplications to the right by Givens rotations, the original matrix is transformed into an upper Hessenberg one with $ O(k^2) $ operations,

\begin{displaymath}\hat{S} G_1 G_2 \cdots G_{k-1}
= \left[
\begin{array}{cccccc}...
...es &\times \\
& & & &\times &\times
\par\end{array}\right].
\end{displaymath}

To reduce the latter Hessenberg matrix to upper triangular form, apply $ k$ Givens rotations to the right in order to annihilate the entries $ (k+1,k)$, $ (k,k-1)$, $ \ldots, $ $ (2,1).
$ The whole transformation is depicted in Fig. 3.1. Therefore the reduction of the matrix $ \hat{S}$ into triangular form can be made in $ O(k^2) $ operations.

Figure: Multiplication of $ \hat{R} $ to the left by a Householder transformation followed by a sequence of $ 2k-1$ multiplications by Givens rotations to the right in order to retrieve the upper triangular structure. With $ \otimes $ is denoted the entry of the matrix to be annihilated by a Givens transformation.
\begin{figure}\begin{displaymath}{\tiny\begin{array}{-at-{}r-at-{}l-at-{}}
&
\begin{array...
...rray}\end{array}\hphantom{\Rightarrow\Rightarrow} }\end{displaymath}\end{figure}


next up previous
Next: Bibliography Up: A Note on the Previous: Recursive Calculation of Dominant
Raf Vandebril 2004-06-03