next up previous
Next: Numerical Examples Up: A fast method for Previous: Low displacement rank matrices

The Algorithm

First of all we present the algorithm which calculates the LU factorization of the matrix $ \hat{B} = \left( C \oplus C \right) B
\left( C \oplus C \right)$ with $ B$ given by (37). This LU-factorization can later on be used to solve (21).

algorithm 2   Calculating the LU factorization of the matrix $ B$ given by (37).
  1. Calculate the generators of the matrices $ \Lambda_k^{-1}$ (cf. formula (31)).
    For $ k=0,\ldots,n_2$, calculate

    $\displaystyle \mathbf{x}_k = \Lambda_k^{-1} \mathbf{e}_0, \hspace{1cm}
\mathbf{y}_k = \Lambda_k^{-1} \mathbf{e}_{n_1}.$

  2. Calculate the generators for $ B_0$ and $ B_{n_2}$ (cf. formula (33)).
    Calculate

    $\displaystyle \mathbf{x}_+ =\frac{(-1)}{n_2}\left( \frac{\epsilon_0}{\theta_1} ...
...t(
\frac{\epsilon_0}{\theta_1} {\sum_{k=0}^{n_2}}'' (-1)^k
\mathbf{x}_k\right),$

    $\displaystyle \mathbf{y}_+ =\frac{(-1)}{n_2} \left(\frac{\epsilon_1}{\theta_1} ...
...ft(\frac{\epsilon_1}{\theta_1} {\sum_{k=0}^{n_2}}'' (-1)^k
\mathbf{y}_k\right).$

  3. Transform to the generators for $ \hat{B}_0$ and $ \hat{B}_{n_2}$ (cf. formula (39) and (40)).
    Calculate

    $\displaystyle \mathbf{\hat{x}}_+ = C \mathbf{x}_+, \hspace{1cm}
\mathbf{\hat{x}}_- = C \mathbf{x}_-,$

    $\displaystyle \mathbf{\hat{y}}_+ = C \mathbf{y}_+, \hspace{1cm}
\mathbf{\hat{y}}_- = C \mathbf{y}_-,$

    $\displaystyle \mathbf{\hat{e}}_0 = C \mathbf{e}_0, \hspace{1cm}
\mathbf{\hat{e}}_{n_1} = C \mathbf{e}_{n_1}.$

  4. Calculate the diagonal $ \mathbf{d}$ of $ \hat{B}$ and of the $ (1,2)$- en $ (2,1)$-subblock of $ \hat{B}$ (resp. $ \mathbf{d}_U$ en $ \mathbf{d}_L$).
    Calculate for $ i=1,\dots, n_1$:

    $\displaystyle d_{+i} = -\sqrt{2 n_1} \frac{\theta_1}{\epsilon_0} \hat{x}_{+i} -...
...}_{+i} - \hat{x}_{+j} + (-1)^j \hat{y}_{+i} - (-1)^i
\hat{y}_{+j}} {c_i - c_j},$

    $\displaystyle d_{-i} = -\sqrt{2 n_1} \frac{\theta_1}{\epsilon_0} \hat{x}_{-i} -...
...}_{-i} - \hat{x}_{-j} + (-1)^j \hat{y}_{-i} - (-1)^i
\hat{y}_{-j}} {c_i - c_j},$

    $\displaystyle \mathbf{d} = \left( \begin{array}{c} 1 \\  1 \\  \vdots \\  1
\en...
...{array}{c} \gamma_0
\mathbf{d}_+ \\  \gamma_1 \mathbf{d}_+ \end{array} \right),$

    $\displaystyle \mathbf{d}_L = \gamma_0 \mathbf{d}_-, \hspace{1cm} \mathbf{d}_U =
\gamma_1 \mathbf{d}_-,$

    where $ c_i = c_{i+n_1+1} = 2 \cos\frac{i
\pi}{n_1}$, for $ i=0,1,\ldots,n_1$.
  5. Initialise the generators $ \hat{F}$ and $ \hat{G}$ of $ \hat{B}$.
    With the following notations
    $\displaystyle \nabla_{\{D(\mathbf{c})\oplus D(\mathbf{c}),D(\mathbf{c}) \oplus D(\mathbf{c})\}}(\hat{B})$ $\displaystyle =$ $\displaystyle \hat{F} \hat{G}^T$  
      $\displaystyle =$ $\displaystyle \left( \begin{array}{c} \phi_0^T \\ \phi_1^T \\ \vdots \\ \phi_{2...
...gin{array}{cccc} \psi_0 & \psi_1 & \ldots & \psi_{2 n_1 +1} \end{array} \right)$  

    We have to give $ \hat{F}$ and $ \hat{G}$ the following values

    $\displaystyle \hat{F}= \left[ \begin{array}{cccccccc}
\gamma_0 \mathbf{\hat{x}}...
...hat{y}}_+ & - \mathbf{\hat{e}}_0 & -
\mathbf{\hat{e}}_{n_1}
\end{array} \right]$

    and

    $\displaystyle \hat{G} = \left[ \begin{array}{cccccccc} D \mathbf{\hat{e}}_0 & D...
...mma_1 D \mathbf{\hat{x}}_+ & \gamma_1
D \mathbf{\hat{y}}_+
\end{array} \right].$

  6. The LU-CAUCHY algorithm adapted to this situation (cf. [12])

    for $ k=0,1,\ldots,2 n_1+1$, calculate

    1. Calculate column $ k$ of $ L$ and row $ k$ of $ U$ from the generators.
      $ l_{kk}= d_k$
      For $ j=k+1,k+2,\ldots,2 n_1 +1$,
      1. $ l_{jk} = \left\{ \begin{array}{cc}
d_{Lk} & \mbox{ if } j = n_1+1+k \\
\frac{\mathbf{\phi}_j^T \mathbf{\psi}_k }{c_j-c_k} &
\mbox{ else}
\end{array}\right.$
      2. $ u_{kj} = \left\{ \begin{array}{cc}
d_{Uk} & \mbox{ if } j = n_1+1+k \\
\frac{\mathbf{\phi}_k^T \mathbf{\psi}_j }{c_k-c_j} & \mbox{
else}
\end{array}\right.$
      $ u_{kk} = l_{kk}$ en $ l_{kk}=1$.
      For $ j=k+1,k+2,\ldots,2 n_1 +1$, calculate
      $ \,\,\,\,l_{jk}
= \frac{l_{jk}}{u_{kk}}$
    2. Calculate the Schurcomplement.
      For $ j=k+1,k+2,\ldots,2 n_1 +1$, calculate
      1. $ \phi_j = \phi_j -l_{jk} \phi_k$
      2. $ t = \frac{u_{kj}}{u_{kk}}$
      3. $ \psi_j = \psi_j - t \psi_k$
      4. $ d_j = d_j - l_{jk} u_{kj}$
      5. If $ k \le n_1$,
        $ d_{Lj} = d_{Lj} - l_{n_1 + 1+j,k} u_{kj}$
        $ d_{Uj} = d_{Uj} - l_{j k} u_{k,n_1+1+j}$

In the same way as in [9] we can apply row pivoting after step 6(a)i, this will improve the numerical stability of the algorithm. The complexity of the algorithm presented here is $ O(n_1
n_2)+O(n_1^2)$. Indeed, step 1 requires solving $ n_2+1$ tridiagonal systems of equations of size $ n_1+1$, in step 2 and 4 we have to add $ n_2+1$ vectors of length $ n_1+1$ and in the final step for every $ k$ (from 0 to $ n_1$) $ 72 (2 n_1-k)$ flops have to be executed. The complexity of the other steps is of a lower magnitude.

When we want to solve (21) we use the fact that

$\displaystyle B = \left(C \oplus C\right) \hat{B} \left(C \oplus C\right).$

So we get the following algorithm for the solution of the Helmholtz equation with Robbins boundary conditions.

algorithm 3 (Robbins problem)   This algorithm solves the system of equations

$\displaystyle M_{RR} \mathbf{u} =
\mathbf{b}$

where $ M_{RR}$ is the matrix (17) coming from a finite difference approximation of the Helmholtz equation on a rectangular grid with Robbins boundary conditions.
  1. Find the LU-factorization of $ \hat{B}$ with the previous algorithm (Algorithm 2).
  2. Calculate $ \mathbf{z} = M_{NN}^{-1} \mathbf{b}$ with $ M_{NN}$ from (19) by using a fast direct method for the Neumann-Neumann problem.
  3. Calculate $ \mathbf{u} _0$ and $ \mathbf{u}_{n_2}$.
    1. Calculate $ \mathbf{\hat{z}}_0 = C \mathbf{z}_0$ and $ \mathbf{\hat{z}}_{n_2} = C \mathbf{z}_{n_2}$ with a fast cosine transform.
    2. Solve the system of equations

      $\displaystyle \hat{B} \left[ \begin{array}{c} \mathbf{\hat{u}}_0 \\
\mathbf{\...
...egin{array}{c} \mathbf{\hat{z}}_0 \\  \mathbf{\hat{z}}_{n_2} \end{array}\right]$

      by using the LU-factorization of $ \hat{B}$.
    3. Calculate $ \mathbf{u}_0 = C \mathbf{\hat{u}}_0$ and $ \mathbf{u}_{n_2} = C \mathbf{\hat{u}}_{n_2}$ with a fast cosine transform.
  4. Calculate

    $\displaystyle \mathbf{y} = M_{NN}^{-1} \left[ \begin{array}{c} \gamma_0
\mathbf...
...\  \vdots \\  \mathbf{0} \\
\gamma_{n_2} \mathbf{u}_{n_2}
\end{array} \right]$

    analogous as in step 2.
  5. Calculate $ \mathbf{u} = \mathbf{y} - \mathbf{z}$

Because we had to solve two systems of equations with $ M_{NN}$ as matrix the computational complexity of the algorithm will be $ 10 n_1 n_2 \log
n_2 + O(n_1^2 + n_1 n_2)$ flops. The iterative technique of Pickering and Harley [26], has complexity: $ A(n_1)n_2^2+O(n_2^2 \log_2(n_2))$, where $ A$ is proportional to the number of iterations.


next up previous
Next: Numerical Examples Up: A fast method for Previous: Low displacement rank matrices
Raf Vandebril 2004-04-19