hbgv#
Functions
-
void chbgv(const char *jobz, const char *uplo, const INT n, const INT ka, const INT kb, c64 *restrict AB, const INT ldab, c64 *restrict BB, const INT ldbb, f32 *restrict W, c64 *restrict Z, const INT ldz, c64 *restrict work, f32 *restrict rwork, INT *info)#
CHBGV computes all the eigenvalues, and optionally, the eigenvectors of a complex generalized Hermitian-definite banded eigenproblem, of the form A*x=(lambda)*B*x.
Here A and B are assumed to be Hermitian and banded, and B is also positive definite.
Parameters
injobz= ‘N’: Compute eigenvalues only; = ‘V’: Compute eigenvalues and eigenvectors.
inuplo= ‘U’: Upper triangles of A and B are stored; = ‘L’: Lower triangles of A and B are stored.
innThe order of the matrices A and B. n >= 0.
inkaThe number of superdiagonals of the matrix A if uplo = ‘U’, or the number of subdiagonals if uplo = ‘L’. ka >= 0.
inkbThe number of superdiagonals of the matrix B if uplo = ‘U’, or the number of subdiagonals if uplo = ‘L’. kb >= 0.
inoutABComplex array, dimension (ldab, n). On entry, the upper or lower triangle of the Hermitian band matrix A, stored in the first ka+1 rows. On exit, the contents of AB are destroyed.
inldabThe leading dimension of AB. ldab >= ka+1.
inoutBBComplex array, dimension (ldbb, n). On entry, the upper or lower triangle of the Hermitian band matrix B, stored in the first kb+1 rows. On exit, the factor S from the split Cholesky factorization B = S**H*S, as returned by CPBSTF.
inldbbThe leading dimension of BB. ldbb >= kb+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 matrix Z of eigenvectors. If jobz = ‘N’, Z is not referenced.
inldzThe leading dimension of Z. ldz >= 1, and if jobz = ‘V’, ldz >= n.
outworkComplex array, dimension (n).
outrworkSingle precision array, dimension (3*n).
outinfo= 0: successful exit < 0: if info = -i, the i-th argument had an illegal value > 0: if info = i, and i is: <= n: the algorithm failed to converge; > n: if info = n + i, for 1 <= i <= n, then CPBSTF returned info = i: B is not positive definite.
void chbgv(
const char* jobz,
const char* uplo,
const INT n,
const INT ka,
const INT kb,
c64* restrict AB,
const INT ldab,
c64* restrict BB,
const INT ldbb,
f32* restrict W,
c64* restrict Z,
const INT ldz,
c64* restrict work,
f32* restrict rwork,
INT* info
);
Functions
-
void zhbgv(const char *jobz, const char *uplo, const INT n, const INT ka, const INT kb, c128 *restrict AB, const INT ldab, c128 *restrict BB, const INT ldbb, f64 *restrict W, c128 *restrict Z, const INT ldz, c128 *restrict work, f64 *restrict rwork, INT *info)#
ZHBGV computes all the eigenvalues, and optionally, the eigenvectors of a complex generalized Hermitian-definite banded eigenproblem, of the form A*x=(lambda)*B*x.
Here A and B are assumed to be Hermitian and banded, and B is also positive definite.
Parameters
injobz= ‘N’: Compute eigenvalues only; = ‘V’: Compute eigenvalues and eigenvectors.
inuplo= ‘U’: Upper triangles of A and B are stored; = ‘L’: Lower triangles of A and B are stored.
innThe order of the matrices A and B. n >= 0.
inkaThe number of superdiagonals of the matrix A if uplo = ‘U’, or the number of subdiagonals if uplo = ‘L’. ka >= 0.
inkbThe number of superdiagonals of the matrix B if uplo = ‘U’, or the number of subdiagonals if uplo = ‘L’. kb >= 0.
inoutABComplex array, dimension (ldab, n). On entry, the upper or lower triangle of the Hermitian band matrix A, stored in the first ka+1 rows. On exit, the contents of AB are destroyed.
inldabThe leading dimension of AB. ldab >= ka+1.
inoutBBComplex array, dimension (ldbb, n). On entry, the upper or lower triangle of the Hermitian band matrix B, stored in the first kb+1 rows. On exit, the factor S from the split Cholesky factorization B = S**H*S, as returned by ZPBSTF.
inldbbThe leading dimension of BB. ldbb >= kb+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 matrix Z of eigenvectors. If jobz = ‘N’, Z is not referenced.
inldzThe leading dimension of Z. ldz >= 1, and if jobz = ‘V’, ldz >= n.
outworkComplex array, dimension (n).
outrworkDouble precision array, dimension (3*n).
outinfo= 0: successful exit < 0: if info = -i, the i-th argument had an illegal value > 0: if info = i, and i is: <= n: the algorithm failed to converge; > n: if info = n + i, for 1 <= i <= n, then ZPBSTF returned info = i: B is not positive definite.
void zhbgv(
const char* jobz,
const char* uplo,
const INT n,
const INT ka,
const INT kb,
c128* restrict AB,
const INT ldab,
c128* restrict BB,
const INT ldbb,
f64* restrict W,
c128* restrict Z,
const INT ldz,
c128* restrict work,
f64* restrict rwork,
INT* info
);