SUBROUTINE F08WEF ( |
COMPQ, COMPZ, N, ILO, IHI, A, LDA, B, LDB, Q, LDQ, Z, LDZ, INFO) |
INTEGER |
N, ILO, IHI, LDA, LDB, LDQ, LDZ, INFO |
REAL (KIND=nag_wp) |
A(LDA,*), B(LDB,*), Q(LDQ,*), Z(LDZ,*) |
CHARACTER(1) |
COMPQ, COMPZ |
|
F08WEF (DGGHRD) is the third step in the solution of the real generalized eigenvalue problem
The (optional) first step balances the two matrices using
F08WHF (DGGBAL). In the second step, matrix
is reduced to upper triangular form using the
factorization routine
F08AEF (DGEQRF) and this orthogonal transformation
is applied to matrix
by calling
F08AGF (DORMQR).
F08WEF (DGGHRD) reduces a pair of real matrices
, where
is upper triangular, to the generalized upper Hessenberg form using orthogonal transformations. This two-sided transformation is of the form
where
is an upper Hessenberg matrix,
is an upper triangular matrix and
and
are orthogonal 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 orthogonal transformations which are backward stable.
This routine is usually followed by
F08XEF (DHGEQZ) which implements the
algorithm for computing generalized eigenvalues of a reduced pair of matrices.
The complex analogue of this routine is
F08WSF (ZGGHRD).