next up previous
Next: The algorithm via semiseparable Up: Introduction Previous: Introduction

The traditional algorithm

In this section a brief explanation of the traditional algorithm by Golub and Kahan (1965) for calculating the singular values of an $ m$ by $ n$ matrix will be given. It is based on adapting the $ QR$ algorithm to find the singular values is also described in [1, 448-460].

Suppose a matrix $ A\in \mathbb{R}^{m\times n}$ is known and his singular values have to be computed. Without loss of generality, one can assume that $ m \geq n$. In a first step the matrix $ A$ is transformed into a bidiagonal one by using orthogonal transformations to the left and the right. Denote with $ U_B$ and $ V_B$ the orthogonal matrices used in the multiplications respectively to the left and the right of $ A$ such that

% latex2html id marker 3014
$\displaystyle U_B^TAV_B = \left(\begin{array}{c}
B \\
0
\end{array}\right),$    with % latex2html id marker 3015
$\displaystyle B=\left(\begin{array}{ccccc}
d_1 & f_...
...s & & \ddots &\ddots & f_{n-1} \\
0 & \cdots & & 0 & d_n
\end{array}\right).
$

The attention is now restricted to the matrix $ B$ which contains all the information needed. On this matrix an implicit $ QR$ algorithm is applied. For example one could consider applying an implicit-shift $ QR$ step on the matrix $ T=B^T B$ to find its singular values. Using the $ QR$ algorithm with the Wilkinson shift, an easy calculation gives the first Givens transformation $ G_1^T$ performed on $ T$, needed to annihilate the second element in the first column of $ T$. One could now continue with this procedure and search for Givens transformations $ G_2,G_3, \ldots, G_{n-1}$ such that if $ Q=G_1\cdots
G_{n-1}$ then $ Q^T T Q$ is tridiagonal and $ Qe_1=G_1e_1$. However computing $ B^T B$ squares the condition number and therefore, from a numerical viewpoint this approach is not acceptable.

Another approach consists of first applying the Givens transformation $ G_1$ on the bidiagonal matrix $ B$ i.e. $ BG_1$ and then retrieving the bidiagonal structure from the changed matrix $ BG_1$ by using orthogonal transformations. Applying the Givens transformation $ G_1$ creates the following bulge in the matrix $ B$:

% latex2html id marker 3055
$\displaystyle B\leftarrow BG_1=\left(\begin{array}{...
... & \times & \times & 0 & \cdots \\
& & & \ddots & \ddots
\end{array}\right).
$

The $ +$ denotes the fill in outside the bidiagonal of $ B$. As previously mentioned the bidiagonal structure will now be restored by applying orthogonal transformations to the left and the right of the disturbed matrix. This is a standard chasing procedure in which attention should be paid, not to destroy the influence of the first Givens transformation $ G_1$ on the first column. The chasing strategy can be found in [1]. After having removed the bulge, a bidiagonal matrix $ \hat{B}$ is created satisfying:

$\displaystyle \hat{B}=(U_{n-1}^T\cdots U_1^T)B(G_1 V_2\cdots V_{n-1})=U^TBV,$

where all the orthogonal transformations $ G_1,U_i,V_i$ are Givens transformations. Since all the $ V_i$ are Givens, not involving the first column of $ B$ it can be seen that the following equation holds $ Ve_1=G_1e_1=Qe_1$ and because $ \hat{T}=V^TB^TBV=V^TTV$ is tridiagonal, we can assert, by the implicit $ Q$ theorem that $ V$ and $ Q$ are essentially the same. This asserts that one step of the $ QR$ algorithm is applied to the tridiagonal matrix $ T$ without explicitely forming the matrix $ T$.

This process, of applying implicit $ QR$ steps, can be repeated by sequentially working on the newly created bidiagonal matrices. The sequence generated by the $ QR$ mehtod converges to a block diagonal matrix and will thereby reveal the singular values.

However special attention has to be paid when one of the $ f_k$ or the $ d_k$ elements is zero. The bidiagonal matrix then has to be split into two smaller matrices. More information about the complete algorithm and how to deal with these specific problems can be found in [1].


next up previous
Next: The algorithm via semiseparable Up: Introduction Previous: Introduction
Raf Vandebril 2004-04-19