SRC/sgeevx.f(3)
SRC/sgeevx.f(3) β from the Library Functions Manual. Bestie, this is the LAPACK sgeevx page, and it is giving main-character eigenvalue energy. π
β¨
π NAME π
SRC/sgeevx.f β that's the name, no cap. π«Ά
πΈ 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)
SGEEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. π
π¦ Purpose π¦
Okay so here's the tea: SGEEVX computes the eigenvalues of an N-by-N real nonsymmetric matrix A, and optionally the left and/or right eigenvectors too. π
Optionally it also 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). It's giving thorough. π
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. IfSENSE = 'E'or'B',JOBVLmust ='V'.JOBVRβCHARACTER*1.'N': right eigenvectors ofAare not computed;'V': right eigenvectors ofAare computed. IfSENSE = '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' and JOBVR = '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 the j-th eigenvalue is real, thenu(j) = VL(:,j), the j-th column ofVL. If the j-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 the j-th eigenvalue is real, thenv(j) = VR(:,j), the j-th column ofVR. If the j-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 the j-th eigenvalue.RCONDVβREALarray, dimension(N).RCONDV(j)is the reciprocal condition number of the j-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 the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
IWORKβINTEGERarray, dimension(2*N-2). IfSENSE = 'N'or'E', not referenced.INFOβINTEGER.= 0: successful exit< 0: ifINFO = -i, the i-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.
That's the whole page, bestie β LAPACK Version 3.12.0, source SRC/sgeevx.f(3) β go forth and 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