stegr(3)
π
stegr(3) β Library Functions Manual energy
okay so this is the stegr(3) page from the Library Functions Manual, and the name is literally stegr: eig, bisection, see stemr. Itβs giving compatibility-wrapper realness, bestie. π«Ά
π NAME
stegr β stegr: eig, bisection, see stemr
β¨ SYNOPSIS
Four subroutines, one iconic little family:
subroutine cstegr (jobz, range, n, d, e, vl, vu, il, iu, abstol, m, w,
z, ldz, isuppz, work, lwork, iwork, liwork, info)
CSTEGR
subroutine dstegr (jobz, range, n, d, e, vl, vu, il, iu, abstol, m, w,
z, ldz, isuppz, work, lwork, iwork, liwork, info)
DSTEGR
subroutine sstegr (jobz, range, n, d, e, vl, vu, il, iu, abstol, m, w,
z, ldz, isuppz, work, lwork, iwork, liwork, info)
SSTEGR
subroutine zstegr (jobz, range, n, d, e, vl, vu, il, iu, abstol, m, w,
z, ldz, isuppz, work, lwork, iwork, liwork, info)
ZSTEGR
π Detailed Description
The detailed description section is short and sweet here β the function documentation below is where the main character energy lives. π
π Function Documentation
π¦ cstegr β CSTEGR
subroutine cstegr (character jobz, character range, integer n, real,
dimension( * ) d, real, dimension( * ) e, real vl, real vu, integer il,
integer iu, real abstol, integer m, real, dimension( * ) w, complex,
dimension( ldz, * ) z, integer ldz, integer, dimension( * ) isuppz,
real, dimension( * ) work, integer lwork, integer, dimension( * ) iwork,
integer liwork, integer info)
CSTEGR
β¨ Purpose
okay so CSTEGR computes selected eigenvalues and, optionally, eigenvectors of a real symmetric tridiagonal matrix T. Any such unreduced matrix has a well defined set of pairwise different real eigenvalues, and the corresponding real eigenvectors are pairwise orthogonal. no cap. β¨
The spectrum may be computed either completely or partially by specifying either an interval (VL,VU] or a range of indices IL:IU for the desired eigenvalues.
CSTEGR is a compatibility wrapper around the improved CSTEMR routine. See SSTEMR for further details. π
One important change is that the ABSTOL parameter no longer provides any benefit and hence is no longer used.
Note:CSTEGRandCSTEMRwork only on machines which follow IEEE-754 floating-point standard in their handling of infinities and NaNs. Normal execution may create these exceptional values and hence may abort due to a floating point exception in environments which do not conform to the IEEE-754 standard. β οΈ
π Parameters
JOBZβCHARACTER*1. This is the vibe check for what you want back:= 'N':Compute eigenvalues only;= 'V':Compute eigenvalues and eigenvectors.
RANGEβCHARACTER*1. Pick your search era:= '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.
NβINTEGER. The order of the matrix.N >= 0.DβREAL array, dimension (N). On entry, theNdiagonal elements of the tridiagonal matrixT. On exit,Dis overwritten.EβREAL array, dimension (N). On entry, the(N-1)subdiagonal elements of the tridiagonal matrixTin elements1toN-1ofE.E(N)need not be set on input, but is used internally as workspace. On exit,Eis overwritten.VLβREAL. IfRANGE='V', the lower bound of the interval to be searched for eigenvalues.VL < VU. Not referenced ifRANGE = 'A'or'I'.VUβREAL. 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. 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. Not referenced ifRANGE = 'A'or'V'.ABSTOLβREAL. Unused. Was the absolute error tolerance for the eigenvalues/eigenvectors in previous versions.MβINTEGER. The total number of eigenvalues found.0 <= M <= N. IfRANGE = 'A',M = N, and ifRANGE = 'I',M = IU-IL+1.WβREAL array, dimension (N). The firstMelements contain the selected eigenvalues in ascending order.ZβCOMPLEX array, dimension (LDZ, max(1,M) ). IfJOBZ = 'V', and ifINFO = 0, then the firstMcolumns ofZcontain the orthonormal eigenvectors of the matrixTcorresponding to the selected eigenvalues, with thei-th column ofZholding the eigenvector associated withW(i). 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. SupplyingNcolumns is always safe.LDZβINTEGER. The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V', thenLDZ >= max(1,N).ISUPPZβINTEGER array, dimension ( 2*max(1,M) ). The support of the eigenvectors inZ, i.e., the indices indicating the nonzero elements inZ. Thei-th computed eigenvector is nonzero only in elementsISUPPZ( 2*i-1 )throughISUPPZ( 2*i ). This is relevant in the case when the matrix is split.ISUPPZis only accessed whenJOBZis'V'andN > 0.WORKβREAL array, dimension (LWORK). On exit, ifINFO = 0,WORK(1)returns the optimal (and minimal)LWORK.LWORKβINTEGER. The dimension of the arrayWORK.LWORK >= max(1,18*N)ifJOBZ = 'V', andLWORK >= max(1,12*N)ifJOBZ = 'N'. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.IWORKβINTEGER array, dimension (LIWORK). On exit, ifINFO = 0,IWORK(1)returns the optimalLIWORK.LIWORKβINTEGER. The dimension of the arrayIWORK.LIWORK >= max(1,10*N)if the eigenvectors are desired, andLIWORK >= max(1,8*N)if only the eigenvalues are to be computed. IfLIWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theIWORKarray, returns this value as the first entry of theIWORKarray, and no error message related toLIWORKis issued byXERBLA.INFOβINTEGER. On exit,INFO:= 0:successful exit< 0:ifINFO = -i, thei-th argument had an illegal value> 0:ifINFO = 1X, internal error inSLARRE, ifINFO = 2X, internal error inCLARRV. Here, the digitX = ABS( IINFO ) < 10, whereIINFOis the nonzero error code returned bySLARREorCLARRV, respectively.
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
πΈ Contributors:
Inderjit Dhillon, IBM Almaden, USA
Osni Marques, LBNL/NERSC, USA
Christof Voemel, LBNL/NERSC, USA
Definition at line 262 of file cstegr.f.
π«Ά dstegr β DSTEGR
subroutine dstegr (character jobz, character range, integer n, double
precision, dimension( * ) d, double precision, dimension( * ) e, 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, integer, dimension( * )
isuppz, double precision, dimension( * ) work, integer lwork, integer,
dimension( * ) iwork, integer liwork, integer info)
DSTEGR
β¨ Purpose
DSTEGR computes selected eigenvalues and, optionally, eigenvectors of a real symmetric tridiagonal matrix T. Any such unreduced matrix has a well defined set of pairwise different real eigenvalues, and the corresponding real eigenvectors are pairwise orthogonal. literally the same iconic setup. π
The spectrum may be computed either completely or partially by specifying either an interval (VL,VU] or a range of indices IL:IU for the desired eigenvalues.
DSTEGR is a compatibility wrapper around the improved DSTEMR routine. See DSTEMR for further details. π
One important change is that the ABSTOL parameter no longer provides any benefit and hence is no longer used.
Note:DSTEGRandDSTEMRwork only on machines which follow IEEE-754 floating-point standard in their handling of infinities and NaNs. Normal execution may create these exceptional values and hence may abort due to a floating point exception in environments which do not conform to the IEEE-754 standard. β οΈ
π Parameters
JOBZβCHARACTER*1. What do you want computed, bestie?= 'N':Compute eigenvalues only;= 'V':Compute eigenvalues and eigenvectors.
RANGEβCHARACTER*1. The search-scope selector:= '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.
N
NβNisINTEGER. It's the order of the matrix, and the rule isN >= 0. πDβDis aDOUBLE PRECISIONarray, dimension(N). On entry, it holds theNdiagonal elements of the tridiagonal matrixT. On exit? Sorry bestie,Dis overwritten. πEβEis aDOUBLE PRECISIONarray, dimension(N). On entry, the(N-1)subdiagonal elements of the tridiagonal matrixTlive in elements1toN-1ofE.E(N)does not need to be set on input, but it's used internally as workspace. On exit,Eis overwritten. π«ΆVLβVLisDOUBLE PRECISION. IfRANGE='V', it's the lower bound of the interval to be searched for eigenvalues. The rule isVL < VU. It is not referenced ifRANGE = 'A'or'I'. π₯VUβVUisDOUBLE PRECISION. IfRANGE='V', it's the upper bound of the interval to be searched for eigenvalues. The rule isVL < VU. It is not referenced ifRANGE = 'A'or'I'. β¨ILβILisINTEGER. IfRANGE='I', it's the index of the smallest eigenvalue to be returned. The rule:1 <= IL <= IU <= N, ifN > 0. Not referenced ifRANGE = 'A'or'V'. πIUβIUisINTEGER. IfRANGE='I', it's the index of the largest eigenvalue to be returned. The rule:1 <= IL <= IU <= N, ifN > 0. Not referenced ifRANGE = 'A'or'V'. πABSTOLβABSTOLisDOUBLE PRECISION. It's unused, bestie. It was the absolute error tolerance for the eigenvalues/eigenvectors in previous versions. πMβMisINTEGER. The total number of eigenvalues found.0 <= M <= N. IfRANGE = 'A', thenM = N, and ifRANGE = 'I', thenM = IU-IL+1. πWβWis aDOUBLE PRECISIONarray, dimension(N). The firstMelements contain the selected eigenvalues in ascending order. πZβZis aDOUBLE PRECISIONarray, dimension(LDZ, max(1,M) ). IfJOBZ = 'V', and ifINFO = 0, then the firstMcolumns ofZcontain the orthonormal eigenvectors of the matrixTcorresponding to the selected eigenvalues, with thei-th column ofZholding the eigenvector associated withW(i). 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. SupplyingNcolumns is always safe. πLDZβLDZisINTEGER. The leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V', thenLDZ >= max(1,N). π¦ISUPPZβISUPPZisINTEGERarray, dimension( 2*max(1,M) ). It's the support of the eigenvectors inZ, i.e., the indices indicating the nonzero elements inZ. Thei-th computed eigenvector is nonzero only in elementsISUPPZ( 2*i-1 )throughISUPPZ( 2*i ). This is relevant in the case when the matrix is split.ISUPPZis only accessed whenJOBZis'V'andN > 0. πΈWORKβWORKisDOUBLE PRECISIONarray, dimension(LWORK). On exit, ifINFO = 0,WORK(1)returns the optimal (and minimal)LWORK. βLWORKβLWORKisINTEGER. The dimension of the arrayWORK.LWORK >= max(1,18*N)ifJOBZ = 'V', andLWORK >= max(1,12*N)ifJOBZ = 'N'. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA. π₯IWORKβIWORKisINTEGERarray, dimension(LIWORK). On exit, ifINFO = 0,IWORK(1)returns the optimalLIWORK. π§LIWORKβLIWORKisINTEGER. The dimension of the arrayIWORK.LIWORK >= max(1,10*N)if the eigenvectors are desired, andLIWORK >= max(1,8*N)if only the eigenvalues are to be computed. IfLIWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theIWORKarray, returns this value as the first entry of theIWORKarray, and no error message related toLIWORKis issued byXERBLA. πINFOβINFOisINTEGER. On exit,INFO:= 0: successful exit. π< 0: ifINFO = -i, thei-th argument had an illegal value. π> 0: ifINFO = 1X, internal error inDLARRE, ifINFO = 2X, internal error inDLARRV. Here, the digitX = ABS( IINFO ) < 10, whereIINFOis the nonzero error code returned byDLARREorDLARRV, respectively. π
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Contributors:
- Inderjit Dhillon, IBM Almaden, USA
- Osni Marques, LBNL/NERSC, USA
- Christof Voemel, LBNL/NERSC, USA
Definition at line 262 of file dstegr.f.
subroutine sstegr (character jobz, character range, integer n, real,
dimension( * ) d, real, dimension( * ) e, real vl, real vu, integer il,
integer iu, real abstol, integer m, real, dimension( * ) w, real,
dimension( ldz, * ) z, integer ldz, integer, dimension( * ) isuppz,
real, dimension( * ) work, integer lwork, integer, dimension( * ) iwork,
integer liwork, integer info)
SSTEGR π
Purpose:
Okay so SSTEGR computes selected eigenvalues and, optionally, eigenvectors of a real symmetric tridiagonal matrix T. Any such unreduced matrix has a well defined set of pairwise different real eigenvalues, and the corresponding real eigenvectors are pairwise orthogonal. The spectrum may be computed either completely or partially by specifying either an interval (VL,VU] or a range of indices IL:IU for the desired eigenvalues. SSTEGR is a compatibility wrapper around the improved SSTEMR routine. See SSTEMR for further details. One important change is that the ABSTOL parameter no longer provides any benefit and hence is no longer used.
Note:SSTEGRandSSTEMRwork only on machines which follow IEEE-754 floating-point standard in their handling of infinities and NaNs. Normal execution may create these exceptional values and hence may abort due to a floating point exception in environments which do not conform to the IEEE-754 standard. π
Parameters
JOBZβJOBZisCHARACTER*1.= 'N': Compute eigenvalues only; π= 'V': Compute eigenvalues and eigenvectors. π
RANGEβRANGEisCHARACTER*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. π
NβNisINTEGER. The order of the matrix.N >= 0. πDβDisREALarray, dimension(N). On entry, theNdiagonal elements of the tridiagonal matrixT. On exit,Dis overwritten. πEβEisREALarray, dimension(N). On entry, the(N-1)subdiagonal elements of the tridiagonal matrixTin elements1toN-1ofE.E(N)need not be set on input, but is used internally as workspace. On exit,Eis overwritten. π«ΆVLβVLisREAL. IfRANGE='V', the lower bound of the interval to be searched for eigenvalues.VL < VU. Not referenced ifRANGE = 'A'or'I'. π₯VUβVUisREAL. IfRANGE='V', the upper bound of the interval to be searched for eigenvalues.VL < VU. Not referenced ifRANGE = 'A'or'I'. β¨ILβILisINTEGER. IfRANGE='I', the index of the smallest eigenvalue to be returned.1 <= IL <= IU <= N, ifN > 0. Not referenced ifRANGE = 'A'or'V'. πIUβIUisINTEGER. IfRANGE='I', the index of the largest eigenvalue to be returned.1 <= IL <= IU <= N, ifN > 0. Not referenced ifRANGE = 'A'or'V'. πABSTOLβABSTOLisREAL. Unused. Was the absolute error tolerance for the eigenvalues/eigenvectors in previous versions. πMβMisINTEGER. The total number of eigenvalues found.0 <= M <= N. IfRANGE = 'A',M = N, and ifRANGE = 'I',M = IU-IL+1. πWβWisREALarray, dimension(N). The firstMelements contain the selected eigenvalues in ascending order. πZZβ this is a REAL array, dimension(LDZ, max(1,M) ). IfJOBZ = 'V'andINFO = 0, then the firstMcolumns ofZhold the orthonormal eigenvectors of the matrixTthat match your selected eigenvalues, and the i-th column ofZis the eigenvector forW(i)π. IfJOBZ = 'N', thenZisn't even looked at, ghosted fr. Heads up bestie: you have to make sure at leastmax(1,M)columns are actually supplied in theZarray β and ifRANGE = 'V', the exact value ofMisn't known in advance so you gotta use an upper bound π. SupplyingNcolumns is always safe, that's the no-stress option π .LDZβLDZis INTEGER, the leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V'thenLDZ >= max(1,N). Don't skip this one, it's giving strict-parent energy π.ISUPPZβISUPPZis INTEGER array, dimension( 2*max(1,M) ). It's the support of the eigenvectors inZ, aka the indices that tell you where the nonzero elements inZactually live β¨. The i-th computed eigenvector is nonzero only in elementsISUPPZ( 2*i-1 )throughISUPPZ( 2*i ). This is relevant when the matrix is split, iykyk.ISUPPZis only accessed whenJOBZis'V'andN > 0π¦.WORKβWORKis REAL array, dimension(LWORK). On exit, ifINFO = 0,WORK(1)returns the optimal (and minimal)LWORKβ she tells you what she actually needed, iconic π.LWORKβLWORKis INTEGER, the dimension of the arrayWORK.LWORK >= max(1,18*N)ifJOBZ = 'V', andLWORK >= max(1,12*N)ifJOBZ = 'N'π. IfLWORK = -1, then a workspace query is assumed β the routine only calculates the optimal size of theWORKarray, returns that value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLAπ§. It's the "just asking, not ordering" mode.IWORKβIWORKis INTEGER array, dimension(LIWORK). On exit, ifINFO = 0,IWORK(1)returns the optimalLIWORKπΈ.LIWORKβLIWORKis INTEGER, the dimension of the arrayIWORK.LIWORK >= max(1,10*N)if the eigenvectors are desired, andLIWORK >= max(1,8*N)if only the eigenvalues are to be computed β¨. IfLIWORK = -1, then a workspace query is assumed β the routine only calculates the optimal size of theIWORKarray, returns this value as the first entry of theIWORKarray, and no error message related toLIWORKis issued byXERBLA. Same drill, integer edition π .INFOβINFOis INTEGER. On exit,INFOis lowkey the vibe report π:= 0: successful exit π slay.< 0: ifINFO = -i, the i-th argument had an illegal value π β check your inputs bestie.> 0: ifINFO = 1X, internal error inSLARRE; ifINFO = 2X, internal error inSLARRV. Here, the digitX = ABS( IINFO ) < 10, whereIINFOis the nonzero error code returned bySLARREorSLARRV, respectively. So like,INFO = 13meansSLARREreturnedIINFO = -3... no cap, read the digits π.
π«Ά Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π Contributors:
Inderjit Dhillon, IBM Almaden, USA Osni Marques, LBNL/NERSC, USA Christof Voemel, LBNL/NERSC, USA
Definition at line 262 of file sstegr.f.
subroutine zstegr (character jobz, character range, integer n, double
precision, dimension( * ) d, double precision, dimension( * ) e, 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, integer, dimension( * )
isuppz, double precision, dimension( * ) work, integer lwork, integer,
dimension( * ) iwork, integer liwork, integer info)
π ZSTEGR
β¨ Purpose:
ZSTEGR computes selected eigenvalues and, optionally, eigenvectors of a real symmetric tridiagonal matrix T π₯. Any such unreduced matrix has a well defined set of pairwise different real eigenvalues, and the corresponding real eigenvectors are pairwise orthogonal β that's just how she is β¨.
The spectrum may be computed either completely or partially by specifying either an interval (VL,VU] or a range of indices IL:IU for the eigenvalues you want π―.
ZSTEGR is a compatibility wrapper around the improved ZSTEMR routine. See ZSTEMR for further details β she's the main character, this one's the cover π
.
One important change: the ABSTOL parameter no longer provides any benefit and hence is no longer used π. It's giving deprecated-but-still-invited-to-the-party.
Note:ZSTEGRandZSTEMRwork only on machines which follow IEEE-754 floating-point standard in their handling of infinities and NaNs π€. Normal execution may create these exceptional values and hence may abort due to a floating point exception in environments which do not conform to the IEEE-754 standard. Like, don't say nobody warned you π.
π Parameters
JOBZβJOBZisCHARACTER*1:= 'N': compute eigenvalues only π= 'V': compute eigenvalues and eigenvectors π both, we're doing both.
RANGEβRANGEisCHARACTER*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 π―
NβNisINTEGER, the order of the matrix.N >= 0β.DβDisDOUBLE PRECISION array, dimension(N). On entry, theNdiagonal elements of the tridiagonal matrixT. On exit,Dis overwritten π« β she's gone, she served her purpose.EβEisDOUBLE PRECISION array, dimension(N). On entry, the(N-1)subdiagonal elements of the tridiagonal matrixTin elements1toN-1ofE.E(N)need not be set on input, but is used internally as workspace π§. On exit,Eis overwritten π .VLβVLisDOUBLE PRECISION. IfRANGE='V', the lower bound of the interval to be searched for eigenvalues.VL < VUπ. Not referenced ifRANGE = 'A'or'I'β she minds her business.VUβVUisDOUBLE PRECISION. IfRANGE='V', the upper bound of the interval to be searched for eigenvalues.VL < VUπ. Not referenced ifRANGE = 'A'or'I'.ILβILisINTEGER. IfRANGE='I', the index of the smallest eigenvalue to be returned.1 <= IL <= IU <= N, ifN > 0. Not referenced ifRANGE = 'A'or'V'β¨.IUβIUisINTEGER. IfRANGE='I', the index of the largest eigenvalue to be returned.1 <= IL <= IU <= N, ifN > 0. Not referenced ifRANGE = 'A'or'V'β¨.ABSTOLβABSTOLisDOUBLE PRECISION. Unused. Was the absolute error tolerance for the eigenvalues/eigenvectors in previous versions π―οΈ rip to a legend, she's retired.MβMisINTEGER, the total number of eigenvalues found.0 <= M <= Nπ’. IfRANGE = 'A',M = N, and ifRANGE = 'I',M = IU-IL+1β math is mathing π .WβWisDOUBLE PRECISION array, dimension(N). The firstMelements contain the selected eigenvalues in ascending order π β sorted, organized, she has her life together.ZβZisCOMPLEX*16 array, dimension(LDZ, max(1,M) ). IfJOBZ = 'V'and ifINFO = 0, then the firstMcolumns ofZcontain the orthonormal eigenvectors of the matrixTcorresponding to the selected eigenvalues, with the i-th column ofZholding the eigenvector associated withW(i)π. IfJOBZ = 'N', thenZis not referenced. Heads up bestie: you 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 π. SupplyingNcolumns is always safe π«Ά.LDZβLDZisINTEGER, the leading dimension of the arrayZ.LDZ >= 1, and ifJOBZ = 'V', thenLDZ >= max(1,N)π .ISUPPZβISUPPZisINTEGER array, dimension( 2*max(1,M) ). The support of the eigenvectors inZ, i.e., the indices indicating the nonzero elements inZβ¨. The i-th computed eigenvector is nonzero only in elementsISUPPZ( 2*i-1 )throughISUPPZ( 2*i ). This is relevant in the case when the matrix is split, iykyk π¦.ISUPPZis only accessed whenJOBZis'V'andN > 0.WORKβWORKisDOUBLE PRECISION array, dimension(LWORK). On exit, ifINFO = 0,WORK(1)returns the optimal (and minimal)LWORKπ.LWORKβLWORKisINTEGER, the dimension of the arrayWORK.LWORK >= max(1,18*N)ifJOBZ = 'V', andLWORK >= max(1,12*N)ifJOBZ = 'N'π. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLAπ§.IWORKβIWORKisINTEGER array, dimension(LIWORK). On exit, ifINFO = 0,IWORK(1)returns the optimalLIWORKπΈ.LIWORKβLIWORKβINTEGERπ this is the dimension of the arrayIWORK, bestie, and it has rules:LIWORK >= max(1,10*N)if you actually want the eigenvectors (iconic of you)LIWORK >= max(1,8*N)if you're only here for the eigenvalues (lowkey valid, less work)
And the spicy part πΆοΈ: if LIWORK = -1, then a workspace query is assumed β the routine only calculates the optimal size of the IWORK array, returns that value as the first entry of the IWORK array, and no error message related to LIWORK is issued by XERBLA. So it's giving "just asking, not committing" energy π
INFOβINTEGER, and on exit it's your little report card π:= 0: successful exit β¨ slay, we ate< 0: ifINFO = -i, the i-th argument had an illegal value π> 0: ifINFO = 1X, internal error inDLARRE; ifINFO = 2X, internal error inZLARRV. And here's the decoder ring: the digitX = ABS( IINFO ) < 10, whereIINFOis the nonzero error code returned byDLARREorZLARRV, respectively π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Not one, not two β four whole institutions carried this fr fr π«Ά
πΈ Contributors:
- Inderjit Dhillon, IBM Almaden, USA
- Osni Marques, LBNL/NERSC, USA
- Christof Voemel, LBNL/NERSC, USA
Shoutout to the girlies who made this happen π
π¦ Definition at line 262 of file zstegr.f.
Like, if you ever need to find it, that's literally where it lives π
π Author (the docs one)
Generated automatically by Doxygen for LAPACK from the source code. So no human typed this part β the machine did it, and honestly? It understood the assignment π€β¨
Okay so that's the whole page, bestie! Every flag, every bound, every error code β all of it, no cap π
Go forth and stegr responsibly.
And the cute little footer at the very bottom confirms the source and version: this is from LAPACK, Version 3.12.0, stamped for stegr(3) with its date β so you know exactly which era of the timeline you're reading πβ Periodt π«Ά
π¦ 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