heevx#
Functions
-
void cheevx(const char *jobz, const char *range, const char *uplo, const INT n, c64 *restrict A, const INT lda, 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)#
CHEEVX computes selected eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix A.
Eigenvalues and eigenvectors can be selected by specifying either a range of values or a range of indices for the desired eigenvalues.
Parameters
injobz= ‘N’: Compute eigenvalues only; = ‘V’: Compute eigenvalues and eigenvectors.
inrange= ‘A’: all eigenvalues will be found. = ‘V’: all eigenvalues in the half-open interval (VL,VU] will be found. = ‘I’: the IL-th through IU-th eigenvalues will be found.
inuplo= ‘U’: Upper triangle of A is stored; = ‘L’: Lower triangle of A is stored.
innThe order of the matrix A. n >= 0.
inoutASingle complex array, dimension (LDA, N). On entry, the Hermitian matrix A. If UPLO = ‘U’, the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A. If UPLO = ‘L’, the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A. On exit, the lower triangle (if UPLO=’L’) or the upper triangle (if UPLO=’U’) of A, including the diagonal, is destroyed.
inldaThe leading dimension of A. lda >= max(1, n).
invlIf RANGE=’V’, the lower bound of the interval to be searched for eigenvalues. VL < VU. Not referenced if RANGE = ‘A’ or ‘I’.
invuIf RANGE=’V’, the upper bound of the interval to be searched for eigenvalues. VL < VU. Not referenced if RANGE = ‘A’ or ‘I’.
inilIf RANGE=’I’, the index of the smallest eigenvalue to be returned (0-based). Not referenced if RANGE = ‘A’ or ‘V’.
iniuIf RANGE=’I’, the index of the largest eigenvalue to be returned (0-based). Not referenced if RANGE = ‘A’ or ‘V’.
inabstolThe absolute error tolerance for the eigenvalues.
outmThe total number of eigenvalues found. 0 <= M <= N.
outWSingle precision array, dimension (N). On normal exit, the first M elements contain the selected eigenvalues in ascending order.
outZSingle complex array, dimension (LDZ, max(1,M)). If JOBZ = ‘V’, the first M columns contain the orthonormal eigenvectors. If JOBZ = ‘N’, Z is not referenced.
inldzLeading dimension of Z. LDZ >= 1, and if JOBZ = ‘V’, LDZ >= N.
outworkSingle complex workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.
inlworkThe dimension of work. LWORK >= 1 when N <= 1, otherwise 2*N. For optimal efficiency, LWORK >= (NB+1)*N. If lwork = -1, workspace query only.
outrworkSingle precision workspace array, dimension (7*N).
outiworkInteger workspace array, dimension (5*N).
outifailInteger array, dimension (N). If JOBZ = ‘V’, indices of eigenvectors that failed to converge. If JOBZ = ‘N’, IFAIL is not referenced.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: if info = i, then i eigenvectors failed to converge. Their indices are stored in array IFAIL.
void cheevx(
const char* jobz,
const char* range,
const char* uplo,
const INT n,
c64* restrict A,
const INT lda,
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 zheevx(const char *jobz, const char *range, const char *uplo, const INT n, c128 *restrict A, const INT lda, 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)#
ZHEEVX computes selected eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix A.
Eigenvalues and eigenvectors can be selected by specifying either a range of values or a range of indices for the desired eigenvalues.
Parameters
injobz= ‘N’: Compute eigenvalues only; = ‘V’: Compute eigenvalues and eigenvectors.
inrange= ‘A’: all eigenvalues will be found. = ‘V’: all eigenvalues in the half-open interval (VL,VU] will be found. = ‘I’: the IL-th through IU-th eigenvalues will be found.
inuplo= ‘U’: Upper triangle of A is stored; = ‘L’: Lower triangle of A is stored.
innThe order of the matrix A. n >= 0.
inoutADouble complex array, dimension (LDA, N). On entry, the Hermitian matrix A. If UPLO = ‘U’, the leading N-by-N upper triangular part of A contains the upper triangular part of the matrix A. If UPLO = ‘L’, the leading N-by-N lower triangular part of A contains the lower triangular part of the matrix A. On exit, the lower triangle (if UPLO=’L’) or the upper triangle (if UPLO=’U’) of A, including the diagonal, is destroyed.
inldaThe leading dimension of A. lda >= max(1, n).
invlIf RANGE=’V’, the lower bound of the interval to be searched for eigenvalues. VL < VU. Not referenced if RANGE = ‘A’ or ‘I’.
invuIf RANGE=’V’, the upper bound of the interval to be searched for eigenvalues. VL < VU. Not referenced if RANGE = ‘A’ or ‘I’.
inilIf RANGE=’I’, the index of the smallest eigenvalue to be returned (0-based). Not referenced if RANGE = ‘A’ or ‘V’.
iniuIf RANGE=’I’, the index of the largest eigenvalue to be returned (0-based). Not referenced if RANGE = ‘A’ or ‘V’.
inabstolThe absolute error tolerance for the eigenvalues.
outmThe total number of eigenvalues found. 0 <= M <= N.
outWDouble precision array, dimension (N). On normal exit, the first M elements contain the selected eigenvalues in ascending order.
outZDouble complex array, dimension (LDZ, max(1,M)). If JOBZ = ‘V’, the first M columns contain the orthonormal eigenvectors. If JOBZ = ‘N’, Z is not referenced.
inldzLeading dimension of Z. LDZ >= 1, and if JOBZ = ‘V’, LDZ >= N.
outworkDouble complex workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.
inlworkThe dimension of work. LWORK >= 1 when N <= 1, otherwise 2*N. For optimal efficiency, LWORK >= (NB+1)*N. If lwork = -1, workspace query only.
outrworkDouble precision workspace array, dimension (7*N).
outiworkInteger workspace array, dimension (5*N).
outifailInteger array, dimension (N). If JOBZ = ‘V’, indices of eigenvectors that failed to converge. If JOBZ = ‘N’, IFAIL is not referenced.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: if info = i, then i eigenvectors failed to converge. Their indices are stored in array IFAIL.
void zheevx(
const char* jobz,
const char* range,
const char* uplo,
const INT n,
c128* restrict A,
const INT lda,
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
);