SGEEVX(3)
π NAME π
Okay bestie, this is the sgeevx.f(3) page from the Library Functions Manual β yes, the LAPACK corner of the manual, we love to see it π
. The NAME section is literally this whole source path: /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgeevx.f.
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine SGEEVX (balanc, jobvl, jobvr, sense, n, a, lda, wr, wi, vl,
ldvl, vr, ldvr, ilo, ihi, scale, abnrm, rconde, rcondv, work, lwork,
iwork, info)
SGEEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices β¨
π¦ Function/Subroutine Documentation π¦
subroutine SGEEVX (character balanc, character jobvl, character jobvr,
character sense, integer n, real, dimension( lda, * ) a, integer lda,
real, dimension( * ) wr, real, dimension( * ) wi, real, dimension( ldvl,
* ) vl, integer ldvl, real, dimension( ldvr, * ) vr, integer ldvr,
integer ilo, integer ihi, real, dimension( * ) scale, real abnrm, real,
dimension( * ) rconde, real, dimension( * ) rcondv, real, dimension( * )
work, integer lwork, integer, dimension( * ) iwork, integer info)
Again for the people in the back: SGEEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices π
π Purpose π
Okay so SGEEVX computes, for an N-by-N real nonsymmetric matrix A, the eigenvalues and, optionally, the left and/or right eigenvectors. Obsessed.
Optionally also, it computes a balancing transformation to improve the conditioning of the eigenvalues and eigenvectors (ILO, IHI, SCALE, and ABNRM), reciprocal condition numbers for the eigenvalues (RCONDE), and reciprocal condition numbers for the right eigenvectors (RCONDV).
The right eigenvector v(j) of A satisfies
A * v(j) = lambda(j) * v(j)
where lambda(j) is its eigenvalue. The left eigenvector u(j) of A satisfies
u(j)**H * A = lambda(j) * u(j)**H
where u(j)**H denotes the conjugate-transpose of u(j).
The computed eigenvectors are normalized to have Euclidean norm equal to 1 and largest component real. Periodt.
Balancing a matrix means permuting the rows and columns to make it more nearly upper triangular, and applying a diagonal similarity transformation D * A * D**(-1), where D is a diagonal matrix, to make its rows and columns closer in norm and the condition numbers of its eigenvalues and eigenvectors smaller. The computed reciprocal condition numbers correspond to the balanced matrix. Permuting rows and columns will not change the condition numbers (in exact arithmetic) but diagonal scaling will. For further explanation of balancing, see section 4.10.2 of the LAPACK Users' Guide.
π Parameters π
BALANCβCHARACTER*1. Indicates how the input matrix should be diagonally scaled and/or permuted to improve the conditioning of its eigenvalues.= 'N': Do not diagonally scale or permute.= 'P': Perform permutations to make the matrix more nearly upper triangular. Do not diagonally scale.= 'S': Diagonally scale the matrix, i.e. replaceAbyD*A*D**(-1), whereDis a diagonal matrix chosen to make the rows and columns ofAmore equal in norm. Do not permute.= 'B': Both diagonally scale and permuteA.- Computed reciprocal condition numbers will be for the matrix after balancing and/or permuting. Permuting does not change condition numbers (in exact arithmetic), but balancing does.
JOBVLβCHARACTER*1.= 'N': left eigenvectors ofAare not computed;= 'V': left eigenvectors ofAare computed.- If
SENSE = 'E'or'B',JOBVLmust ='V'.
JOBVRβCHARACTER*1.= 'N': right eigenvectors ofAare not computed;= 'V': right eigenvectors ofAare computed.- If
SENSE = 'E'or'B',JOBVRmust ='V'.
SENSEβCHARACTER*1. Determines which reciprocal condition numbers are computed.= 'N': None are computed;= 'E': Computed for eigenvalues only;= 'V': Computed for right eigenvectors only;= 'B': Computed for eigenvalues and right eigenvectors.- If
SENSE = 'E'or'B', both left and right eigenvectors must also be computed (JOBVL = 'V'andJOBVR = 'V').
NβINTEGER. The order of the matrixA.N >= 0.AβREALarray, dimension(LDA,N). On entry, theN-by-NmatrixA. On exit,Ahas been overwritten. IfJOBVL = 'V'orJOBVR = 'V',Acontains the real Schur form of the balanced version of the input matrixA.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).WRβREALarray, dimension(N).WIβREALarray, dimension(N).WRandWIcontain the real and imaginary parts, respectively, of the computed eigenvalues. Complex conjugate pairs of eigenvalues will appear consecutively with the eigenvalue having the positive imaginary part first.VLβREALarray, dimension(LDVL,N). IfJOBVL = 'V', the left eigenvectorsu(j)are stored one after another in the columns ofVL, in the same order as their eigenvalues. IfJOBVL = 'N',VLis not referenced. If thej-th eigenvalue is real, thenu(j) = VL(:,j), thej-th column ofVL. If thej-th and(j+1)-st eigenvalues form a complex conjugate pair, thenu(j) = VL(:,j) + i*VL(:,j+1)andu(j+1) = VL(:,j) - i*VL(:,j+1).LDVLβINTEGER. The leading dimension of the arrayVL.LDVL >= 1; ifJOBVL = 'V',LDVL >= N.VRβREALarray, dimension(LDVR,N). IfJOBVR = 'V', the right eigenvectorsv(j)are stored one after another in the columns ofVR, in the same order as their eigenvalues. IfJOBVR = 'N',VRis not referenced. If thej-th eigenvalue is real, thenv(j) = VR(:,j), thej-th column ofVR. If thej-th and(j+1)-st eigenvalues form a complex conjugate pair, thenv(j) = VR(:,j) + i*VR(:,j+1)andv(j+1) = VR(:,j) - i*VR(:,j+1).LDVRβINTEGER. The leading dimension of the arrayVR.LDVR >= 1, and ifJOBVR = 'V',LDVR >= N.ILOβINTEGER.IHIβINTEGER.ILOandIHIare integer values determined whenAwas balanced. The balancedA(i,j) = 0ifI > JandJ = 1,...,ILO-1orI = IHI+1,...,N.SCALEβREALarray, dimension(N). Details of the permutations and scaling factors applied when balancingA. IfP(j)is the index of the row and column interchanged with row and columnj, andD(j)is the scaling factor applied to row and columnj, then
SCALE(J) = P(J), for J = 1,...,ILO-1
= D(J), for J = ILO,...,IHI
= P(J) for J = IHI+1,...,N.
The order in which the interchanges are made is N to IHI+1, then 1 to ILO-1.
ABNRMβREAL. The one-norm of the balanced matrix (the maximum of the sum of absolute values of elements of any column).RCONDEβREALarray, dimension(N).RCONDE(j)is the reciprocal condition number of thej-th eigenvalue.RCONDVβREALarray, dimension(N).RCONDV(j)is the reciprocal condition number of thej-th right eigenvector.WORKβREALarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβINTEGER. The dimension of the arrayWORK. IfSENSE = 'N'or'E',LWORK >= max(1,2*N), and ifJOBVL = 'V'orJOBVR = 'V',LWORK >= 3*N. IfSENSE = 'V'or'B',LWORK >= N*(N+6). For good performance,LWORKmust generally be larger.- If
LWORK = -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.
- If
IWORKβINTEGERarray, dimension(2*N-2). IfSENSE = 'N'or'E', not referenced.INFOβINTEGER.= 0: successful exit.< 0: ifINFO = -i, thei-th argument had an illegal value.> 0: ifINFO = i, the QR algorithm failed to compute all the eigenvalues, and no eigenvectors or condition numbers have been computed; elements1:ILO-1andi+1:NofWRandWIcontain eigenvalues which have converged.
πΈ Author πΈ
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 303 of file sgeevx.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Okay bestie, that's the whole page π the footer energy is LAPACK Version 3.12.0 and /home/abui...RC/sgeevx.f(3) β go be iconic with your eigenvalues π
β¨
π¦ 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