The routine may be called by the names f08ssf, nagf_lapackeig_zhegst or its LAPACK name zhegst.
To reduce the complex Hermitian-definite generalized eigenproblem , or to the standard form , f08ssf must be preceded by a call to f07frf which computes the Cholesky factorization of ; must be positive definite.
The different problem types are specified by the argument 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.
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
1: – IntegerInput
On entry: indicates how the standard form is computed.
if , ;
if , .
if , ;
if , .
, 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 .
3: – IntegerInput
On entry: , the order of the matrices and .
4: – Complex (Kind=nag_wp) arrayInput/Output
Note: the second dimension of the array a
must be at least
On entry: the 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 is called.
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.
7: – IntegerInput
On entry: the first dimension of the array b as declared in the (sub)program from which f08ssf is called.
8: – IntegerOutput
On exit: unless the routine detects an error (see Section 6).
6Error Indicators and Warnings
If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
Forming the reduced matrix is a stable procedure. However it involves implicit multiplication by (if ) or (if or ). When f08ssf 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 for further details.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
f08ssf 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 .
This example computes all the eigenvalues of , where
Here is Hermitian positive definite and must first be factorized by f07frf. The program calls f08ssf to reduce the problem to the standard form ; then f08fsf to reduce to tridiagonal form, and f08jff to compute the eigenvalues.