Computing the representation

Let us now show how we can easily compute the generators of this quasiseparable matrix. We have to compute three things to obtain the generators of the resulting quasiseparable matrix: The Givens transformations for the Givens-vector representation, the vector used in this representation and the diagonal elements of the resulting quasiseparable matrix.

Let us start by computing effectively the Givens transformations. Suppose we have the lower bidiagonal matrix $ L$. It is obvious that there exists a sequence of Givens transformations $ G_{n-1}\ldots
G_1$ applied on the right of the matrix $ L$ such that $ LG_{n-1}\ldots
G_1=\hat{L}$ is an upper bidiagonal matrix. The Givens transformation $ G_{n-1}$ works on the last two columns, the transformation $ G_{n-2}$ on columns $ n-2$ and $ n-1$ and so forth. This gives us the following equation:

$\displaystyle L^{-1} T L^{-T}$ $\displaystyle =$ $\displaystyle \left(\hat{L} G_1^T G_2^T \ldots G_{n-1}^T\right)^{-1} T L^{-T}$  
  $\displaystyle =$ $\displaystyle G_{n-1} \ldots G_2 G_1 \hat{L}^{-1} T L^{-T}$  
  $\displaystyle =$ $\displaystyle G_{n-1} \ldots G_2 \left( G_1 \hat{L}^{-1} T L^{-T} \right).$  

Combining the factors $ G_1 \hat{L}^{-1} T L^{-T}=H$, we get an upper Hessenberg matrix. Hence it is clear due to construction that the Givens transformations $ G_{n-1}$ up to $ G_2$ are the Givens transformations needed for the Givens-vector representation of the quasiseparable part in the matrix. Moreover we see that it only takes $ O(n)$ operations to compute all these Givens transformations, more precisely only $ 8n-8$ operations are involved.

In the remainder of this section we will illustrate how to compute the vector $ \mathbf{v}$ of the Givens-vector representation of the strictly lower triangular part, and also how to compute the diagonal of the resulting quasiseparable matrix. To construct these remaining unknown generators, we have to compute in some sense explicitly the product of these matrices. Fortunately due to all the hidden structure, the global cost of computing all these generators is $ O(n)$. Not all the details of the computational aspects are given as it often involves straightforward computations. The software is available in MATLAB, and can be downloaded from the first author's site. The following list gives a brief overview of the consecutive steps which will be followed to compute the diagonal and the vector $ \mathbf{v}$. After each item the number of involved operations is shown, indicating the low cost of computing the generators of the quasiseparable matrix. Following this list we provide more detailed comments on the computations.

Let us start by computing the generators of the inverse of $ L$. The matrix $ L$ is lower bidiagonal, hence its inverse is a lower semiseparable matrix. Therefore, this matrix can be represented by a Givens-vector representation. We do already have the Givens transformations for the representation, of the matrix $ L^{-1}$, namely $ G_1,G_2,\ldots G_{n-1}$. As the diagonal elements of $ L^{-1}$ are the inverses of the diagonal elements of $ L$, one has as generators the Givens from above and as vector elements the following vector:

$\displaystyle \mathbf{v}_L=\left[ \frac{1}{l_{11} c_1},\frac{1}{l_{22} c_2},\ldots,\frac{1}{l_{n-1,n-1} c_{n-1}},\frac{1}{l_{nn}} \right].$    

Assuming that we denote our matrices as $ L=(l_{ij})_{ij}$. We remark that these computations are well-defined as one can easily verify that all cosines in the different Givens transformations are different from zero.9

Following the computation of the inverse we compute the matrix $ TL^{-T}$. With similar techniques as discussed in the proof one can see that this matrix is an upper Hessenberg matrix, for which the strictly upper triangular part is of quasiseparable form. In fact one can compute by simple matrix multiplication the diagonal and subdiagonal elements of the matrix $ TL^{-T}$. The computation of the generators of the upper triangular part is also rather straightforward. The Givens transformations are exactly the same as the one used above, only one less: $ G_2,G_3,\ldots,G_{n-1}$. The vector of the representation of this upper triangular part can be obtained by computing the superdiagonal elements of the matrix $ TL^{-T}$ and dividing them by the corresponding cosines of the Givens transformations.

Finally, we need to compute the diagonal and strictly lower triangular representation of the quasiseparable matrix $ L^{-1} (TL^{-T})$. Even though it seems that we will obtain a dense matrix the multiplication between the lower semiseparable matrix $ L^{-1}$ and the strictly upper triangular part of $ (TL^{-T})$, which is of quasiseparable form, can be done in $ O(n)$ operations. Writing down the lower semiseparable matrix, and the strictly upper triangular part of the matrix $ TL^{-T}$ as in Equation 1, one can easily deduce a simple loop which computes the subdiagonal elements of the new quasiseparable matrix. Based on these subdiagonal elements and on the fact that the cosines of the Givens transformations are different from zero, one can easily obtain the generators of the strictly lower triangular part.

Summarizing, the complexity of computing the Cholesky decomposition of the positive definite tridiagonal matrix takes $ 5n-3$ operations. Computing the generators of the quasiseparable matrix takes $ 56n-84$ operations. Hence the total cost for computing the representation of the quasiseparable matrix is $ 61n-87$ operations.

Traditionally, one assumed that the approach of computing the eigenvalues via $ L^{-1}TL^{-T}$, was too expensive because the reduction to tridiagonal form of a dense matrix already took $ O(n^3)$ operations. This reduction was essential, before being able to compute the spectrum in $ O(n^2)$ operations, via for example a divide and conquer technique or a $ QR$-algorithm. Using the method presented above however, we see that it takes $ O(n)$ operations to obtain the representation of the quasiseparable matrix. For this quasiseparable matrix there exist techniques $ O(n^2)$ for computing the whole spectrum. In the next section we will briefly discuss this methods.

Raphael Vandebril 2007-07-17