In this subsection, we will propose an analytic way of computing a
Givens transformation for expanding the rank structure.
We will prove the existence of a Givens transformation, which will be
used afterwards in the next subsection for developing a sequence of
descending rank expanding Givens transformations.
In the example following the theorem, we will use
the reduction of a Hessenberg matrix to upper triangular form as an
example of a descending rank expanding sequence of Givens
transformations.
Proof.
Suppose we have the matrix

and the Givens transformation

as follows:
and ![$\displaystyle G=\frac{1}{\sqrt{1+t^2}} \left[ \begin{array}{rr} t & -1 \\ 1 & t \end{array} \right].$](img38.png) |
(2) |
Assume
and
to be linearly independent,
otherwise we could have taken the Givens transformation equal to the
identity matrix.
Let us compute the product
:
The second row being dependent of
![$ [e,f]$](img29.png)
leads to the following
relation:
Rewriting this equation towards
gives us the following
well-defined equation:
This equation is well defined, as we assumed
![$ [c,d]$](img39.png)
to be independent
of
![$ [e,f]$](img29.png)
.
This type of Givens transformation was already used before in [15,16].
Let us show that the rank expanding Givens transformations as we
computed them here are a generalization of the transformations used
for bringing an upper Hessenberg matrix back to upper triangular form.
Example 1
Suppose we have a Hessenberg matrix
and we want to reduce it to
upper triangular form. Instead of using the standard Givens
transformations, eliminating the subdiagonal elements, we will use
here the Givens transformations from Theorem 1 to
expand the zero rank below the subdiagonal. This is done by a
sequence of Givens transformations going from top to bottom.
Suppose we have for example the following Hessenberg matrix:
Computing, the first Givens transformation applied on row
and
in order to make part of the transformed second row dependent of
gives us the following
transformation (use the same notation as in Corollary 1):
Hence our Givens transformation, will be of the following form:
Applying the transformation
(the
Givens
transformation
is embedded into a
Givens transformation
) onto the
matrix
annihilates the first subdiagonal element, thereby
expanding the zero rank structure below the subdiagonal. One can
easily continue this procedure and conclude that the rank expanding
Givens transformations lift up the zero structure and hence create an
upper triangular matrix. In this example, we can clearly see that a zero
creating Givens transformation, can also be at the same time a rank
expanding Givens transformation.
For the implementation of this specific Givens transformation, we
adapted the standard implementation of a zero creating Givens
transformation. We obtained the following code in MATLAB style
notation by changing the one
from [14]. The matrix
corresponds
to the two by two matrix the Givens transformation is acting on and
the vector
contains the elements
. The output consists of
the cosine
and the sine
of the transformation, as well as the
transformed matrix
.
function [c,s,A] = Givensexp(A,V);
y=V(1)*A(2,2)-A(2,1)*V(2);
x=-(A(1,1)*V(2)-A(1,2)*V(1));
if (x == 0)
% In case this is zero, we obtain immediately G=I
c = 1; s = 0;
else
if (abs(x) >= abs(y))
t = y/x; r = sqrt(1 + t*t);
c = 1/r; s = t*c; r = x*r;
else
t = x/y; r = sqrt(1 + t*t);
s = 1/r; c = t*s;
end
A(1:2,:)=[c,s;-conj(s),c]*A(1:2,:);
end
We remark that in the presented code the criterion
, can be made
relatively depending on the machine precision.
Raphael Vandebril
2007-07-17