next up previous contents index
Next: Stability and Accuracy Assessments Up: Jacobi-Davidson Methods   G. Sleijpen Previous: Software Availability   Contents   Index

Numerical Example

We discuss the results for a small example that can be easily repeated. The unsymmetric matrix $A$ is of dimension $n=100$ and it is tridiagonal. The diagonal entries are $a_{i,i}\equiv -2$, the codiagonal entries are $a_{i,i-1}\equiv 1$, $a_{i,i+1}\equiv 1.2$.

Figure 7.5: Jacobi-Davidson for exterior eigenvalues (left side) and interior eigenvalues (right side).
\begin{figure}\@ifnextchar1{\Plot@}{\plot@@ }2{Chap5JDa1.eps}{Chap5JDa2.eps}
\end{figure}

We use Algorithms 7.18 and 7.19 for the computation of the $k_{\max}=10$ eigenvalues closest to the target value $\tau=-2+0.1 i$. Since these eigenvalues are located in the interior of the spectrum, we expect some advantage from Algorithm 7.19, which is designed for interior eigenvalues. Indeed, as we will see, the usage of harmonic Ritz values leads to an advantage here.

We have carried out the experiments in MATLAB. The input parameters have been chosen as follows. The starting vector $v$ has been chosen with random entries (with $\mbox{seed}=0$ in MATLAB). The tolerance is $\epsilon = 10^{-8}$. The subspace dimension parameters are ${m}_{\min}=10$, ${m}_{\max}=15$. The correction equations in (27) of Algorithm 7.18 and (34) of Algorithm 7.19 have been solved approximately with five steps of GMRES.

We show graphically in Figure 7.5 the norm of the residual vector as a function of the iteration number. Each time when the norm is less than $\epsilon$, then we have determined an eigenvalue in acceptable approximation, and the iteration is continued with deflation for the next eigenvalue. The left picture represents the results obtained with Algorithm 7.18, and we see that there is no convergence detected within $500$ Jacobi-Davidson steps. In the right picture we see the results for Algorithm 7.19, and now $10$ eigenvalues have been discovered within $350$ iterations.


next up previous contents index
Next: Stability and Accuracy Assessments Up: Jacobi-Davidson Methods   G. Sleijpen Previous: Software Availability   Contents   Index
Susan Blackford 2000-11-20