next up previous
Next: The reduction to a Up: The algorithm Previous: The algorithm

Useful functions

To describe the complete algorithm, we have to introduce some extra functions which will be used within the different algorithms, we denote them with Matlab-style notation.

algorithm 1   Suppose the following function is given: B=GivLeft(A,k,l,m), which transforms $ A$ into $ B=G*A$ where $ G$ is the Givens rotation such that $ G*A$ eliminates the element in position $ (k,m)$ with the element $ (l,m)$.

In the same way the function B=GivRight(A,k,l,m) is defined as annihilating the element in position $ (m,k)$ with the element $ (m,l)$ by a Givens transformation on the right.

algorithm 2   The function: B=HouseLeft(A,k,m) will transform $ A$ into $ B=H*A$ where $ H$ is the Householder transformation such that $ H*A$ eliminates the elements in the column $ m$ from position $ k$ up to the end of the column.

In the same way the function B=HouseRight(A,k,m) is defined by annihilating the elements in row $ m$, from element $ k$ up to the end.

The functions as denoted here are programmed in such a way, that when contradictions in the indices arise, no Givens or Householder transformation will be performed.

The next function swaps an upper triangular semiseparable matrix into a lower triangular semiseparable one.

function B=swapdown(A)

for i=n-1:-1:1
  A=GivRight(A,i+1,i,i);
end
B=A;

In a complete similar way the following function can be defined B=swapup(A) which swaps a lower triangular semiseparable matrix into an upper triangular semiseparable one.


next up previous
Next: The reduction to a Up: The algorithm Previous: The algorithm
Raf Vandebril 2004-04-19