next up previous contents index
Next: Deflation after a step Up: Implementations and numerical experiments Previous: The reduction to unreduced   Contents   Index

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

As the implicit $ QR$-algorithm with shift also starts with performing a step of $ QR$ without shift, we assume that we start with a matrix as given at the end of Section 9.2. The following part in the algorithm performs in fact the next $ n-1$ Givens transformations on the matrix. It starts with one special Givens transformation $ G_n$. Because the following sequence of Givens transformations will divide the matrix into two semiseparable parts, we have to store twice a symmetric semiseparable matrix. The decreasing lower right semiseparable matrix will be stored in the Givens-vector representation $ G$,$ d$. While the growing upper left part will also be stored in the Givens-vector representation $ \hat{G},\hat{d}$.

Suppose we first perform the special Givens transformation $ G_n$ (see Section 8.1.3 Chapter 8 for more details concerning the transformation $ G_n$) on the matrix $ S_1$, which looks like (this is different from the matrix in the previous section, because the representation is from right to left now):

% latex2html id marker 39195
$\displaystyle \left( \begin{array}{ccc} d_n & s_{n...
...1} \\  s_{n-1} R_{n-1}^T & c_{n-1} R_{n-1}^T & S_1^{(n-2)} \end{array} \right).$ (9.3)

Applying the first special Givens transformation $ G_n^T$ on the left of the matrix (9.3), we get:

% latex2html id marker 39199
$\displaystyle \left( \begin{array}{ccc} c_n d_n + ...
...1} \\  s_{n-1} R_{n-1}^T & c_{n-1} R_{n-1}^T & S_1^{(n-2)} \end{array} \right).$    

Applying the Givens transformation $ G_n$ on the right gives us

% latex2html id marker 39203
$\displaystyle \left( \begin{array}{ccc} \hat{d}_1 ...
..._2 R_{n-1} \\  f_1 R_{n-1}^T & f_2 R_{n-1}^T & S_1^{(n-2)} \end{array} \right),$    

with
$\displaystyle \hat{d}_1$ $\displaystyle =$ $\displaystyle c_n^2 d_n+ s_n^2 c_{n-1} d_{n-1} + 2c_ns_n c_{n-1} d_{n-1},$  
$\displaystyle f_1$ $\displaystyle =$ $\displaystyle \left( c_n s_{n-1} + s_n c_{n-1} \right),$  
$\displaystyle f_2$ $\displaystyle =$ $\displaystyle \left( -s_n s_{n-1} +c_n c_{n-1} \right),$  
$\displaystyle \alpha_1$ $\displaystyle =$ $\displaystyle - c_ns_n d_n+\left( \left( c_n^2-s_n^2 \right)s_{n-1} - s_nc_n c_{n-1} \right)d_{n-1} ,$  
$\displaystyle \tilde{d}_{n-1}$ $\displaystyle =$ $\displaystyle s_n^2 d_n +\left( -2c_ns_n s_{n-1}+ c_n^2c_{n-1} \right)d_{n-1} .$  

The lower right reduced semiseparable matrix can be constructed by the old representation and the knowledge of $ \tilde{d}_{n-1}$ and the factor $ f_2$.

The upper left three by three block can now be used to construct the next Givens transformation according to Theorem 71. One can clearly see that this procedure, can be repeated to find the new diagonal element $ \hat{d}_2$ and the first subdiagonal element $ \hat{d}^{(s)}_1$, and so on.

Also the new representation is built up at the same time, by storing extra information concerning the values of $ \alpha_1$ and $ \tilde{d}_{n-1}$.

Note 23   The implementation as presented here presumes once more the ideal situation. This implementation, is suitable for semiseparable matrices coming from the similarity reduction of a symmetric matrix to semiseparable form, but for the general class of semiseparable matrices it is not suitable. In this implementation we assumed that only the Givens transformations from Proposition 71 is used. In practice the implementation changes a little bit to make it suitable for general semiseparable matrices. For a full understanding the software can be downloaded and investigated.


next up previous contents index
Next: Deflation after a step Up: Implementations and numerical experiments Previous: The reduction to unreduced   Contents   Index
Raf Vandebril 2004-05-03