next up previous contents index
Next: Conclusions Up: Implementations and numerical experiments Previous: Cutting off the last   Contents   Index

Numerical examples connected to the singular value $ QR$-algorithm

In this section we perform tests on some arbitrary matrices to compute their singular values. First the matrices are reduced to upper triangular semiseparable form, and then the implicit $ QR$-algorithm to compute the singular values is applied on these matrices.

Numerical tests are performed comparing the behavior of the traditional approach via bidiagonal and the proposed semiseparable approach for computing the singular values of several matrices. Special attention is paid to the accuracy of both 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. The first figure shows a comparison of the number of implicit $ QR$-iterations performed (the line connects the average number of iterations for each experiment). It shows that the semiseparable approach needs less steps in order to find the singular values but do not forget that a semiseparable implicit $ QR$-step costs a little more than a corresponding step on the bidiagonal.

Figure 9.4: Number of implicit $ QR$-steps
\includegraphics[scale=0.7]{figs/speed}

Figure 9.5 and Figure 9.6 show comparisons in accuracy of the two approaches (A line is drawn connecting the average error for different experiments. The error is the maximum relative error between the computed and the exact singular values). In Figure 9.5 the singular values were chosen equally spaced, in Figure 9.6 the singular values ranged from $ 1$ to $ n$. Both figures show that the two approaches are equally accurate.

Figure 9.5: Comparison in accuracy
\includegraphics[scale=0.65]{figs/acc1}

Figure 9.6: Comparison in accuracy
\includegraphics[scale=0.65]{figs/acc2}


next up previous contents index
Next: Conclusions Up: Implementations and numerical experiments Previous: Cutting off the last   Contents   Index
Raf Vandebril 2004-05-03