next up previous
Next: A second algorithm Up: The algorithm Previous: The th step

The last step

The last step starts with a matrix $ S^{(n-1)}_0+D^{(n-1)}_0$ where $ S^{(n-1)}_0$ has a semiseparable structure of dimension $ n-1$ and $ D^{(n-1)}_0=
\rm {diag}([0,d_1, \ldots, d_{n-1}])$:

$\displaystyle S^{(n-1)}_0+D^{(n-1)}_0 = \left( \begin{array}{cccc} \times & \bo...
...ay}{cccc} 0 &&&   & d_1 && \\
&&\ddots &   &&&d_{n-1}
\end{array}\right).$

For each $ j$, with $ j=1, \ldots, n-1$, we want to annihilate the superdiagonal element $ (j,j+1)$ of the $ j$th row, and because of the semiseparable structure of dimension $ n-1$, also all elements right from the superdiagonal, by means of a Givens transformation $ G^{{(n-1)}^T}_j$ on the $ j$th and $ (j+1)$th row. First the diagonal part $ D^{(n-1)}_{j-1}$ will be updated into $ \hat{D}^{(n-1)}_{j-1}=\rm {diag}([d_1, \ldots, d_j,d_j,d_{j+1},\ldots,
d_{n-1}])$ such that $ \hat{D}^{(n-1)}_{j-1}$ remains the same under the orthogonal similarity transformation based on $ G^{{(n-1)}}_j$. The adaptation of $ S^{(n-1)}_{j-1}$ is also as explained in the $ k$th step, more precisely, $ \hat{S}^{(n-1)}_{j-1}(j,j)= S^{(n-1)}_{j-1}(j,j)+d_{j-1}-d_j$ if $ j\not=1$ and $ \hat{S}^{(n-1)}_{j-1}(j,j)=
S^{(n-1)}_{j-1}(j,j)-d_j$ if $ j=1$. Also now the existing structure of $ S^{(n-1)}_{j-1}$ is not changed. Hence, the Givens transformations $ G^{{(n-1)}^T}_j$ and $ G^{{(n-1)}}_j$ will be performed.

After these $ n-1$ transformations, we have the following situation:

$\displaystyle S^{(n-1)}_{n-1}+D^{(n-1)}_{n-1} = \left( \begin{array}{cccc} \box...
...& d_2 &&&   &&\ddots &&
  &&&d_{n-1} &   &&&& d_{n-1} \end{array}\right).$

Only the last diagonal element is not of the requested form, but we can change it into $ d_n$ and subtract it from $ S^{(n-1)}_{n-1}(n,n)$. This last subtraction does not destroy the semiseparable structure and hence we have transformed an arbitrary symmetric matrix $ A$ into a similar diagonal-plus-semiseparable one with the diagonal equal to $ d$. This finishes the algorithm.


next up previous
Next: A second algorithm Up: The algorithm Previous: The th step
Raf Vandebril 2004-08-03