/home/abui...x_2stage.f(3)
π¦ dsbevx_2stage.f(3) π¦
okay so bestie, real talk β this is a page from the Library Functions Manual, and it's literally the manpage for the file at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dsbevx_2stage.f. That path is giving "I live deep in a build tree and I know it" energy. π«Ά
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dsbevx_2stage.f
like... that's the whole name. yes, the entire full path is the name. no notes, it's iconic, it's committed to the bit. π
π SYNOPSIS π
π Functions/Subroutines
so under here we've got exactly one (1) entry and she is the main character:
subroutine DSBEVX_2STAGE (jobz, range, uplo, n, kd, ab, ldab, q, ldq,
vl, vu, il, iu, abstol, m, w, z, ldz, work, lwork, iwork, ifail,
info)
that's a lot of arguments and every single one of them is listed above, character for character, no cap. π§
πΈ what she does
DSBEVX_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices. πβ¨
like yes, that's literally the description β "OTHER matrices", capital O-T-H-E-R, she said what she said. π₯
ngl this part is short and sweet, but don't you dare think that's all β the real lore is still coming, so stay tuned bestie π
π« Function/Subroutine Documentation
okay bestie, buckle up, because this is where the actual function lives π
subroutine DSBEVX_2STAGE (character jobz, character range, character uplo,
integer n, integer kd, double precision, dimension( ldab, * ) ab,
integer ldab, double precision, dimension( ldq, * ) q, integer ldq,
double precision vl, double precision vu, integer il, integer iu, double
precision abstol, integer m, double precision, dimension( * ) w, double
precision, dimension( ldz, * ) z, integer ldz, double precision,
dimension( * ) work, integer lwork, integer, dimension( * ) iwork,
integer, dimension( * ) ifail, integer info)
DSBEVX_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices β¨ no cap, that's the whole elevator pitch.
π― Purpose
DSBEVX_2STAGE computes selected eigenvalues and, optionally, eigenvectors of a real symmetric 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 β so you get to pick, like, exactly which ones you want π
π§ Parameters
JOBZβCHARACTER*1π= 'N': Compute eigenvalues only;= 'V': Compute eigenvalues and eigenvectors. Not available in this release. π
RANGEβ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βCHARACTER*1π¦= 'U': Upper triangle ofAis stored;= 'L': Lower triangle ofAis stored.
NβINTEGERπΈ The order of the matrixA.N >= 0.KDβINTEGERπ The number of superdiagonals of the matrixAifUPLO = 'U', or the number of subdiagonals ifUPLO = 'L'.KD >= 0.ABβDOUBLE PRECISIONarray, dimension(LDAB, N)π On entry, the upper or lower triangle of the symmetric band matrixA, stored in the firstKD+1rows of the array. Thej-th column ofAis stored in thej-th column of the arrayABas 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 π₯ If UPLO = 'U', the first superdiagonal and the diagonal of the tridiagonal matrix T are returned in rows KD and KD+1 of AB, and if UPLO = 'L', the diagonal and first subdiagonal of T are returned in the first two rows of AB. (so like, your input array is gone β she ate and left no crumbs, plan accordingly π)
LDABβINTEGERβ The leading dimension of the arrayAB.LDAB >= KD + 1.QβDOUBLE PRECISIONarray, dimension(LDQ, N)π«Ά- If
JOBZ = 'V', theN-by-Northogonal matrix used in the reduction to tridiagonal form. - If
JOBZ = 'N', the arrayQis not referenced.
- If
LDQβINTEGERπ The leading dimension of the arrayQ. IfJOBZ = 'V', thenLDQ >= max(1,N).VLβDOUBLE PRECISIONπ IfRANGE='V', the lower bound of the interval to be searched for eigenvalues.VL < VU. Not referenced ifRANGE = 'A'or'I'.VUβDOUBLE PRECISIONπ 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β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 the work by Demmel and Kahan, LAPACK Working Note #3.
MβINTEGERβ¨ The total number of eigenvalues found.0 <= M <= N. IfRANGE = 'A',M = N, and ifRANGE = 'I',M = IU-IL+1.WβDOUBLE PRECISIONarray, dimension(N)πΈ The firstMelements contain the selected eigenvalues in ascending order β¬οΈ (yes bestie, ascending, always).ZβDOUBLE PRECISIONarray, dimension(LDZ, max(1,M))π¦ IfJOBZ = '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 ofZcontains the latest approximation to the eigenvector, and the index of the eigenvector is returned inIFAIL. IfJOBZ = 'N', thenZis 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. fr fr, do not skimp on the columns π
LDZβINTEGERβ The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).WORKβDOUBLE PRECISIONarray, dimension(LWORK)π§°LWORKβINTEGERπ₯ The length of the arrayWORK.LWORK >= 1, whenN <= 1; otherwise
If JOBZ = 'N' and N > 1, LWORK must be queried.
LWORK = MAX(1, 7*N, dimension) where
dimension = (2KD+1)*N + KD*NTHREADS + 2*N
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 size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA π
IWORKβINTEGERarray, dimension(5*N)πIFAILβINTEGERarray, dimension(N)π«Ά IfJOBZ = 'V', then ifINFO = 0, the firstMelements ofIFAILare zero. IfINFO > 0, thenIFAILcontains the indices of the eigenvectors that failed to converge. IfJOBZ = 'N', thenIFAILis not referenced.INFOβ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.
and that's the whole parameter lineup β still got credits and the deep-cut research refs coming, don't scroll away π
π«Ά Author π«Ά
Okay so nobody wrote this one by hand, bestie β not even a little. It was generated automatically by Doxygen for LAPACK from the source code. That's the whole vibe: the docs are literally extracted straight out of the code itself, so if something looks a bit stiff and mechanical, that's because it is mechanical. A robot did the typing, we just gave it a glow-up. π
Which honestly? Iconic. The source code is the main character, Doxygen is just the hype friend taking notes, and LAPACK is the whole friend group. No cap. π₯
Lowkey important: since this page was auto-generated from source, treat it as the mirror of the code, not as extra lore. The code is the source of truth, always. π
And that's a wrap on the /home/abui...x_2stage.f(3) page, bestie β go forth and call your subroutines with confidence. π
β¨ Generated automatically by Doxygen for LAPACK from the source code, this whole page is brought to you by LAPACK, Version 3.12.0, living at /home/abui...x_2stage.f(3). Bye bestie, slay your linear algebra! π¦π
π¦ 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