next up previous contents index
Next: The reduction to unreduced Up: Implementations and numerical experiments Previous: Implementation of the -factorization   Contents   Index

Effective $ O(n)$ implementation of the implicit $ QR$-algorithm without shift for symmetric semiseparable matrices

The algorithmic description presented here will describe one step of the $ QR$-algorithm, applied in an implicit way to semiseparable matrices. Later on in this chapter, we will discuss the calculation of the eigenvectors and the cutting criterion. Moreover, one should be aware, that the combination of this algorithm together with the reduction to a symmetric semiseparable matrix, gives a tool to compute the eigendecomposition of arbitrary symmetric matrices. How to combine these algorithms is obvious and will not be explained. The implementation can be downloaded from http://www.cs.kuleuven.ac.be/tex2html_wrap_inline$&sim#sim;$marc/. Not all the details of the implementation are given, but the mathematical ideas, behind the design are included. They should make it possible for the reader to implement the algorithm.

First we have to perform a sequence of Givens transformations from bottom to top on the rows, and at the same time from right to left on the columns. This corresponds to performing a $ QR$-step without shift on the original symmetric semiseparable matrix.

Suppose our semiseparable matrix $ S$ is built up with the Givens transformations $ G$ and the vector elements $ d$. We will now perform the first $ n-1$ Givens transformations on both sides of the matrix, and we will retrieve the representation of the resulting semiseparable matrix. The matrix $ S$ has the following structure:

% latex2html id marker 39031
$\displaystyle \left( \begin{array}{ccc} S^{(n-2)} ...
...& s_{n-1}d_{n-1} \\  s_{n-1} R_{n-1} & s_{n-1}d_{n-1} & d_n \end{array} \right)$ (9.1)

where $ S^{(n-2)}$ represents a semiseparable matrix of order $ n-2$ and the Givens transformations are denoted in the usual manner. We denote the Givens transformations used in the $ QR$-factorization with $ \tilde{G}_i$. We remark that the Givens transformations needed for the first step of the $ QR$-algorithm are exactly the same Givens transformations from the representation, more precisely we have the following equivalences $ \tilde{G}_1=G_{n-1}, \ldots,
\tilde{G}_{n-1}=G_{1}$. This is an advantage, because these Givens transformations do not need to be calculated anymore.

Applying the first transformation $ \tilde{G}_1^T=G_{n-1}^T$ on the left of matrix (9.1) gives us the following equations

$\displaystyle \hat{d}_1$ $\displaystyle =$ $\displaystyle -s^2_{n-1}d_{n-1} + c_{n-1} d_n$  

and the matrix looks like:

% latex2html id marker 39054
$\displaystyle \left( \begin{array}{ccc} S^{(n-2)} ...
..._{n-1} & s_{n-1}(c_{n-1}d_{n-1}+d_n) \\  0 & 0 & \hat{d}_1 \end{array} \right).$    

Applying the transformation on the right gives the following equations:

% latex2html id marker 39056
$\displaystyle \left( \begin{array}{ccc} S^{(n-2)} ...
...n-1}\hat{d}_1 \\  0 & s_{n-1}\hat{d}_1 & c_{n-1}\hat{d}_1 \end{array} \right) ,$    

with $ \tilde{d}_{n-1} = \left( 1+s^2_{n-1} \right) c_{n-1} d_{n-1} +s^2_{n-1} d_n$. When denoting the new representation from right to left with $ \hat{G}$ and $ \hat{d}$, we get:

\begin{displaymath}
% latex2html id marker 39064
\hat{G}_1=\left(
\begin{array}{cr}
c_{n-1} & -s_{n-1} \\
s_{n-1} & c_{n-1}
\end{array} \right)\end{displaymath}

and $ \hat{d}_1$. This procedure can be continued to find all the Givens transformations $ \hat{G}_i$ and the vector $ \hat{d}$. Note once more that this representation is constructed from right to left and only the new diagonal elements need to be calculated.
next up previous contents index
Next: The reduction to unreduced Up: Implementations and numerical experiments Previous: Implementation of the -factorization   Contents   Index
Raf Vandebril 2004-05-03