CHBEVX(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’– 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's CHARACTER*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': the IL-th through IU-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 if UPLO = 'U', or the number of subdiagonals if UPLO = 'L'. KD >= 0. yes the band is real and it has width πŸ”₯
  • AB β€” COMPLEX 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, like so:
    • 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. 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 β€” COMPLEX array, 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 πŸ’€
  • LDQ β€” INTEGER. the leading dimension of the array Q. if JOBZ = 'V', then LDQ >= max(1,N).
  • VL β€” REAL. if RANGE='V', the lower bound of the interval to be searched for eigenvalues. VL < VU. not referenced if RANGE = 'A' or 'I'.
  • VU β€” REAL. if RANGE='V', the upper bound of the interval to be searched for eigenvalues. VL < VU. not referenced if RANGE = 'A' or 'I'.
  • IL β€” 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 β€” 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 β€” 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. if RANGE = 'A', M = N, and if RANGE = 'I', M = IU-IL+1.
  • W β€” REAL array, dimension (N). the first M elements contain the selected eigenvalues in ascending order. sorted, tidy, organized β€” main character energy ✨
  • Z β€” COMPLEX array, dimension (LDZ, max(1,M)).
    • If JOBZ = 'V', then if INFO = 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 with W(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.
note: the user must ensure that at least max(1,M) columns are supplied in the array Z; if RANGE = '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 if JOBZ = 'V', LDZ >= max(1,N).
  • WORK β€” COMPLEX array, dimension (N). that's it. that's the whole description. she's mysterious πŸ’…
  • RWORK β€” REAL array, dimension (7*N).
  • IWORK β€” INTEGER array, dimension (5*N).
  • IFAIL β€” INTEGER array, dimension (N).
    • If JOBZ = 'V', then if INFO = 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.
  • INFO β€” INTEGER, the receipts:
    • = 0: successful exit πŸŽ‰
    • < 0: if INFO = -i, the i-th argument had an illegal value πŸ‘€
    • > 0: if INFO = i, then i eigenvectors failed to converge. their indices are stored in array IFAIL. 😭

πŸ‘‘ 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