SRC/dsbevx.f(3)
π NAME
okay so you found SRC/dsbevx.f(3) in the Library Functions Manual, bestie. This is the page for dsbevx, a LAPACK subroutine that computes selected eigenvalues and, optionally, eigenvectors of a real symmetric band matrix A. You can pick those eigenvalues and eigenvectors either by a range of values or by a range of indices. Periodt.
β¨ SYNOPSIS
π Functions/Subroutines
subroutine dsbevx (jobz, range, uplo, n, kd, ab, ldab, q, ldq, vl, vu,
il, iu, abstol, m, w, z, ldz, work, iwork, ifail, info)
DSBEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices.
π¦ Function/Subroutine Documentation
πΈ subroutine dsbevx (...)
subroutine dsbevx (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, dimension( * ) iwork, integer, dimension( * ) ifail,
integer info)
DSBEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices.
π Purpose
DSBEVX computes selected eigenvalues and, optionally, eigenvectors of a real symmetric 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.
π Parameters
JOBZ(CHARACTER*1) β tells the routine what to compute, no cap.= 'N': Compute eigenvalues only;= 'V': Compute eigenvalues and eigenvectors.
RANGE(CHARACTER*1) β how you want to pick the eigenvalues, bestie.= '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) β which triangle of A is stored. iconic little switch.= 'U': Upper triangle of A is stored;= 'L': Lower triangle of A is stored.
N(INTEGER) β The order of the matrix A.N >= 0.KD(INTEGER) β The number of superdiagonals of the matrix A ifUPLO = '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 matrix A, stored in the firstKD+1rows of the array. Thej-th column of A is stored in thej-th column of the arrayABas follows:- 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. 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.
LDAB(INTEGER) β The leading dimension of the arrayAB.LDAB >= KD + 1.Q(DOUBLE PRECISIONarray, dimension(LDQ, N)) β IfJOBZ = 'V', theN-by-Northogonal matrix used in the reduction to tridiagonal form. IfJOBZ = 'N', the arrayQis not referenced.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').
The source also mentions 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.Z(DOUBLE PRECISIONarray, dimension(LDZ, max(1,M))) β IfJOBZ = 'V', then ifINFO = 0, the firstMcolumns ofZcontain the orthonormal eigenvectors of the matrix A corresponding 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.LDZ(INTEGER) β The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).WORK(DOUBLE PRECISIONarray, dimension(7*N)).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) β the vibe check at the end.= 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
Definition at line 262 of file dsbevx.f.
π¦ Author
Generated automatically by Doxygen for LAPACK from the source code.
Thatβs the whole tea β β this footer is LAPACK Version 3.12.0 and source SRC/dsbevx.f(3), so you know exactly where this page came from. Bye bestie, go slay those eigenvalues π
β¨π«Ά
π¦ 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