Accuracy tests for the solvers

To test the accuracy of the semiseparable solver, experiments were performed for different sizes of matrices, and also for different semiseparability ranks. The sizes are $ [5.10^2,5.10^3,5.10^4,5.10^5]$ and the different ranks were equal to $ [1,2,4,8,16]$. We generated a solution vector $ x$ and calculated then the right-hand side $ b=Bx$. For every problem we calculated two different things. When we denote with $ \tilde{x}$ the computed solution, we computed the relative residual $ \Vert B\tilde{x}-b\Vert /\Vert b\Vert$ and we calculated also the relative error $ \Vert\tilde{x}-x\Vert/ \Vert x\Vert$. The observations are shown in Figure 3.

Figure 3: Accuracy graphs for the semiseparable solver
\includegraphics[scale=0.5]{relacchss.eps} \includegraphics[scale=0.5]{erracchss.eps}

To test the accuracy of the band solver we performed similar experiments as for the semiseparable solver. Instead of changing the semiseparability rank, we changed now the bandwidht. The results are shown in Figure 4.

Figure 4: Accuracy graphs for the band solver
\includegraphics[scale=0.5]{accrelres.eps} \includegraphics[scale=0.5]{accerr.eps}

Also tests were performed to check the accuracy of the solver for higher order semiseparable plus band matrices. We performed experiments for $ p=[1,2,4,8]$ thereby varying for every $ p$ the bandwidth of the examples $ l=[1,2,4,8]$. For every every choice of $ p$ and $ l$ experiments were performed of different sizes $ [10,10^2,\ldots,10^5]$. The results are depicted in Figure 5.

Figure 5: Accuracy graphs for the band solver
\includegraphics[scale=0.5]{relres1.eps} \includegraphics[scale=0.5]{relres2.eps} \includegraphics[scale=0.5]{relres4.eps} \includegraphics[scale=0.5]{relres8.eps}

In the last experiment, we tested some matrices with a principal leading submatrix which is almost singular. We generated a test matrix of dimension 20. The matrix $ A$ is the sum of a higher order generator representable semiseparable matrix of semiseparability rank 2 and a bandmatrix of bandwidth 2. We changed the upper left $ 10\times 10$ block of the matrix, by subtracting a diagonal from it. This diagonal was chosen to be very close to the smallest eigenvalue of this leading $ 10\times 10$ matrix. We varied this diagonal to obtain different condition numbers for the upper left block. In the following table the results of this experiment are shown. From left to right we see the condition number of the complete matrix, the condition number of the leading $ 10\times 10$ matrix, the relative error and finally the relative residual. The relative error and the relative residual are computed similarly as in the other experiments.

cond(A) cond(A(1:10,1:10)) Relative Error Relative Residual
9.8826702011e+02 7.2137658055e+06 7.9371451652e-12 1.5876136765e-13
9.8834568681e+02 7.2137666893e+07 1.2899057031e-11 8.1869391232e-13
9.8835355416e+02 7.2137668126e+08 1.3731988886e-09 1.6178975264e-11
9.8835434090e+02 7.2137678326e+09 1.7523244367e-08 1.9521650543e-10
9.8835441958e+02 7.2137522541e+10 4.9245637551e-08 7.5282322736e-10
9.8835442745e+02 7.2134203263e+11 1.0598060169e-06 1.5041387982e-08
9.8835442823e+02 7.2125761709e+12 8.4718778442e-06 1.4160532102e-07
9.8835442831e+02 7.1769836736e+13 1.0353474474e-04 1.3557724944e-06
9.8835442832e+02 7.0936256361e+14 7.6248083160e-04 1.4000530881e-05
9.8835442832e+02 5.4957030404e+15 9.4706661128e-03 1.1029369701e-04
     
The accuracy is therefore highly dependent on the condition number of the leading submatrices of $ A$.

Raf Vandebril 2005-04-26