next up previous
Next: Stability Up: Numerical Examples Previous: Numerical Examples

Timings

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 $ n_1$ and $ n_2$. By using the least squares approximation we obtained the following complexity:

$\displaystyle 0.6\, n_1n_2\,\log(n_2)\, + 3.6\, n_1^2 -3.6\,n_1n_2$

in ($ 10^{-6}$ 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 $ n_1$ larger, slows down the algorithm more than enlarging the factor $ n_2$. However this is no problem, because, when $ n_1$ is larger then $ n_2$, we can just swap the roles of the variables $ x$ and $ y$ in (1). Then also $ n_1$ and $ n_2$ are interchanged.

Figure 1: Timing results for the overall algorithm.
\includegraphics[scale=0.7]{TAlglog}



Raf Vandebril 2004-04-19