SRC/chpevx.f(3)
๐ NAME ๐
okay bestie, this is the SRC/chpevx.f(3) page from the Library Functions Manual โจ
โจ SYNOPSIS โจ
๐ง Functions/Subroutines ๐ง
one iconic little workhorse:
subroutine chpevx (jobz, range, uplo, n, ap, vl, vu, il, iu, abstol, m,
w, z, ldz, work, rwork, iwork, ifail, info)
CHPEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices ๐
๐ซถ Function/Subroutine Documentation ๐ซถ
subroutine chpevx (character jobz, character range, character uplo, integer
n, complex, dimension( * ) ap, 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)
CHPEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices ๐
๐ฏ Purpose ๐ฏ
okay so the whole vibe is: CHPEVX computes selected eigenvalues and, optionally, eigenvectors of a complex Hermitian matrix A in packed storage ๐ซถ
Eigenvalues/vectors can be selected by specifying either a range of values or a range of indices for the desired eigenvalues โจ
๐ธ Parameters ๐ธ
JOBZโJOBZ is CHARACTER*1๐= 'N': Compute eigenvalues only;= 'V': Compute eigenvalues and eigenvectors.
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': the IL-th through IU-th eigenvalues will be found.
UPLOโUPLO is CHARACTER*1๐ฆ= 'U': Upper triangle of A is stored;= 'L': Lower triangle of A is stored.
NโN is INTEGER; the order of the matrixA.N >= 0.๐APโAP is COMPLEX array, dimension (N*(N+1)/2)๐ On entry, the upper or lower triangle of the Hermitian matrixA, packed columnwise in a linear array. The j-th column ofAis stored in the arrayAPas follows:if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j;if UPLO = 'L', AP(i + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<=n.On exit,APis overwritten by values generated during the reduction to tridiagonal form. IfUPLO = 'U', the diagonal and first superdiagonal of the tridiagonal matrixToverwrite the corresponding elements ofA, and ifUPLO = 'L', the diagonal and first subdiagonal ofToverwrite the corresponding elements ofA. ๐VLโVL is REAL๐ IfRANGE='V', the lower bound of the interval to be searched for eigenvalues.VL < VU.Not referenced ifRANGE = 'A'or'I'.VUโVU is REAL๐ IfRANGE='V', the upper bound of the interval to be searched for eigenvalues.VL < VU.Not referenced ifRANGE = 'A'or'I'.ILโIL is INTEGER๐ IfRANGE='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 ifRANGE = 'A'or'V'.IUโIU is INTEGER๐ IfRANGE='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 ifRANGE = 'A'or'V'.ABSTOLโABSTOL is REAL๐ฅ 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 toABSTOL + EPS * max( |a|,|b| ) ,whereEPSis the machine precision. IfABSTOLis less than or equal to zero, thenEPS*|T|will be used in its place, where|T|is the 1-norm of the tridiagonal matrix obtained by reducingAPto tridiagonal form. Eigenvalues will be computed most accurately whenABSTOLis set to twice the underflow threshold2*SLAMCH('S'), not zero. If this routine returns withINFO>0, indicating that some eigenvectors did not converge, try settingABSTOLto2*SLAMCH('S'). There's a cite to Demmel and Kahan, LAPACK Working Note #3. ๐MโM is INTEGER๐ฏ The total number of eigenvalues found.0 <= M <= N.IfRANGE = 'A',M = N, and ifRANGE = 'I',M = IU-IL+1.WโW is REAL array, dimension (N)๐ธ IfINFO = 0, the selected eigenvalues in ascending order.ZโZ is COMPLEX array, dimension (LDZ, max(1,M))๐ฆ IfJOBZ = 'V', then ifINFO = 0, the firstMcolumns ofZcontain the orthonormal eigenvectors of the matrixAcorresponding to the selected eigenvalues, with the i-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โLDZ is INTEGERโจ The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).WORKโWORK is COMPLEX array, dimension (2*N)๐ปRWORKโRWORK is REAL array, dimension (7*N)๐IWORKโIWORK is INTEGER array, dimension (5*N)๐งฎIFAILโIFAIL is INTEGER array, 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โINFO is INTEGERโญ= 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 237 of file chpevx.f. ๐
๐ Author ๐
Generated automatically by Doxygen for LAPACK from the source code.
mwah ๐ this page is LAPACK Version 3.12.0, SRC/chpevx.f(3) โ auto-generated by Doxygen for LAPACK from the source code, so the bots get the credit for the formatting, bestie ๐ญ๐
๐ฆ 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