For the first experiment a set of test matrices was generated of
dimensions
for
. The symmetric matrices were
constructed in such a way that they have as eigenvalues
for
each choice of
. In Figure 2 the relative accuracy of
the eigenvalues of the reduced matrices w.r.t. the original matrices is
given. Denote the original eigenvalues with
and the
computed ones with
, then the relative accuracy is
calculated as
![]() |
In the second experiment the computational complexity of the three
approaches was compared. The computational complexity of the reduction
to tridiagonal and semiseparable form differs in an extra
operations that need to be performed to get the semiseparable
structure. The reduction to diagonal-plus-semiseparable form needs an
extra
operations for the extra additions and substractions
needed for making the matrix semiseparable with that specific
diagonal. Figure 3 shows the computer time in seconds
(the Matlab command cputime was used) divided by the third power
of the problem size. What one expects is that all three curves, as
they have the same factor preceding the
term in the computational
cost, tend to the same value for large
. This can be observed
clearly in the figure. Moreover one can see that for computational
timings the extra
operations performed by the reduction to
diagonal-plus-semiseparable, w.r.t. the reduction to diagonal are
negligible.
In this last experiment we have created a symmetric matrix with
eigenvalues
and performed different reductions of this
matrix to a diagonal-plus-semiseparable matrix, thereby varying the
diagonal. The different resulting matrices are shown, and it can be
seen clearly, that if an eigenvalue is present on the top left, it is
revealed, by the reduction algorithm. On top the diagonal
used for
the reduction is
shown, and below the resulting semiseparable matrix. The reader can
generate much more examples indicating this convergence behavior, as
the software can be downloaded. The last matrix shows that this
behavior is related to the reduction algorithm as also a diagonal-plus-semiseparable
matrix will be given, having as a diagonal eigenvalues in
the upper left positions, but the eigenvalues are not revealed.
![]() |
![]() |
![]() |
![]() |