Next: The determinant of a
Up: Some algorithms connected to
Previous: Swapping the representation
  Contents
  Index
A fast matrix vector multiplication
In this section an example of an implementation with the Givens-vector
representation is given. In later chapters, other algorithms based on this
representation can be found.
Because for generator representable semiseparable matrices the multiplication with a vector clearly
can be performed with
operations, we also want
an
implementation for the Givens-vector representation.
The formulas will be given for
nonsymmetric semiseparable matrices, that are represented by two sequences of Givens
transformations and two vectors.
Let us denote the first sequence as:
and the second as:
We want to calculate the multiplication between
and
where
and
To deduce the algorithm, we have to decompose the matrix
into a strictly
upper triangular, and a lower triangular part. Denote
and
. We will now compute:
such that
is the result. To calculate
in a
fast way, we rewrite the following formulas (only the first
components of
are denoted):
We use some temporary variables called
. Rewriting the formulas
reveals the order
algorithm for the multiplication.
Combining the last
equalities of all the
's one can derive an
order
algorithm to perform the multiplication of
and
.
The multiplication of
and
can be derived in a completely
analogous way.
Next: The determinant of a
Up: Some algorithms connected to
Previous: Swapping the representation
  Contents
  Index
Raf Vandebril
2004-05-03