Next: Stability
Up: Numerical Examples
Previous: Numerical Examples
We implemented the algorithm (with pivoting) in Fortran90, using the NAG95-Fortran compiler on a linux platform. The tests were done on a Pentium III 860 Mhz processor, with 512 MByte of memory. In order to test its
complexity, we generated a fixed example and changed the variables
and
. By using the least squares approximation we obtained the
following complexity:
in (
sec/Mflops).
It can be seen in figure 1 that this is a good approximation:
the surface is generated using the formula above, and the dots are the
measured timings. Making
larger, slows down the algorithm more than enlarging the factor
. However this is no problem, because, when
is larger then
, we can just swap the roles of the variables
and
in (1). Then also
and
are interchanged.
Figure 1:
Timing results for the overall algorithm.
|
|
Raf Vandebril
2004-04-19