CHBEVX(3)
π CHBEVX(3) β like, the Hermitian band eigen-solver of your dreams π
okay bestie, so this page is from the LAPACK library (Library Functions Manual), and the file in question lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/chbevx.f. yes that is a whole path, no I will not be shortening it, it's iconic in its own chaotic way π«Ά
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine CHBEVX (jobz, range, uplo, n, kd, ab, ldab, q, ldq, vl, vu,
il, iu, abstol, m, w, z, ldz, work, rwork, iwork, ifail, info)
CHBEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices β¨
π¦ Function/Subroutine Documentation π¦
subroutine CHBEVX (character jobz, character range, character uplo, integer
n, integer kd, complex, dimension( ldab, * ) ab, integer ldab, complex,
dimension( ldq, * ) q, integer ldq, real vl, real vu, integer il,
integer iu, real abstol, integer m, real, dimension( * ) w, complex,
dimension( ldz, * ) z, integer ldz, complex, dimension( * ) work, real,
dimension( * ) rwork, integer, dimension( * ) iwork, integer, dimension(
* ) ifail, integer info)
CHBEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices π
πΈ Purpose πΈ
!>
!> CHBEVX computes selected eigenvalues and, optionally, eigenvectors
!> of a complex Hermitian band matrix A. Eigenvalues and eigenvectors
!> can be selected by specifying either a range of values or a range of
!> indices for the desired eigenvalues.
!>
like, it's giving picky queen β you get to choose exactly which eigenvalues you want, by value range or by index range π β¨
π Parameters π
JOBZβ ngl this is the "how much do you want" switch, and it'sCHARACTER*1:= 'N': compute eigenvalues only;= 'V': compute eigenvalues and eigenvectors.
RANGEβCHARACTER*1, the "which ones tho" dial:= '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βCHARACTER*1, where the tea is stored:= 'U': upper triangle of A is stored;= 'L': lower triangle of A is stored.
NβINTEGER. the order of the matrix A.N >= 0. periodt.KDβINTEGER. the number of superdiagonals of the matrix A ifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KD >= 0. yes the band is real and it has width π₯ABβCOMPLEXarray, dimension(LDAB, N). on entry, the upper or lower triangle of the Hermitian band matrix A, stored in the firstKD+1rows of the array. the j-th column of A is stored in the j-th column of the array AB, like so:- if
UPLO = 'U',AB(kd+1+i-j,j) = A(i,j)formax(1,j-kd)<=i<=j; - if
UPLO = 'L',AB(1+i-j,j) = A(i,j)forj<=i<=min(n,j+kd).
- if
on exit, AB is overwritten by values generated during the reduction to tridiagonal form. so yeah, your input gets ate π that's just how it is.
LDABβINTEGER. the leading dimension of the array AB.LDAB >= KD + 1.QβCOMPLEXarray, dimension(LDQ, N).- If
JOBZ = 'V', the N-by-N unitary matrix used in the reduction to tridiagonal form. - If
JOBZ = 'N', the array Q is not referenced. she's not invited to the function π
- If
LDQβINTEGER. the leading dimension of the array Q. ifJOBZ = 'V', thenLDQ >= max(1,N).VLβREAL. ifRANGE='V', the lower bound of the interval to be searched for eigenvalues.VL < VU. not referenced ifRANGE = 'A'or'I'.VUβREAL. ifRANGE='V', the upper bound of the interval to be searched for eigenvalues.VL < VU. not referenced ifRANGE = 'A'or'I'.ILβINTEGER. ifRANGE='I', the index of the smallest eigenvalue to be returned.1 <= IL <= IU <= N, ifN > 0;IL = 1andIU = 0ifN = 0. not referenced ifRANGE = 'A'or'V'.IUβINTEGER. ifRANGE='I', the index of the largest eigenvalue to be returned.1 <= IL <= IU <= N, ifN > 0;IL = 1andIU = 0ifN = 0. not referenced ifRANGE = 'A'or'V'.ABSTOLβREAL. the absolute error tolerance for the eigenvalues, aka the "how close is close enough" vibe check. 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*SLAMCH('S'), not zero. if this routine returns with INFO>0, indicating that some eigenvectors did not converge, try setting ABSTOL to 2*SLAMCH('S'). π‘
not me pointing you at "See by Demmel and Kahan, LAPACK Working Note #3." β yes, that's the reference in the source, and yes it reads a little broken, but that's literally what's there bestie π
MβINTEGER. the total number of eigenvalues found.0 <= M <= N. ifRANGE = 'A',M = N, and ifRANGE = 'I',M = IU-IL+1.WβREALarray, dimension(N). the first M elements contain the selected eigenvalues in ascending order. sorted, tidy, organized β main character energy β¨ZβCOMPLEXarray, dimension(LDZ, max(1,M)).- If
JOBZ = 'V', then ifINFO = 0, the first M columns of Z contain the orthonormal eigenvectors of the matrix A corresponding to the selected eigenvalues, with the i-th column of Z holding the eigenvector associated withW(i). - If an eigenvector fails to converge, then that column of Z contains the latest approximation to the eigenvector, and the index of the eigenvector is returned in
IFAIL. - If
JOBZ = 'N', then Z is not referenced.
- If
note: the user must ensure that at leastmax(1,M)columns are supplied in the array Z; ifRANGE = 'V', the exact value of M is not known in advance and an upper bound must be used. fr fr, don't skimp on the columns π
LDZβINTEGER. the leading dimension of the array Z.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).WORKβCOMPLEXarray, dimension(N). that's it. that's the whole description. she's mysterious πRWORKβREALarray, dimension(7*N).IWORKβINTEGERarray, dimension(5*N).IFAILβINTEGERarray, dimension(N).- If
JOBZ = 'V', then ifINFO = 0, the first M elements of IFAIL are zero. - If
INFO > 0, then IFAIL contains the indices of the eigenvectors that failed to converge. - If
JOBZ = 'N', then IFAIL is not referenced.
- If
INFOβINTEGER, the receipts:= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = i, then i eigenvectors 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 chbevx.f.
π Author (the second one, yes really) π
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page bestie, slay π β this was brought to you by LAPACK, Version 3.12.0, dated to that same /home/abui...RC/chbevx.f(3) file, which is genuinely the silliest footer I've ever seen and I love it πβ¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms