Next: Bibliography
Up: Numerical tests
Previous: Speed 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
flops
more than the reduction to a tridiagonal.
We constructed matrices having different types of sets of eigenvalues.
- the eigenvalues are chosen equal spaced in the interval
,
with no singularities, and also tests with singularities.
- the eigenvalues are
with
as the dimension of the
matrix.
- the eigenvalues are the same as in the first point but now a
small eigenvalue of the order
is added to the spectrum.
- 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
.
- 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
|
|
Figure 5:
Eigenvalues
|
|
Figure 6:
One small eigenvalue
|
|
Figure 7:
One large eigenvalue
|
|
Figure 8:
Two very close eigenvalues
|
|
Next: Bibliography
Up: Numerical tests
Previous: Speed comparison
Raf Vandebril
2004-04-19