The implementation

Let us briefly describe a high-level implementation of a parallel $ QR$-factorization/solver of a quasiseparable matrix. The actual algorithm was implemented in MATLAB, using thereby the MatlabMPI package, for running the parallel algorithm on different machines.

We assume that we divided initially the work load of both machines, and moreover we assume that the local processor contains the top $ n_1$ rows and the remote processor contains the bottom $ n_2$ rows. The items in italics only need to be performed in case one wants to solve a system of equations by the implemented $ QR$-factorization. In case one wants to solve a system of equations, also the right-hand side needs to be divided into two parts, the top part for the local and the bottom part for the remote processor. The main algorithm consists of the following steps.

So one can clearly see that only the computation of the $ QR$-factorization can be done in parallel. Solving the system of equations via backward substitution needs to be done first at the remote processor, and then this result needs to be sent to the local processor for computing the complete solution.

The backward substitution step is of the order $ O(n^2)$, just like computing the $ QR$-factorization itself. Even though it is possible to parallellize the backward substitution, we do not do so, because it becomes too fine grained. To parallelize it, one has to send immediately every computed value $ x_i$ from the remote processor to the local processor, who can then already us this to compute the solution of the upper part, by making the appropriate subtraction. Being able to halve the complexity of computing the $ QR$-factorization has an important impact on the complexity of the global solver, as the computation of the $ QR$-factorization is the most time consuming operation, as we will see in the numerical experiments.

Raphael Vandebril 2007-07-17