ZHPEVX(3)
π ZHPEVX(3) β Library Functions Manual π
Bestie, welcome to the packed-storage Hermitian eigenvalue selector page. Itβs giving βLAPACK but make it cute,β and we are keeping every single detail. No cap. π«Ά
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zhpevx.f
Yes, thatβs the NAME section: a whole path. Iconic in a deeply unhinged way. π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine ZHPEVX (jobz, range, uplo, n, ap, vl, vu, il, iu, abstol, m,
w, z, ldz, work, rwork, iwork, ifail, info)
Officially: ZHPEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices
π Function/Subroutine Documentation π
subroutine ZHPEVX (character jobz, character range, character uplo, integer
n, complex*16, dimension( * ) ap, double precision vl, double precision
vu, integer il, integer iu, double precision abstol, integer m, double
precision, dimension( * ) w, complex*16, dimension( ldz, * ) z, integer
ldz, complex*16, dimension( * ) work, double precision, dimension( * )
rwork, integer, dimension( * ) iwork, integer, dimension( * ) ifail,
integer info)
And again, because the page said it twice and we are not skipping: ZHPEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices
π― Purpose
ZHPEVX 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. Slay. π
π§© Parameters
JOBZβCHARACTER*1. The βwhat are we computingβ switch:= 'N':Compute eigenvalues only;= 'V':Compute eigenvalues and eigenvectors.
RANGEβCHARACTER*1. Tells it which eigenvalues to find:= '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 ofAis stored:= 'U':Upper triangle ofAis stored;= 'L':Lower triangle ofAis stored.
NβINTEGER. The order of the matrixA.N >= 0.APβCOMPLEX*16 array, dimension (N*(N+1)/2). On entry, the upper or lower triangle of the Hermitian matrixA, packed columnwise in a linear array. Thej-th column ofAis stored in the arrayAPas follows:- if
UPLO = 'U',AP(i + (j-1)*j/2) = A(i,j)for1<=i<=j; - if
UPLO = 'L',AP(i + (j-1)*(2*n-j)/2) = A(i,j)forj<=i<=n.
- if
On exit, AP is overwritten by values generated during the reduction to tridiagonal form. If UPLO = 'U', the diagonal and first superdiagonal of the tridiagonal matrix T overwrite the corresponding elements of A, and if UPLO = 'L', the diagonal and first subdiagonal of T overwrite the corresponding elements of A.
π Bestie, that means AP gets rewritten on exit. Not a drill. π«Ά
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 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 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').
Thereβs also this reference line, exactly as the page gives it: See 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 PRECISION array, dimension (N). IfINFO = 0, the selected eigenvalues in ascending order.ZβCOMPLEX*16 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 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. This is the βbring enough columnsβ warning, bestie. π
LDZβINTEGER. The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V',LDZ >= max(1,N).WORKβCOMPLEX*16 array, dimension (2*N).RWORKβDOUBLE PRECISION array, dimension (7*N).IWORKβINTEGER array, dimension (5*N).IFAILβ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β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.
Definition at line 237 of file zhpevx.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
Thatβs the whole page, bestie. Source/version vibes: LAPACK Version 3.12.0, /home/abui...RC/zhpevx.f(3). Periodt. πβ¨
π¦ 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