/home/abui...x_2stage.f(3)
π NAME π
Okay so the file for this manual page is literally:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zhbevx_2stage.f
and the manual-name energy up top is /home/abui...x_2stage.f(3) β yes bestie, the title is a whole path, and it's a Library Functions Manual situation. No cap, iconic. π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
Here's the one and only star of this part, with every argument kept exactly as-is:
subroutine ZHBEVX_2STAGE (jobz, range, uplo, n, kd, ab, ldab, q, ldq,
vl, vu, il, iu, abstol, m, w, z, ldz, work, lwork, rwork, iwork,
ifail, info)
The description is short and sweet: ZHBEVX_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices. That's the whole vibe for this page part β eigenvalues first, eigenvectors if you ask nicely, and OTHER matrices doing main character work. π¦
π¦ Function/Subroutine Documentation π¦
okay bestie, this is the part where we get into the actual tea β what the routine does, what every single argument wants from you, and who wrote it. buckle up π
π― Purpose
ZHBEVX_2STAGE computes selected eigenvalues and, optionally, eigenvectors of a complex Hermitian band matrix A using the 2stage technique for the reduction to tridiagonal. Eigenvalues and eigenvectors can be selected by specifying either a range of values or a range of indices for the desired eigenvalues. β¨
it's giving "I'm a banded Hermitian matrix and I'm about to get reduced" and honestly? iconic.
π Parameters
JOBZ
JOBZ is CHARACTER*1
= 'N'β compute eigenvalues only;= 'V'β compute eigenvalues and eigenvectors. Not available in this release. π
lowkey important: that 'V' option is literally marked not-available in this release. don't come for me, that's what the source says π«Ά
RANGE
RANGE is CHARACTER*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
UPLO is CHARACTER*1
= 'U'β upper triangle ofAis stored;= 'L'β lower triangle ofAis stored.
pick a side, bestie πΈ (just one, and tell us which)
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. π
so fr, if you needed your original AB β copy it first. she's not coming back.
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'.
yes bestie,VLstrictly less thanVU. an empty interval is not the vibe π
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').
see by Demmel and Kahan, LAPACK Working Note #3.
yep, the reference title got eaten in the source β that's genuinely how it appears. not my fault, I don't make the rules π
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. π₯ sorted and everything, we love a tidy queen.
Z
Z is COMPLEX*16 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 leastmax(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. π plan ahead bestie, that's the whole game here.
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 (LWORK)
LWORK
LWORK is INTEGER
the length of the array WORK. LWORK >= 1, when N <= 1; otherwise:
if JOBZ = 'N' and N > 1, LWORK must be queried.
LWORK = MAX(1, dimension) where
dimension = (2KD+1)*N + KD*NTHREADS
where KD is the size of the band.
NTHREADS is the number of threads used when
openMP compilation is enabled, otherwise =1.
if JOBZ = 'V' and N > 1, LWORK must be queried. Not yet available. π
if LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal sizes of the WORK, RWORK and IWORK arrays, returns these values as the first entries of the WORK, RWORK and IWORK arrays, and no error message related to LWORK or LRWORK or LIWORK is issued by XERBLA. β¨
workspace query my beloved β she tells you how much room she needs instead of just yelling at you. main character energy fr.
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 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
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.
the academic avengers assembled, we love to see it π«Ά
π§ Further Details
all details about the 2stage techniques are available in:
- Azzam Haidar, Hatem Ltaief, and Jack Dongarra. Parallel reduction to condensed forms for symmetric eigenvalue problems using aggregated fine-grained and memory-aware kernels. in Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis (SC '11), New York, NY, USA, Article 8 , 11 pages.
http://doi.acm.org/10.1145/2063384.2063394 - A. Haidar, J. Kurzak, P. Luszczek, 2013. An improved parallel singular value algorithm and its implementation for multicore hardware, in Proceedings of 2013 International Conference for High Performance Computing, Networking, Storage and Analysis (SC '13). Denver, Colorado, USA, 2013. Article 90, 12 pages.
http://doi.acm.org/10.1145/2503210.2503292 - A. Haidar, R. Solca, S. Tomov, T. Schulthess and J. Dongarra. A novel hybrid CPU-GPU generalized eigensolver for electronic structure calculations based on fine-grained memory aware tasks. International Journal of High Performance Computing Applications. Volume 28 Issue 2, Pages 196-209, May 2014.
http://hpc.sagepub.com/content/28/2/196
if you actually wanna understand the 2stage pipeline, these three papers are the assigned reading. no skipping, bestie, this is the syllabus π
Definition at line 323 of file zhbevx_2stage.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page, bestie, you made it to the end ππ this one's from LAPACK Version 3.12.0, and if you ever forget where you found it, the file it lives in is /home/abui...x_2stage.f(3) β go forth and compute those selected eigenvalues, you absolute icon πβ¨
π¦ 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