Next: The -algorithm for symmetric
Up: Implementations and numerical experiments
Previous: Implementations and numerical experiments
  Contents
  Index
Here we will describe the
implementation to solve a system of equations where the
coefficient matrix is a semiseparable plus diagonal matrix.
The implementation we present computes first the
-factorization of
the semiseparable plus diagonal matrix and will be used to solve the
system via backward substitution.
First we recall the
-solver and the algorithm
as introduced in [178].
Suppose a
semiseparable matrix
and a diagonal matrix
are given.
The first sequence of Givens
transformations applied to the matrix
will transform the matrix
into an upper triangular matrix
.
Moreover, because the matrix we started from was a
semiseparable matrix, the upper triangular factor
, will have
semiseparability rank
. Performing now these
Givens
transformations on the diagonal
this results in
a Hessenberg matrix
, for which the upper triangular part is of
semiseparability rank
. We have even more structure because the transformations
performed on the semiseparable and the diagonal are the same, we can
combine the Hessenberg matrix
and
to a matrix whose upper
triangular part has semiseparability rank
.
This can briefly be formulated into a theorem
Theorem 83 (From [
178])
Suppose a semiseparable matrix

and a diagonal

are given, then
there exists a sequence of Givens transformations

, such that the following equality holds:
where

is an upper triangular semiseparable matrix with semiseparability
rank

.

denotes a Hessenberg
matrix with the upper triangular part of semiseparability rank

. The matrix

is a Hessenberg matrix, whose upper
triangular part is semiseparable and of semiseparability rank

.
As we want an upper triangular matrix and not a Hessenberg one, a final
sequence of Givens transformations
is needed, to annihilate the
subdiagonal elements of the Hessenberg matrix
. These Givens
transformations are performed from top to bottom. Moreover, because
these Givens transformations are performed on the matrix
the upper triangular
semiseparable structure will be destroyed a little bit. Instead of an
upper triangular part of semiseparability rank
, we have now a strictly
upper triangular part of semiseparability rank
. This knowledge
about the structure makes it possible to implement this algorithm in
operations and to solve systems with semiseparable plus
diagonal matrices in a fast way.
We will now construct in more detail the implementation, which calculates
the
-factorization of a semiseparable matrix, and solves a system
of equations with it.
For the implementation the semiseparable plus diagonal matrix is not
split up in two parts, as in the theoretical overview, but into three
separate parts, namely the lower triangular part of the semiseparable
matrix, the strictly upper triangular part of the semiseparable matrix
and a diagonal. In fact we have the following decomposition
In the previous splitting of the semiseparable plus diagonal matrix,
we already assumed that our semiseparable parts are represented with
the Givens-vector representation. For the lower triangular
semiseparable matrix we denote the representation with
and
,
for the strictly upper triangular part we use
and
:
The Givens transformations
and
are denoted as
Let us denote with
the diagonal elements of the matrix
.
As we already used
for the Givens transformations involved in
the Givens-vector representation of the matrix we denote with
the Givens transformations from the
-factorization.
These Givens transformations satisfy
.
Applying
to the lower triangular
semiseparable matrix from bottom to top, will transform this matrix
into an upper triangular semiseparable matrix.
We take a closer look at the matrix
after applying the Givens
transformation
to the left. We get the following structure for the
lower triangular matrix
:
The diagonal matrix
will change in the following way:
It can be seen now that the upper triangular zero part is slowly
filled with elements depending on each other. In fact a
semiseparable part is created from bottom to top, for which the Givens
transformations in the Givens-vector representation are the
Givens transformations
. One more Givens
transformation
is applied such that we can also
see the pattern in the expansion for
the elements in the vector of the new representation.
After applying the transformation
on the rows
and
we get the following matrices:
and
After all the Givens transformations
are applied on the matrix
, the subdiagonal elements from top to bottom are the
following ones:
The new vector
in the Givens-vector representation from bottom to top
has the following form:
The procedure described above is an
procedure, when
implementing everything with the Givens-vector representation.
However, we did not yet took into consideration the strictly upper
triangular part
. We know that this matrix has the representation
from left to right. This is an advantage in the next procedure,
because the Givens transformations are performed on the left, they
will not change the dependencies between the columns. The rough idea
will be, to apply a Givens transformation, which will clearly disturb
the semiseparable structure, because of fill-in in the
diagonal. However, because still a following sequence of Givens
transformations is needed
, we can take out a term in the corresponding diagonal element of
and add it to our transformed matrix
, such that the
dependency between the columns is maintained. In this way, we will
create an upper triangular semiseparable matrix for which the
dependencies between the columns did not change,
only the new diagonal elements need to be
calculated, this is illustrated in the following equations.
Applying the Givens transformation
on the
left of the matrix
we get the following structure:
To create an upper triangular semiseparable matrix, an element
has to be added in position
such that the last two columns will satisfy
again the semiseparable structure. This means in fact that an element
has to be added such that the following block will be of
rank
:
When doing so, the corresponding element of
, namely
has to be diminished with this term
.
(Note that this can be done without any problem, because the Givens
transformations applied to the left are the same for
and
.)
We can now continue and perform the next Givens transformation
, on the matrix in which we added the element
(Only the last four rows and columns are shown):
We can continue this process and calculate
. Using this
procedure, one can design an
calculation
transforming
into an upper triangular semiseparable part having
hte following representation from left to right.
For the Givens transformations we have:
and the new diagonal elements, denoted with
, are:
One should not forget to substract from the elements of the vector
the corresponding elements
.
Note 22
The implementation as designed here, presumes that we
are in the ideal case, i.e., there are no divisions by zero, all the elements
are different from zero etc. The practical implementation, is changed
a little bit, such that also the not ideal situations are dealt with
in a correct way.
The final step consists of transforming the Hessenberg matrix
into an upper triangular matrix. We will not describe this step in
detail like in the previous ones, because it is a straightforward
generalization of the Givens transformations applied to
. First
we need to swap the representation of
, and
towards a
representation from left to right. In this way, both the
representations of the upper triangular part of the Hessenberg matrix
are from left to right.
The application of the second sequence of Givens transformations to
annihilate the subdiagonal elements of the Hessenberg matrix,
will therefore not change the dependencies between the columns, but
only the diagonal will be disturbed. Therefore we exclude the
diagonal, and calculate the new Givens-vector representation of the
strictly upper triangular part of the matrix
. In this way we get a
diagonal and two Givens-vector representations which will
represent the strictly upper triangular part.
Solving a linear system of equations with the
-algorithm for
semiseparable matrices is an easy application of the above
decomposition. First we calculate the
-factorization of
.
Suppose we want to solve the system
. This is equivalent to
solving
, and then solving the final part via backward
substitution. This final backward substitution can also be implemented
in
. To do so the same techniques as described in Section 2.8.2 have to be applied.
This algorithm can be used for example to calculate eigenvectors
corresponding to particular eigenvalues, via inverse iteration.
Next: The -algorithm for symmetric
Up: Implementations and numerical experiments
Previous: Implementations and numerical experiments
  Contents
  Index
Raf Vandebril
2004-05-03