next up previous
Next: Bibliography Up: Numerical tests Previous: Speed comparison

Accuracy comparison

In this section numerical tests concerning the stability of the algorithm will be performed. We performed the tests in matlab 6.5We performed different kinds of tests: We constructed explicitly a symmetric matrix with given eigenvalues, reduced it to a semi separable one, and then compared the eigenvalues of the semiseparable with the original eigenvalues and the eigenvalues calculated by the classical QR. There is one thing however one should not forget: the fact that the construction of the semiseparable costs $ 5n^2$ flops more than the reduction to a tridiagonal.

We constructed matrices having different types of sets of eigenvalues.

  1. the eigenvalues are chosen equal spaced in the interval $ [0,1]$, with no singularities, and also tests with singularities.
  2. the eigenvalues are $ 1:n$ with $ n$ as the dimension of the matrix.
  3. the eigenvalues are the same as in the first point but now a small eigenvalue of the order $ 10^{-6}$ is added to the spectrum.
  4. the same eigenvalues as in the previous point but now instead of a small one a large one is placed in the middle, order about $ 10^{8}$.
  5. the eigenvalues are constructed in such a way that in the middle there are two eigenvalues not so different from each other.
The main objective is to see that also for larger matrix dimensions the algorithm does not destroy either small, large or close eigenvalues.

In fact we performed two kinds of tests, we compared for these specific matrices the results of the QR algorithm for tridiagonal matrices with the QR algorithm for semiseparable matrices. In the following figures always the corresponding tests are performed.

Figure 4: Equal spaced eigenvalues in $ (0,1]$
\includegraphics[scale=0.7]{testcase1}

Figure 5: Eigenvalues $ 1:n$
\includegraphics[scale=0.7]{testcase2}

Figure 6: One small eigenvalue
\includegraphics[scale=0.7]{testcase3}

Figure 7: One large eigenvalue
\includegraphics[scale=0.7]{testcase4}

Figure 8: Two very close eigenvalues
\includegraphics[scale=0.7]{testcase5}


next up previous
Next: Bibliography Up: Numerical tests Previous: Speed comparison
Raf Vandebril 2004-04-19