next up previous
Next: Bibliography Up: An algorithm for computing Previous: The QR-type algorithm using

Numerical examples

Numerical tests are performed comparing the behavior of the classical and the proposed algorithm for computing the singular values of several matrices. Special attention is paid to the accuracy of both the algorithms for different sets of the singular values and to the number of $ QR$ steps needed to compute all the singular values of the matrices. However as mentioned before the algorithms are programmed in such a way that they work on a complete matrix. The first figure shows a comparison in number of implicit $ QR$ steps performed, it shows that the semiseparable approach needs less steps in order to find the singular values but one should not forget that a semiseparable implicit $ QR$ step costs a little more than a corresponding step on the bidiagonal. In fact the two approaches are comparable (when working on a complete matrix).

Figure 2: Number of implicit $ QR$ steps
% latex2html id marker 4011
\includegraphics[width=0.80\textwidth]{speed}

Figure 3 and Figure 4 show comparisons in accuracy of the two approaches. In the first figure the singular values were chosen equal spaced, in the second approach the singular values ranged from $ 1$ to $ n$. Both figures show that the two approaches are equally accurate.

Figure 3: Equal spaced singular values in $ (0,1]$
% latex2html id marker 4023
\includegraphics[width=0.80\textwidth]{acc1}

Figure 4: Eigenvalues in $ 1:n$
% latex2html id marker 4031
\includegraphics[width=0.80\textwidth]{acc2}


next up previous
Next: Bibliography Up: An algorithm for computing Previous: The QR-type algorithm using
Raf Vandebril 2004-04-19