NAME

chpgvx - compute selected eigenvalues and, optionally, eigenvectors of a complex generalized Hermitian-definite eigenproblem, of the form A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x


SYNOPSIS

  SUBROUTINE CHPGVX( ITYPE, JOBZ, RANGE, UPLO, N, AP, BP, VL, VU, IL, 
 *      IU, ABSTOL, M, W, Z, LDZ, WORK, RWORK, IWORK, IFAIL, INFO)
  CHARACTER * 1 JOBZ, RANGE, UPLO
  COMPLEX AP(*), BP(*), Z(LDZ,*), WORK(*)
  INTEGER ITYPE, N, IL, IU, M, LDZ, INFO
  INTEGER IWORK(*), IFAIL(*)
  REAL VL, VU, ABSTOL
  REAL W(*), RWORK(*)
  SUBROUTINE CHPGVX_64( ITYPE, JOBZ, RANGE, UPLO, N, AP, BP, VL, VU, 
 *      IL, IU, ABSTOL, M, W, Z, LDZ, WORK, RWORK, IWORK, IFAIL, INFO)
  CHARACTER * 1 JOBZ, RANGE, UPLO
  COMPLEX AP(*), BP(*), Z(LDZ,*), WORK(*)
  INTEGER*8 ITYPE, N, IL, IU, M, LDZ, INFO
  INTEGER*8 IWORK(*), IFAIL(*)
  REAL VL, VU, ABSTOL
  REAL W(*), RWORK(*)

F95 INTERFACE

  SUBROUTINE HPGVX( ITYPE, JOBZ, RANGE, UPLO, [N], AP, BP, VL, VU, IL, 
 *       IU, ABSTOL, M, W, Z, [LDZ], [WORK], [RWORK], [IWORK], IFAIL, 
 *       [INFO])
  CHARACTER(LEN=1) :: JOBZ, RANGE, UPLO
  COMPLEX, DIMENSION(:) :: AP, BP, WORK
  COMPLEX, DIMENSION(:,:) :: Z
  INTEGER :: ITYPE, N, IL, IU, M, LDZ, INFO
  INTEGER, DIMENSION(:) :: IWORK, IFAIL
  REAL :: VL, VU, ABSTOL
  REAL, DIMENSION(:) :: W, RWORK
  SUBROUTINE HPGVX_64( ITYPE, JOBZ, RANGE, UPLO, [N], AP, BP, VL, VU, 
 *       IL, IU, ABSTOL, M, W, Z, [LDZ], [WORK], [RWORK], [IWORK], IFAIL, 
 *       [INFO])
  CHARACTER(LEN=1) :: JOBZ, RANGE, UPLO
  COMPLEX, DIMENSION(:) :: AP, BP, WORK
  COMPLEX, DIMENSION(:,:) :: Z
  INTEGER(8) :: ITYPE, N, IL, IU, M, LDZ, INFO
  INTEGER(8), DIMENSION(:) :: IWORK, IFAIL
  REAL :: VL, VU, ABSTOL
  REAL, DIMENSION(:) :: W, RWORK

C INTERFACE

#include <sunperf.h>

void chpgvx(int itype, char jobz, char range, char uplo, int n, complex *ap, complex *bp, float vl, float vu, int il, int iu, float abstol, int *m, float *w, complex *z, int ldz, int *ifail, int *info);

void chpgvx_64(long itype, char jobz, char range, char uplo, long n, complex *ap, complex *bp, float vl, float vu, long il, long iu, float abstol, long *m, float *w, complex *z, long ldz, long *ifail, long *info);


PURPOSE

chpgvx computes selected eigenvalues and, optionally, eigenvectors of a complex generalized Hermitian-definite eigenproblem, of the form A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are assumed to be Hermitian, stored in packed format, and B is also positive definite. Eigenvalues and eigenvectors can be selected by specifying either a range of values or a range of indices for the desired eigenvalues.


ARGUMENTS


FURTHER DETAILS

Based on contributions by

   Mark Fahey, Department of Mathematics, Univ. of Kentucky, USA