nag_dgghrd (f08wec) is the third step in the solution of the real generalized eigenvalue problem
The (optional) first step balances the two matrices using
nag_dggbal (f08whc). In the second step, matrix
is reduced to upper triangular form using the
factorization function
nag_dgeqrf (f08aec) and this orthogonal transformation
is applied to matrix
by calling
nag_dormqr (f08agc).
nag_dgghrd (f08wec) 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
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_ENUM_INT_2
On entry, , and .
Constraint: if or , ;
if , .
On entry, , and .
Constraint: if or , ;
if , .
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
On entry, and .
Constraint: .
- NE_INT_3
On entry, , and .
Constraint: if , ;
if , and .
- NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
The reduction to the generalized Hessenberg form is implemented using orthogonal transformations which are backward stable.
This function is usually followed by
nag_dhgeqz (f08xec) which implements the
algorithm for computing generalized eigenvalues of a reduced pair of matrices.
The complex analogue of this function is
nag_zgghrd (f08wsc).