syevx#
Functions
-
void ssyevx(const char *jobz, const char *range, const char *uplo, const INT n, f32 *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, f32 *restrict Z, const INT ldz, f32 *restrict work, const INT lwork, INT *restrict iwork, INT *restrict ifail, INT *info)#
SSYEVX computes selected eigenvalues and, optionally, eigenvectors of a real symmetric 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 (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.
inoutAOn entry, the symmetric matrix A. On exit, the triangle is destroyed.
inldaThe leading dimension of A. lda >= max(1, n).
invlIf RANGE=’V’, lower bound of interval. Not referenced otherwise.
invuIf RANGE=’V’, upper bound of interval. VL < VU. Not referenced otherwise.
inilIf RANGE=’I’, index of smallest eigenvalue (0-based). Not referenced otherwise.
iniuIf RANGE=’I’, index of largest eigenvalue (0-based). Not referenced otherwise.
inabstolAbsolute error tolerance for eigenvalues.
outmThe total number of eigenvalues found.
outWArray of dimension (n). The first M elements contain the selected eigenvalues in ascending order.
outZIf 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.
outworkWorkspace 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 8*N. If lwork = -1, workspace query only.
outiworkInteger workspace array, dimension (5*N).
outifailIf 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.
void ssyevx(
const char* jobz,
const char* range,
const char* uplo,
const INT n,
f32* 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,
f32* restrict Z,
const INT ldz,
f32* restrict work,
const INT lwork,
INT* restrict iwork,
INT* restrict ifail,
INT* info
);
Functions
-
void dsyevx(const char *jobz, const char *range, const char *uplo, const INT n, f64 *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, f64 *restrict Z, const INT ldz, f64 *restrict work, const INT lwork, INT *restrict iwork, INT *restrict ifail, INT *info)#
DSYEVX computes selected eigenvalues and, optionally, eigenvectors of a real symmetric 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 (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.
inoutAOn entry, the symmetric matrix A. On exit, the triangle is destroyed.
inldaThe leading dimension of A. lda >= max(1, n).
invlIf RANGE=’V’, lower bound of interval. Not referenced otherwise.
invuIf RANGE=’V’, upper bound of interval. VL < VU. Not referenced otherwise.
inilIf RANGE=’I’, index of smallest eigenvalue (0-based). Not referenced otherwise.
iniuIf RANGE=’I’, index of largest eigenvalue (0-based). Not referenced otherwise.
inabstolAbsolute error tolerance for eigenvalues.
outmThe total number of eigenvalues found.
outWArray of dimension (n). The first M elements contain the selected eigenvalues in ascending order.
outZIf 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.
outworkWorkspace 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 8*N. If lwork = -1, workspace query only.
outiworkInteger workspace array, dimension (5*N).
outifailIf 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.
void dsyevx(
const char* jobz,
const char* range,
const char* uplo,
const INT n,
f64* 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,
f64* restrict Z,
const INT ldz,
f64* restrict work,
const INT lwork,
INT* restrict iwork,
INT* restrict ifail,
INT* info
);