The problems are generated by taking the lower triangular part as
being equal to the lower triangular part of a rank
matrix
. The elements of these vectors
and
are randomly choses via the randn() function in MATLAB. Based on these
vectors the Givens-vector representation of the lower triangular part
is constructed.
To compare the accuracy of the proposed method with MATLAB's
EIG method we computed for each eigenvalue the smallest
singular value of
. This smallest singular value is of
course a measure of the singularity and hence of the accuracy of
. These values are computed for all eigenvalues computed by
MATLAB and for all eigenvalues computed by the new routine (see
Figure
). The plotted results are depicted for a single
shift strategy.
The figure shows that both approaches are equally accurate. Moreover
the proposed method is more accurate than the results presented in
[28]. Deflation was allowed, when the relative subdiagonal
elements were smaller than
.
In the following three figures we compare the results of the
multishift
-algorithm for the single shift and the double shift
strategy. The sizes range from
to
via steps
of size
. Every experiment was repeated
times.
The relative error, between MATLAB and the
proposed method is plotted. Denote with
the eigenvalues
computed via MATLAB and with
the eigenvalues
computed via the new technique, in the following figures the value
is depicted. The average for the five experiments is connected via a
line. The
-axis depicts the relative accuracy, whereas the
-axis
depicts the size of the experiment.
The figures below denote for the same set of experiments the average
number of
-steps before deflation occurred. The average is
computed by dividing the total number of performed
-steps by the
matrix size.
Raphael Vandebril 2007-07-17