f08ngf multiplies an arbitrary real matrix
by the real orthogonal matrix
which was determined by
f08nef when reducing a real general matrix to Hessenberg form.
f08ngf is intended to be used following a call to
f08nef, which reduces a real general matrix
to upper Hessenberg form
by an orthogonal similarity transformation:
.
f08nef represents the matrix
as a product of
elementary reflectors. Here
and
are values determined by
f08nhf when balancing the matrix; if the matrix has not been balanced,
and
.
This routine may be used to form one of the matrix products
overwriting the result on
(which may be any real rectangular matrix).
The computed result differs from the exact result by a matrix
such that
where
is the
machine precision.
Background information to multithreading can be found in the
Multithreading documentation.
Please consult the
X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the
Users' Note for your implementation for any additional implementation-specific information.
The complex analogue of this routine is
f08nuf.
This example computes all the eigenvalues of the matrix
, where
and those eigenvectors which correspond to eigenvalues
such that
. Here
is general and must first be reduced to upper Hessenberg form
by
f08nef. The program then calls
f08pef to compute the eigenvalues, and
f08pkf to compute the required eigenvectors of
by inverse iteration. Finally
f08ngf is called to transform the eigenvectors of
back to eigenvectors of the original matrix
.