hegvx#
Functions
-
void chegvx(const INT itype, const char *jobz, const char *range, const char *uplo, const INT n, c64 *restrict A, const INT lda, c64 *restrict B, const INT ldb, const f32 vl, const f32 vu, const INT il, const INT iu, const f32 abstol, INT *m, f32 *restrict W, c64 *restrict Z, const INT ldz, c64 *restrict work, const INT lwork, f32 *restrict rwork, INT *restrict iwork, INT *restrict ifail, INT *info)#
CHEGVX computes selected eigenvalues, and optionally, eigenvectors of a complex generalized Hermitian-definite eigenproblem, of the form A*x=(lambda)*B*x, A*B*x=(lambda)*x, or B*A*x=(lambda)*x.
Here A and B are assumed to be Hermitian 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.
Parameters
initype= 1: A*x = lambda*B*x; = 2: A*B*x = lambda*x; = 3: B*A*x = lambda*x
injobz= ‘N’: eigenvalues only; = ‘V’: eigenvalues and eigenvectors
inrange= ‘A’: all; = ‘V’: in (vl,vu]; = ‘I’: il-th through iu-th
inuplo= ‘U’: upper triangles stored; = ‘L’: lower triangles stored
innThe order of matrices A and B. n >= 0.
inoutAOn entry, Hermitian matrix A. On exit, destroyed.
inldaLeading dimension of A. lda >= max(1, n).
inoutBOn entry, Hermitian positive definite B. On exit, Cholesky factor.
inldbLeading dimension of B. ldb >= max(1, n).
invlLower bound of interval (if range=’V’).
invuUpper bound of interval (if range=’V’).
inilIndex of smallest eigenvalue (if range=’I’, 0-based).
iniuIndex of largest eigenvalue (if range=’I’, 0-based).
inabstolAbsolute error tolerance for eigenvalues.
outmTotal number of eigenvalues found.
outWSelected eigenvalues in ascending order.
outZEigenvectors if jobz=’V’.
inldzLeading dimension of Z. ldz >= 1, and if jobz=’V’, ldz >= n.
outworkComplex workspace array, dimension (max(1, lwork)).
inlworkLength of work. lwork >= max(1, 2*n). If -1, workspace query.
outrworkReal workspace array, dimension (7*n).
outiworkInteger workspace array, dimension (5*n).
outifailIndices of eigenvectors that failed to converge.
outinfo= 0: success; < 0: illegal argument; > 0: CPOTRF/CHEEVX error.
void chegvx(
const INT itype,
const char* jobz,
const char* range,
const char* uplo,
const INT n,
c64* restrict A,
const INT lda,
c64* restrict B,
const INT ldb,
const f32 vl,
const f32 vu,
const INT il,
const INT iu,
const f32 abstol,
INT* m,
f32* restrict W,
c64* restrict Z,
const INT ldz,
c64* restrict work,
const INT lwork,
f32* restrict rwork,
INT* restrict iwork,
INT* restrict ifail,
INT* info
);
Functions
-
void zhegvx(const INT itype, const char *jobz, const char *range, const char *uplo, const INT n, c128 *restrict A, const INT lda, c128 *restrict B, const INT ldb, const f64 vl, const f64 vu, const INT il, const INT iu, const f64 abstol, INT *m, f64 *restrict W, c128 *restrict Z, const INT ldz, c128 *restrict work, const INT lwork, f64 *restrict rwork, INT *restrict iwork, INT *restrict ifail, INT *info)#
ZHEGVX computes selected eigenvalues, and optionally, eigenvectors of a complex generalized Hermitian-definite eigenproblem, of the form A*x=(lambda)*B*x, A*B*x=(lambda)*x, or B*A*x=(lambda)*x.
Here A and B are assumed to be Hermitian 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.
Parameters
initype= 1: A*x = lambda*B*x; = 2: A*B*x = lambda*x; = 3: B*A*x = lambda*x
injobz= ‘N’: eigenvalues only; = ‘V’: eigenvalues and eigenvectors
inrange= ‘A’: all; = ‘V’: in (vl,vu]; = ‘I’: il-th through iu-th
inuplo= ‘U’: upper triangles stored; = ‘L’: lower triangles stored
innThe order of matrices A and B. n >= 0.
inoutAOn entry, Hermitian matrix A. On exit, destroyed.
inldaLeading dimension of A. lda >= max(1, n).
inoutBOn entry, Hermitian positive definite B. On exit, Cholesky factor.
inldbLeading dimension of B. ldb >= max(1, n).
invlLower bound of interval (if range=’V’).
invuUpper bound of interval (if range=’V’).
inilIndex of smallest eigenvalue (if range=’I’, 0-based).
iniuIndex of largest eigenvalue (if range=’I’, 0-based).
inabstolAbsolute error tolerance for eigenvalues.
outmTotal number of eigenvalues found.
outWSelected eigenvalues in ascending order.
outZEigenvectors if jobz=’V’.
inldzLeading dimension of Z. ldz >= 1, and if jobz=’V’, ldz >= n.
outworkComplex workspace array, dimension (max(1, lwork)).
inlworkLength of work. lwork >= max(1, 2*n). If -1, workspace query.
outrworkReal workspace array, dimension (7*n).
outiworkInteger workspace array, dimension (5*n).
outifailIndices of eigenvectors that failed to converge.
outinfo= 0: success; < 0: illegal argument; > 0: ZPOTRF/ZHEEVX error.
void zhegvx(
const INT itype,
const char* jobz,
const char* range,
const char* uplo,
const INT n,
c128* restrict A,
const INT lda,
c128* restrict B,
const INT ldb,
const f64 vl,
const f64 vu,
const INT il,
const INT iu,
const f64 abstol,
INT* m,
f64* restrict W,
c128* restrict Z,
const INT ldz,
c128* restrict work,
const INT lwork,
f64* restrict rwork,
INT* restrict iwork,
INT* restrict ifail,
INT* info
);