SRC/zhbevx.f(3)
okay so bestie, welcome to SRC/zhbevx.f(3) from the Library Functions Manual π
this is the LAPACK page for zhbevx, and it is giving serious linear-algebra main-character energy. every flag, dimension, formula, warning, and reference is still here β just with better vibes β¨
β¨ NAME β¨
SRC/zhbevx.f β thatβs the file, periodt π
π SYNOPSIS π
π§ Functions/Subroutines π§
hereβs the call, exactly as it appears, no cap:
subroutine zhbevx (jobz, range, uplo, n, kd, ab, ldab, q, ldq, vl, vu, il, iu, abstol, m, w, z, ldz, work, rwork, iwork, ifail, info)
and the one-liner is literally:
ZHBEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices π
π οΈ Function/Subroutine Documentation π οΈ
π subroutine zhbevx π
full signature with all the types and dimensions, copied exactly:
subroutine zhbevx (character jobz, character range, character uplo, integer n, integer kd, complex*16, dimension( ldab, * ) ab, integer ldab, complex*16, dimension( ldq, * ) q, integer ldq, double precision vl, double precision vu, integer il, integer iu, double precision abstol, integer m, double precision, dimension( * ) w, complex*16, dimension( ldz, * ) z, integer ldz, complex*16, dimension( * ) work, double precision, dimension( * ) rwork, integer, dimension( * ) iwork, integer, dimension( * ) ifail, integer info)
and again, for the people in the back:
ZHBEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices β¨
π― Purpose π―
bestie, hereβs the point: ZHBEVX computes selected eigenvalues and, optionally, eigenvectors of a complex Hermitian band matrix A. you can pick which ones by giving either a range of values or a range of indices for the desired eigenvalues πΈ
β¨ Parameters β¨
JOBZ
JOBZisCHARACTER*1= 'N': compute eigenvalues only;= 'V': compute eigenvalues and eigenvectors.
RANGE
RANGEisCHARACTER*1= 'A': all eigenvalues will be found;= 'V': all eigenvalues in the half-open interval(VL,VU]will be found;= 'I': theIL-th throughIU-th eigenvalues will be found.
UPLO
UPLOisCHARACTER*1= 'U': upper triangle ofAis stored;= 'L': lower triangle ofAis stored.
N
N is INTEGER β the order of the matrix A. N >= 0.
KD
KD is INTEGER β the number of superdiagonals of the matrix A if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KD >= 0.
AB
AB is COMPLEX*16 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 π
LDAB
LDAB is INTEGER β the leading dimension of the array AB. LDAB >= KD + 1.
Q
Q is COMPLEX*16 array, dimension (LDQ, N)
- if
JOBZ = 'V', theN-by-Nunitary matrix used in the reduction to tridiagonal form. - if
JOBZ = 'N', the arrayQis not referenced.
LDQ
LDQ is INTEGER β the leading dimension of the array Q. if JOBZ = 'V', then LDQ >= max(1,N).
VL
VL is DOUBLE PRECISION β if RANGE='V', the lower bound of the interval to be searched for eigenvalues. VL < VU. not referenced if RANGE = 'A' or 'I'.
VU
VU is DOUBLE PRECISION β if RANGE='V', the upper bound of the interval to be searched for eigenvalues. VL < VU. not referenced if RANGE = 'A' or 'I'.
IL
IL is INTEGER β if RANGE='I', the index of the smallest eigenvalue to be returned. 1 <= IL <= IU <= N, if N > 0; IL = 1 and IU = 0 if N = 0. not referenced if RANGE = 'A' or 'V'.
IU
IU is INTEGER β if RANGE='I', the index of the largest eigenvalue to be returned. 1 <= IL <= IU <= N, if N > 0; IL = 1 and IU = 0 if N = 0. not referenced if RANGE = 'A' or 'V'.
ABSTOL
ABSTOL is DOUBLE PRECISION β the absolute error tolerance for the eigenvalues. an approximate eigenvalue is accepted as converged when it is determined to lie in an interval [a,b] of width less than or equal to
ABSTOL + EPS * max( |a|,|b| ) ,
where EPS is the machine precision. if ABSTOL is less than or equal to zero, then EPS*|T| will be used in its place, where |T| is the 1-norm of the tridiagonal matrix obtained by reducing AB to tridiagonal form π«Ά
eigenvalues will be computed most accurately when ABSTOL is set to twice the underflow threshold 2*DLAMCH('S'), not zero. if this routine returns with INFO>0, indicating that some eigenvectors did not converge, try setting ABSTOL to 2*DLAMCH('S').
the page also says: See by Demmel and Kahan, LAPACK Working Note #3. π
M
M is INTEGER β the total number of eigenvalues found. 0 <= M <= N. if RANGE = 'A', M = N, and if RANGE = 'I', M = IU-IL+1.
W
W is DOUBLE PRECISION array, dimension (N) β the first M elements contain the selected eigenvalues in ascending order.
Z
Z is COMPLEX*16 array, dimension (LDZ, max(1,M))
- if
JOBZ = 'V', then ifINFO = 0, the firstMcolumns ofZcontain the orthonormal eigenvectors of the matrixAcorresponding to the selected eigenvalues, with thei-th column ofZholding the eigenvector associated withW(i). - if an eigenvector fails to converge, then that column of
Zcontains the latest approximation to the eigenvector, and the index of the eigenvector is returned inIFAIL. - if
JOBZ = 'N', thenZis not referenced. - note: the user must ensure that at least
max(1,M)columns are supplied in the arrayZ; ifRANGE = 'V', the exact value ofMis not known in advance and an upper bound must be used.
LDZ
LDZ is INTEGER β the leading dimension of the array Z. LDZ >= 1, and if JOBZ = 'V', LDZ >= max(1,N).
WORK
WORK is COMPLEX*16 array, dimension (N).
RWORK
RWORK is DOUBLE PRECISION array, dimension (7*N).
IWORK
IWORK is INTEGER array, dimension (5*N).
IFAIL
IFAIL is INTEGER array, dimension (N)
- if
JOBZ = 'V', then ifINFO = 0, the firstMelements ofIFAILare zero. ifINFO > 0, thenIFAILcontains the indices of the eigenvectors that failed to converge. - if
JOBZ = 'N', thenIFAILis not referenced.
INFO
INFO is INTEGER
= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0: ifINFO = i, thenieigenvectors failed to converge. their indices are stored in arrayIFAIL.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 264 of file zhbevx.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
and thatβs the whole page, bestie π«Ά the footer gives LAPACK Version 3.12.0 and SRC/zhbevx.f(3) β no date in the footer, so Iβm not inventing one πβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms