next up previous
Next: "Iterative refinement" for the Up: On computing the eigenvectors Previous: Introduction


$ QR$ method for symmetric diagonal plus semiseparable matrices

The implicitly shifted $ QR$ method is a powerful tool for computing the eigenvalues of matrices. It can be efficiently implemented for the class of symmetric semiseparable matrices and the class of symmetric tridiagonal ones, and each iteration can be accomplished in $ O(n)$ operations by means of $ 2(n-1) $ and $ n-1 $ Givens similarity transformations, respectively [8,11,14]. The nice feature of the $ QR$ method applied to the latter classes of matrices is that the generated matrices belong to the same classes of matrices.

For the sake of simplicity, in this paper we consider only the implicitly shifted $ QR$ method applied to symmetric tridiagonal matrices. Similar arguments can be considered for matrices belonging to the class of semiseparable ones.

Let

\begin{displaymath}
T \equiv
T_n^{(0)}= \left(
\begin{array}{-at-{}ccccc-at-{}}
\alpha...
...& & & \beta_{n-1}^{(0)} & \alpha_{n}^{(0)}
\end{array}\right).
\end{displaymath}

One step of the implicitly shifted $ QR$ method can be summarized as follows. Let

\begin{displaymath}
G_1 =\left(
\begin{array}{-at-{}ccc-at-{}}
c_1 & s_1 \\
-s_1 & c_1
\end{array}\right)
\end{displaymath}

be the Givens rotation such that $ G_1 [ \alpha_1^{(0)} - \kappa, \beta_1^{(0)}]^T = [\tilde{\alpha}_1^{(0)},
0]^T, $ where $ \kappa $ is a suitable shift and let

\begin{displaymath}\hat{G}_1= \left(
\begin{array}{-at-{}ccc-at-{}}
G_1 & \\
& I_{n-2}
\end{array}\right).
\end{displaymath}

The structure of the similar matrix $ \hat{G}_1 T_n^{(0)} \hat{G}_1^T
$ differs from a tridiagonal one for the same bulge, due to the symmetry, in position $ (1,3)$ and $ (3,1)$.

The rest of the algorithm consists of moving the bulges downward and eventually remove them by using $ n-2 $ more Givens similarity transformations $ \hat{G}_i, \; i=2,\ldots,n-1, $ as depicted in Fig. 1. Then we pose

$\displaystyle T_n^{(1)}=\hat{G}_{n- 1} \cdots\hat{G}_1 T_n^{(0)} \hat{G}_1^T
\cdots\hat{G}_{n-1}^T.
$

Figure 1: One step of the implicitly shifted $ QR$ method applied to a tridiagonal matrix. The notation $ \stackrel{ \hat{G}_j}{\Longrightarrow} $ means that the similarity transformation $ \hat{G}_j A\hat{G}_j^T $ is performed, with $ A$ the matrix to the left of the latter symbol.
\begin{figure}\begin{displaymath}{\small\begin{array}{-at-{}r-at-{}l-at-{}}
&
\begin{arra...
... & \times & \times
\end{array}\right)
\end{array}}
\end{displaymath}\end{figure}

The matlab function QRstep performing one step of the implicitly shifted $ QR$-method on symmetric tridiagonal matrices can be found in the Appendix.

The orthogonal matrix generated by one step of the $ QR$-method is an upper Hessenberg semiseparable matrix. For instance, if $ n=5,$ the latter matrix looks like

\begin{displaymath}
H_1(\kappa)= \left(
\begin{array}{rrrrrr}
c_1 & -s_1 c_2 & s...
... c_5 & - c_4 s_5 \\
& & & & s_5 & - c_5
\end{array}\right).
\end{displaymath}

Exploiting the semiseparable structure of $ H_1(\kappa) $ the product by a vector can be accomplished in $ 6n $ flops. Of course, $ H_1(\kappa) $ does not need to be explicitly computed. It is sufficient to store the sine and cosine coefficients $ s_i $ and $ c_i, \; i=1, \ldots, n-1, $ into two vectors, respectively. The corresponding matlab function prodgiv, performing the product $ H_1(\kappa) x, $ with $ x \in {\mathbb{R}}^n, $ can be found in the Appendix.

From a theoretical point of view, it turns out that $ \beta_{n-1}^{(1)}= 0 $ if $ \kappa \equiv \lambda_i, $ i.e., if $ \kappa $ is one of the eigenvalues of $ T_n^{(1)}, $ also called perfect shift [11]. Moreover, the last column of the matrix $ H_1(\lambda_i)$ is the normalized eigenvector of $ T_n^{(0)} $ associated to $ \lambda_i.$ Therefore, known the eigenvalue $ \lambda_i$ of $ T_n^{(0)}, $ the corresponding eigenvector can be computed applying one step of the implicitly shifted $ QR$ method, choosing the shift equal to $ \lambda_i.$ Exploiting the semiseparable structure of $ H_1(\lambda_i)$ the corresponding eigenvector is computed in $ 2n $ floating point operations, by means of a simplified version of the function prodgiv.

Unfortunately, if the last entries of the eigenvector are very tiny, then $ \beta_{n-1}^{(1)}$ could be not small [11] and the last column of $ H_1(\lambda_i)$ could be not parallel to the eigenvector associated to $ \lambda_i.$

In the next section we show how to overcome this drawback.


next up previous
Next: "Iterative refinement" for the Up: On computing the eigenvectors Previous: Introduction
Raf Vandebril 2004-10-08