dspgv - compute all the eigenvalues and, optionally, the eigenvectors of a real generalized symmetric-definite eigenproblem, of the form A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x
SUBROUTINE DSPGV( ITYPE, JOBZ, UPLO, N, A, B, W, Z, LDZ, WORK, INFO) CHARACTER * 1 JOBZ, UPLO INTEGER ITYPE, N, LDZ, INFO DOUBLE PRECISION A(*), B(*), W(*), Z(LDZ,*), WORK(*)
SUBROUTINE DSPGV_64( ITYPE, JOBZ, UPLO, N, A, B, W, Z, LDZ, WORK, * INFO) CHARACTER * 1 JOBZ, UPLO INTEGER*8 ITYPE, N, LDZ, INFO DOUBLE PRECISION A(*), B(*), W(*), Z(LDZ,*), WORK(*)
SUBROUTINE SPGV( ITYPE, JOBZ, UPLO, [N], A, B, W, Z, [LDZ], [WORK], * [INFO]) CHARACTER(LEN=1) :: JOBZ, UPLO INTEGER :: ITYPE, N, LDZ, INFO REAL(8), DIMENSION(:) :: A, B, W, WORK REAL(8), DIMENSION(:,:) :: Z
SUBROUTINE SPGV_64( ITYPE, JOBZ, UPLO, [N], A, B, W, Z, [LDZ], [WORK], * [INFO]) CHARACTER(LEN=1) :: JOBZ, UPLO INTEGER(8) :: ITYPE, N, LDZ, INFO REAL(8), DIMENSION(:) :: A, B, W, WORK REAL(8), DIMENSION(:,:) :: Z
#include <sunperf.h>
void dspgv(int itype, char jobz, char uplo, int n, double *a, double *b, double *w, double *z, int ldz, int *info);
void dspgv_64(long itype, char jobz, char uplo, long n, double *a, double *b, double *w, double *z, long ldz, long *info);
dspgv computes all the eigenvalues and, optionally, the eigenvectors of a real generalized symmetric-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 symmetric, stored in packed format, and B is also positive definite.
= 1: A*x = (lambda)*B*x
= 2: A*B*x = (lambda)*x
= 3: B*A*x = (lambda)*x
= 'N': Compute eigenvalues only;
= 'V': Compute eigenvalues and eigenvectors.
= 'U': Upper triangles of A and B are stored;
= 'L': Lower triangles of A and B are stored.
A(i,j)
for 1 < =i < =j;
if UPLO = 'L', A(i + (j-1)*(2*n-j)/2) = A(i,j)
for j < =i < =n.
On exit, the contents of A are destroyed.
B(i,j)
for 1 < =i < =j;
if UPLO = 'L', B(i + (j-1)*(2*n-j)/2) = B(i,j)
for j < =i < =n.
On exit, the triangular factor U or L from the Cholesky factorization B = U**T*U or B = L*L**T, in the same storage format as B.
dimension(3*N)
= 0: successful exit
< 0: if INFO = -i, the i-th argument had an illegal value
> 0: SPPTRF or SSPEV returned an error code:
< = N: if INFO = i, SSPEV failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero. > N: if INFO = n + i, for 1 < = i < = n, then the leading minor of order i of B is not positive definite. The factorization of B could not be completed and no eigenvalues or eigenvectors were computed.