f08wsf (zgghrd) is usually the third step in the solution of the complex generalized eigenvalue problem
The (optional) first step balances the two matrices using
f08wvf (zggbal). In the second step, matrix
is reduced to upper triangular form using the
factorization routine
f08asf (zgeqrf) and this unitary transformation
is applied to matrix
by calling
f08auf (zunmqr).
f08wsf (zgghrd) reduces a pair of complex matrices
, where
is triangular, to the generalized upper Hessenberg form using unitary transformations. This two-sided transformation is of the form
where
is an upper Hessenberg matrix,
is an upper triangular matrix and
and
are unitary matrices determined as products of Givens rotations. They may either be formed explicitly, or they may be postmultiplied into input matrices
and
, so that
Moler C B and Stewart G W (1973) An algorithm for generalized matrix eigenproblems SIAM J. Numer. Anal. 10 241–256
The reduction to the generalized Hessenberg form is implemented using unitary transformations which are backward stable.
This routine is usually followed by
f08xsf (zhgeqz) which implements the
algorithm for computing generalized eigenvalues of a reduced pair of matrices.
The real analogue of this routine is
f08wef (dgghrd).