next up previous contents index
Next: Some algorithms connected to Up: The representation of semiseparable Previous: Some examples   Contents   Index


Retrieving the representation from a semiseparable matrix

Here, a method is proposed to retrieve the Givens-vector representation of a semiseparable matrix in a stable way.

In fact we search for the map:

$\displaystyle s_{\mathcal{S}_2}: \mathcal{S}$ $\displaystyle \rightarrow$ % latex2html id marker 31778
$\displaystyle \mathbb{R}^{2\times(n-1)} \times \mathbb{R}^n$  
$\displaystyle S$ $\displaystyle \mapsto$ $\displaystyle (G,d) .$  

Suppose we have a semiseparable matrix as in (2.4). The vector elements $ d_i$ can be retrieved rather easily from the matrix. In fact:

$\displaystyle {\Vert S(i:n,i) \Vert _2}$
  $\displaystyle =$ $\displaystyle \sqrt{{\rule[0.1cm]{0cm}{0.2cm}(c_i d_i)^2} + (c_{i+1} s_i d_i)^2 + \cdots
+ (c_{n-1}s_{n-2} \ldots s_i d_i)^2+ (s_{n-1}s_{n-2} \ldots s_i d_i)^2 }$  
  $\displaystyle =$ $\displaystyle \sqrt{(c_i d_i)^2 + (c_{i+1} s_i d_i)^2 + \cdots
+ (s_{n-1}^2+c_{n-1}^2)(s_{n-2} \ldots s_i d_i)^2 }$  
  $\displaystyle =$ $\displaystyle \sqrt{(c_i^2+s_i^2) d_i^2}$  
  $\displaystyle =$ $\displaystyle \vert d_i\vert .$  

This means that the absolute value of $ d_i$ can be calculated by calculating the norm $ \Vert S(i:n,i)\Vert _2$. All diagonal elements are determined now, except their signs, this is done at the same time as the calculation of the Givens transformations. To calculate the corresponding Givens transformations connected with the semiseparable matrix, we first map the matrix $ S$ towards another semiseparable matrix. This procedure is quite expensive, but results in a stable way to compute the Givens-vector representation. The matrix $ S$ is mapped onto the following matrix of norms. Note that the choice of the norm does not play a role:

% latex2html id marker 31814
$\displaystyle \hat{S}=\left( \begin{array}{ccccc} ...
...rt & \Vert S(n,1:2)\Vert & \ldots \Vert S(n,1:n)\Vert \\  \end{array} \right) .$ (2.11)

So in fact a new matrix $ \hat{S}$ is created with elements $ \hat{S}_{i,j}= \Vert S(i,1:j)\Vert$. Note that this matrix has the same dependencies between the rows as the matrix $ S$ (except for the signs). We start calculating the last Givens transformation $ G_{n-1}$ such that

$\displaystyle G_{n-1} \left( r_{n-1} \;,\; 0 \right)^T= \left( \hat{S}_{n-1,n-1}\;,\; \hat{S}_{n,n-1} \right)^T.$    

Before calculating the next Givens transformation we have to update the matrix $ \hat{S}$, by applying the Givens transformation $ G_{n-1}$ to the rows $ n-1$ and $ n$. Denoting this new matrix as $ \hat{S}^{(n-1)}$, the next Givens transformation $ G_{n-2}$ is calculated such that

$\displaystyle G_{n-2} \left( r_{n-2}\;, \;0 \right)^T= \left( \hat{S}_{n-2,n-2}...
...T =\left( \hat{S}^{(n-1)}_{n-2,n-2} \;,\; \hat{S}^{(n-1)}_{n-1,n-2} \right)^T .$    

Updating again the matrix $ \hat{S}^{(n-1)}$ by applying the Givens transformation $ G_{n-2}^T$ to the rows $ n-2$ and $ n-1$ we get the matrix $ \hat{S}^{(n-2)}$ and we can calculate $ G_{n-3}$. Consecutively, all the Givens transformations can be calculated, satisfying:

$\displaystyle G_{i} \left( r_{i}\;,\; 0 \right)^T= \left( \hat{S}_{i,i}\; , \; ...
...ight)^T =\left( \hat{S}^{(i+1)}_{i,i}\; , \; \hat{S}^{(i+1)}_{i+1,i} \right)^T.$    

This procedure gives us the Givens-vector representation, except for the signs of the diagonal elements, but the sign is determined rather easily, by looking at the signs of the elements in the original matrix. The Givens transformations are uniquely determined, because we take $ c_i$ always positive, and when a Givens transformation of the following form has to be determined: $ G \left( 0 \; , \; 0 \right)^T = \left( 0 \; ,
\; 0 \right)$ we take $ G$ equal to the identity matrix. We illustrate the numerical stability with respect to the algorithm used in Example 17:

Example 18 (Example 17 continued)   The same experiment is performed as in Example 17, but now with the newly designed algorithm: the output matrix is the following one:

% latex2html id marker 31861
$\displaystyle \left( \begin{array}{lll} 1.0000 & 1...
...31} \\  8.1131 \cdot 10^{-16}& 6.1575\cdot 10^{-31}& 1.0000 \end{array} \right)$    

This matrix is much closer to the original one compared to the result in Example 17.

This construction of the Givens-vector representation is of course quite expensive (faster, even $ O(n)$ algorithms, can be constructed, for arbitrary semiseparable matrices, but they are numerically unstable in general). In practical applications however, faster ($ O(n)$) and numerically stable methods can be designed to retrieve the representation, e.g., if the given semiseparable matrix is represented with two generators $ u$ and $ v$, one can derive the Givens-vector representation in $ O(n)$ computational time. These methods however, are highly dependent of the application or problem one is trying to solve. Therefore we do not further investigate algorithms to retrieve the Givens-vector representation.

In the reduction algorithm from symmetric to semiseparable, the output of the algorithm is already in the appropriate form (see Chapter 4 and Chapter 6). Also the $ QR$-algorithm which can be found in Chapter 7 uses as input this representation and gives as output the Givens-vector representation of the new semiseparable matrix. In both of these algorithms there is no need to apply this expensive procedure for calculating the Givens-vector representation from the elements of the semiseparable matrix.

Moreover, this representation reveals already the $ QR$-factorization of the semiseparable matrix $ S$: the Givens transformations appearing in the representation of the matrix are exactly the same as the Givens transformations appearing in the $ Q$ factor of the $ QR$-factorization. (More information can be found in Chapter 7 and Chapter 9 .)


next up previous contents index
Next: Some algorithms connected to Up: The representation of semiseparable Previous: Some examples   Contents   Index
Raf Vandebril 2004-05-03