hpev#
Functions
-
void chpev(const char *jobz, const char *uplo, const INT n, c64 *restrict AP, f32 *restrict W, c64 *restrict Z, const INT ldz, c64 *restrict work, f32 *restrict rwork, INT *info)#
CHPEV computes all the eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix in packed storage.
Parameters
injobz= ‘N’: Compute eigenvalues only; = ‘V’: Compute eigenvalues and eigenvectors.
inuplo= ‘U’: Upper triangle of A is stored; = ‘L’: Lower triangle of A is stored.
innThe order of the matrix A. n >= 0.
inoutAPComplex array, dimension (n*(n+1)/2). On entry, the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: if uplo = ‘U’, AP(i + (j-1)*j/2) = A(i,j) for 0<=i<=j; if uplo = ‘L’, AP(i + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<n. On exit, AP is overwritten by values generated during the reduction to tridiagonal form.
outWSingle precision array, dimension (n). If info = 0, the eigenvalues in ascending order.
outZComplex array, dimension (ldz, n). If jobz = ‘V’, then if info = 0, Z contains the orthonormal eigenvectors of the matrix A, with the i-th column of Z holding the eigenvector associated with W(i). If jobz = ‘N’, then Z is not referenced.
inldzThe leading dimension of the array Z. ldz >= 1, and if jobz = ‘V’, ldz >= max(1, n).
outworkComplex array, dimension (max(1, 2*n-1)).
outrworkSingle precision array, dimension (max(1, 3*n-2)).
outinfo= 0: successful exit. < 0: if info = -i, the i-th argument had an illegal value. > 0: if info = i, the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero.
void chpev(
const char* jobz,
const char* uplo,
const INT n,
c64* restrict AP,
f32* restrict W,
c64* restrict Z,
const INT ldz,
c64* restrict work,
f32* restrict rwork,
INT* info
);
Functions
-
void zhpev(const char *jobz, const char *uplo, const INT n, c128 *restrict AP, f64 *restrict W, c128 *restrict Z, const INT ldz, c128 *restrict work, f64 *restrict rwork, INT *info)#
ZHPEV computes all the eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix in packed storage.
Parameters
injobz= ‘N’: Compute eigenvalues only; = ‘V’: Compute eigenvalues and eigenvectors.
inuplo= ‘U’: Upper triangle of A is stored; = ‘L’: Lower triangle of A is stored.
innThe order of the matrix A. n >= 0.
inoutAPComplex array, dimension (n*(n+1)/2). On entry, the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: if uplo = ‘U’, AP(i + (j-1)*j/2) = A(i,j) for 0<=i<=j; if uplo = ‘L’, AP(i + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<n. On exit, AP is overwritten by values generated during the reduction to tridiagonal form.
outWDouble precision array, dimension (n). If info = 0, the eigenvalues in ascending order.
outZComplex array, dimension (ldz, n). If jobz = ‘V’, then if info = 0, Z contains the orthonormal eigenvectors of the matrix A, with the i-th column of Z holding the eigenvector associated with W(i). If jobz = ‘N’, then Z is not referenced.
inldzThe leading dimension of the array Z. ldz >= 1, and if jobz = ‘V’, ldz >= max(1, n).
outworkComplex array, dimension (max(1, 2*n-1)).
outrworkDouble precision array, dimension (max(1, 3*n-2)).
outinfo= 0: successful exit. < 0: if info = -i, the i-th argument had an illegal value. > 0: if info = i, the algorithm failed to converge; i off-diagonal elements of an intermediate tridiagonal form did not converge to zero.
void zhpev(
const char* jobz,
const char* uplo,
const INT n,
c128* restrict AP,
f64* restrict W,
c128* restrict Z,
const INT ldz,
c128* restrict work,
f64* restrict rwork,
INT* info
);