syevr#
Functions
-
void ssyevr(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, INT *restrict isuppz, f32 *restrict work, const INT lwork, INT *restrict iwork, const INT liwork, INT *info)#
SSYEVR 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.
SSYEVR first reduces the matrix A to tridiagonal form T with a call to SSYTRD. Then, whenever possible, SSYEVR calls SSTEMR to compute the eigenspectrum using Relatively Robust Representations.
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.
outisuppzSupport of eigenvectors in Z. Dimension (2*max(1,M)).
outworkWorkspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.
inlworkThe dimension of work. If N <= 1, LWORK >= 1, else LWORK >= 26*N. If lwork = -1, workspace query only.
outiworkInteger workspace array, dimension (max(1, liwork)). On exit, if info = 0, iwork[0] returns the optimal liwork.
inliworkThe dimension of iwork. If N <= 1, LIWORK >= 1, else LIWORK >= 10*N. If liwork = -1, workspace query only.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: Internal error
void ssyevr(
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,
INT* restrict isuppz,
f32* restrict work,
const INT lwork,
INT* restrict iwork,
const INT liwork,
INT* info
);
Functions
-
void dsyevr(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, INT *restrict isuppz, f64 *restrict work, const INT lwork, INT *restrict iwork, const INT liwork, INT *info)#
DSYEVR 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.
DSYEVR first reduces the matrix A to tridiagonal form T with a call to DSYTRD. Then, whenever possible, DSYEVR calls DSTEMR to compute the eigenspectrum using Relatively Robust Representations.
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.
outisuppzSupport of eigenvectors in Z. Dimension (2*max(1,M)).
outworkWorkspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.
inlworkThe dimension of work. If N <= 1, LWORK >= 1, else LWORK >= 26*N. If lwork = -1, workspace query only.
outiworkInteger workspace array, dimension (max(1, liwork)). On exit, if info = 0, iwork[0] returns the optimal liwork.
inliworkThe dimension of iwork. If N <= 1, LIWORK >= 1, else LIWORK >= 10*N. If liwork = -1, workspace query only.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: Internal error
void dsyevr(
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,
INT* restrict isuppz,
f64* restrict work,
const INT lwork,
INT* restrict iwork,
const INT liwork,
INT* info
);