hbev#
Functions
-
void chbev(const char *jobz, const char *uplo, const INT n, const INT kd, c64 *restrict AB, const INT ldab, f32 *restrict W, c64 *restrict Z, const INT ldz, c64 *restrict work, f32 *restrict rwork, INT *info)#
CHBEV computes all the eigenvalues and, optionally, eigenvectors of a complex Hermitian band matrix A.
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.
inkdThe number of superdiagonals of the matrix A if uplo = ‘U’, or the number of subdiagonals if uplo = ‘L’. kd >= 0.
inoutABComplex array, dimension (ldab, n). On entry, the upper or lower triangle of the Hermitian band matrix A, stored in the first kd+1 rows of the array. The j-th column of A is stored in the j-th column of the array AB as follows: if uplo = ‘U’, AB(kd+1+i-j,j) = A(i,j) for max(1,j-kd)<=i<=j; if uplo = ‘L’, AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+kd). On exit, AB is overwritten by values generated during the reduction to tridiagonal form. If uplo = ‘U’, the first superdiagonal and the diagonal of the tridiagonal matrix T are returned in rows kd and kd+1 of AB, and if uplo = ‘L’, the diagonal and first subdiagonal of T are returned in the first two rows of AB.
inldabThe leading dimension of the array AB. ldab >= kd+1.
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 (n).
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 chbev(
const char* jobz,
const char* uplo,
const INT n,
const INT kd,
c64* restrict AB,
const INT ldab,
f32* restrict W,
c64* restrict Z,
const INT ldz,
c64* restrict work,
f32* restrict rwork,
INT* info
);
Functions
-
void zhbev(const char *jobz, const char *uplo, const INT n, const INT kd, c128 *restrict AB, const INT ldab, f64 *restrict W, c128 *restrict Z, const INT ldz, c128 *restrict work, f64 *restrict rwork, INT *info)#
ZHBEV computes all the eigenvalues and, optionally, eigenvectors of a complex Hermitian band matrix A.
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.
inkdThe number of superdiagonals of the matrix A if uplo = ‘U’, or the number of subdiagonals if uplo = ‘L’. kd >= 0.
inoutABComplex array, dimension (ldab, n). On entry, the upper or lower triangle of the Hermitian band matrix A, stored in the first kd+1 rows of the array. The j-th column of A is stored in the j-th column of the array AB as follows: if uplo = ‘U’, AB(kd+1+i-j,j) = A(i,j) for max(1,j-kd)<=i<=j; if uplo = ‘L’, AB(1+i-j,j) = A(i,j) for j<=i<=min(n,j+kd). On exit, AB is overwritten by values generated during the reduction to tridiagonal form. If uplo = ‘U’, the first superdiagonal and the diagonal of the tridiagonal matrix T are returned in rows kd and kd+1 of AB, and if uplo = ‘L’, the diagonal and first subdiagonal of T are returned in the first two rows of AB.
inldabThe leading dimension of the array AB. ldab >= kd+1.
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 (n).
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 zhbev(
const char* jobz,
const char* uplo,
const INT n,
const INT kd,
c128* restrict AB,
const INT ldab,
f64* restrict W,
c128* restrict Z,
const INT ldz,
c128* restrict work,
f64* restrict rwork,
INT* info
);