NAME

chpgv - compute all the eigenvalues and, optionally, the 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 CHPGV( ITYPE, JOBZ, UPLO, N, A, B, W, Z, LDZ, WORK, 
 *      WORK2, INFO)
  CHARACTER * 1 JOBZ, UPLO
  COMPLEX A(*), B(*), Z(LDZ,*), WORK(*)
  INTEGER ITYPE, N, LDZ, INFO
  REAL W(*), WORK2(*)
  SUBROUTINE CHPGV_64( ITYPE, JOBZ, UPLO, N, A, B, W, Z, LDZ, WORK, 
 *      WORK2, INFO)
  CHARACTER * 1 JOBZ, UPLO
  COMPLEX A(*), B(*), Z(LDZ,*), WORK(*)
  INTEGER*8 ITYPE, N, LDZ, INFO
  REAL W(*), WORK2(*)

F95 INTERFACE

  SUBROUTINE HPGV( ITYPE, JOBZ, UPLO, [N], A, B, W, Z, [LDZ], [WORK], 
 *       [WORK2], [INFO])
  CHARACTER(LEN=1) :: JOBZ, UPLO
  COMPLEX, DIMENSION(:) :: A, B, WORK
  COMPLEX, DIMENSION(:,:) :: Z
  INTEGER :: ITYPE, N, LDZ, INFO
  REAL, DIMENSION(:) :: W, WORK2
  SUBROUTINE HPGV_64( ITYPE, JOBZ, UPLO, [N], A, B, W, Z, [LDZ], [WORK], 
 *       [WORK2], [INFO])
  CHARACTER(LEN=1) :: JOBZ, UPLO
  COMPLEX, DIMENSION(:) :: A, B, WORK
  COMPLEX, DIMENSION(:,:) :: Z
  INTEGER(8) :: ITYPE, N, LDZ, INFO
  REAL, DIMENSION(:) :: W, WORK2

C INTERFACE

#include <sunperf.h>

void chpgv(int itype, char jobz, char uplo, int n, complex *a, complex *b, float *w, complex *z, int ldz, int *info);

void chpgv_64(long itype, char jobz, char uplo, long n, complex *a, complex *b, float *w, complex *z, long ldz, long *info);


PURPOSE

chpgv computes all the eigenvalues and, optionally, the 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.


ARGUMENTS