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.
In the same way the function B=GivRight(A,k,l,m) is defined as
annihilating the element in position
with the element
by a Givens transformation on the right.
In the same way the function B=HouseRight(A,k,m) is defined by
annihilating the elements in row
, from element
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.