NAG Library Routine Document
F08SSF (ZHEGST)
1 Purpose
F08SSF (ZHEGST) reduces a complex Hermitian-definite generalized eigenproblem
,
or
to the standard form
, where
is a complex Hermitian matrix and
has been factorized by
F07FRF (ZPOTRF).
2 Specification
INTEGER |
ITYPE, N, LDA, LDB, INFO |
COMPLEX (KIND=nag_wp) |
A(LDA,*), B(LDB,*) |
CHARACTER(1) |
UPLO |
|
The routine may be called by its
LAPACK
name zhegst.
3 Description
To reduce the complex Hermitian-definite generalized eigenproblem
,
or
to the standard form
, F08SSF (ZHEGST) must be preceded by a call to
F07FRF (ZPOTRF) which computes the Cholesky factorization of
;
must be positive definite.
The different problem types are specified by the parameter
ITYPE, as indicated in the table below. The table shows how
is computed by the routine, and also how the eigenvectors
of the original problem can be recovered from the eigenvectors of the standard form.
ITYPE |
Problem |
UPLO |
|
|
|
|
|
'U'
'L' |
|
|
|
|
|
'U'
'L' |
|
|
|
|
|
'U'
'L' |
|
|
|
4 References
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
5 Parameters
- 1: – INTEGERInput
-
On entry: indicates how the standard form is computed.
-
- if , ;
- if , .
- or
-
- if , ;
- if , .
Constraint:
, or .
- 2: – CHARACTER(1)Input
-
On entry: indicates whether the upper or lower triangular part of
is stored and how
has been factorized.
- The upper triangular part of is stored and .
- The lower triangular part of is stored and .
Constraint:
or .
- 3: – INTEGERInput
-
On entry: , the order of the matrices and .
Constraint:
.
- 4: – COMPLEX (KIND=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
A
must be at least
.
On entry: the
by
Hermitian matrix
.
- If , the upper triangular part of must be stored and the elements of the array below the diagonal are not referenced.
- If , the lower triangular part of must be stored and the elements of the array above the diagonal are not referenced.
On exit: the upper or lower triangle of
A is overwritten by the corresponding upper or lower triangle of
as specified by
ITYPE and
UPLO.
- 5: – INTEGERInput
-
On entry: the first dimension of the array
A as declared in the (sub)program from which F08SSF (ZHEGST) is called.
Constraint:
.
- 6: – COMPLEX (KIND=nag_wp) arrayInput
-
Note: the second dimension of the array
B
must be at least
.
On entry: the Cholesky factor of
as specified by
UPLO and returned by
F07FRF (ZPOTRF).
- 7: – INTEGERInput
-
On entry: the first dimension of the array
B as declared in the (sub)program from which F08SSF (ZHEGST) is called.
Constraint:
.
- 8: – INTEGEROutput
On exit:
unless the routine detects an error (see
Section 6).
6 Error Indicators and Warnings
-
If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
7 Accuracy
Forming the reduced matrix
is a stable procedure. However it involves implicit multiplication by
(if
) or
(if
or
). When F08SSF (ZHEGST) is used as a step in the computation of eigenvalues and eigenvectors of the original problem, there may be a significant loss of accuracy if
is ill-conditioned with respect to inversion.
See the document for
F08SNF (ZHEGV) for further details.
8 Parallelism and Performance
F08SSF (ZHEGST) is not threaded by NAG in any implementation.
F08SSF (ZHEGST) makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
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 total number of real floating-point operations is approximately .
The real analogue of this routine is
F08SEF (DSYGST).
10 Example
This example computes all the eigenvalues of
, where
and
Here
is Hermitian positive definite and must first be factorized by
F07FRF (ZPOTRF). The program calls F08SSF (ZHEGST) to reduce the problem to the standard form
; then
F08FSF (ZHETRD) to reduce
to tridiagonal form, and
F08JFF (DSTERF) to compute the eigenvalues.
10.1 Program Text
Program Text (f08ssfe.f90)
10.2 Program Data
Program Data (f08ssfe.d)
10.3 Program Results
Program Results (f08ssfe.r)