next up previous
Next: Comparison with other algorithms Up: The algorithms and operation Previous: Implementation with Householder and

Reduction to Tridiagonal

The third approach to reduce a symmetric matrix into semiseparable form is the following. First we reduce the matrix via standard matrix algorithms into tridiagonal form (This can be achieved with Householder or Givens rotations). This tridiagonal form can then be reduced into the semiseparable form. The first algorithm is a standard algorithm and can for example be found in the book Matrix Computations, by Golub and Van Loan [7].

The reduction from tridiagonal into semiseparable form will be performed by the following algorithm:

algorithm 3   We use the same notation for the symmetric Givens transformation as in the Algorithm 1.
for j=n:-1:2
  for i=j:1:n
    A=SymGiv(A,i-1,i,i);
  end
end

It is very clear that the first innerloop as in Algorithm 1 is not needed anymore, because we already have all the zeros. We will now calculate the extra cost needed to transform this tridiagonal to semiseparable form. The calculations we make are optimized in all possible ways, exploiting everything we now about the matrix, which means, that multiplications and summations with zeros are not counted. Also operations on semiseparable parts are not treated as full matrices but as products of vectors. The calculation of the Givens gives 7 flops. The multiplication on the left hand and right hand side takes 10 operations, when everything is optimized and the semiseparable part is stored in two vectors. The complexity we get therefore equals:

$\displaystyle \sum_{j=n:-1:2}\left(\sum_{i=j:1:n} 10 \right) = 5n^2+O(n)$    


next up previous
Next: Comparison with other algorithms Up: The algorithms and operation Previous: Implementation with Householder and
Raf Vandebril 2004-04-19