CGEEVX(3)
πΈ CGEEVX(3) β LAPACK Library Functions Manual πΈ
okay bestie, welcome to the CGEEVX(3) page from the LAPACK Library Functions Manual. This is the whole tea: eigenvalues, eigenvectors, balancing, condition numbers, and all the parameters. No cap, every detail is staying. π
β¨ NAME β¨
The NAME section is literally just this path, no extra lore:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/cgeevx.f
π« SYNOPSIS π«
Functions/Subroutines
Hereβs the synopsis call, copied exactly so you can match it character-for-character:
subroutine CGEEVX (balanc, jobvl, jobvr, sense, n, a, lda, w, vl, ldvl,
vr, ldvr, ilo, ihi, scale, abnrm, rconde, rcondv, work, lwork,
rwork, info)
CGEEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. Thatβs the one-liner, and itβs iconic. π¦
π«Ά Function/Subroutine Documentation π«Ά
Full signature, bestie
subroutine CGEEVX (character balanc, character jobvl, character jobvr,
character sense, integer n, complex, dimension( lda, * ) a, integer lda,
complex, dimension( * ) w, complex, dimension( ldvl, * ) vl, integer
ldvl, complex, dimension( ldvr, * ) vr, integer ldvr, integer ilo,
integer ihi, real, dimension( * ) scale, real abnrm, real, dimension( *
) rconde, real, dimension( * ) rcondv, complex, dimension( * ) work,
integer lwork, real, dimension( * ) rwork, integer info)
CGEEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. Same energy, now with the full parameter glow-up. β¨
π― Purpose π―
CGEEVX computes, for an N-by-N complex nonsymmetric matrix A, the eigenvalues and, optionally, the left and/or right eigenvectors.
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). Itβs giving βeigen-everything.β π
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. Slay normalization. π
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. iykyk β balancing is the main character here. π
π Parameters π
Okay, hereβs the whole cast. Every parameter, every value, every default-vibe detail. π
BALANCβBALANC is 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, ie. 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βJOBVL is CHARACTER*1.= 'N': left eigenvectors ofAare not computed;= 'V': left eigenvectors ofAare computed.- If
SENSE = 'E'or'B',JOBVLmust= 'V'.
JOBVRβJOBVR is CHARACTER*1.= 'N': right eigenvectors ofAare not computed;= 'V': right eigenvectors ofAare computed.- If
SENSE = 'E'or'B',JOBVRmust= 'V'.
SENSEβSENSE is 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βN is INTEGER. The order of the matrixA.N >= 0.AβA is COMPLEX array, dimension (LDA,N). On entry, theN-by-NmatrixA. On exit,Ahas been overwritten. IfJOBVL = 'V'orJOBVR = 'V',Acontains the Schur form of the balanced version of the matrixA.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).WβW is COMPLEX array, dimension (N).Wcontains the computed eigenvalues.VLβVL is COMPLEX array, 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.u(j) = VL(:,j), the j-th column ofVL.LDVLβLDVL is INTEGER. The leading dimension of the arrayVL.LDVL >= 1; ifJOBVL = 'V',LDVL >= N.VRβVR is COMPLEX array, 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.v(j) = VR(:,j), the j-th column ofVR.LDVRβLDVR is INTEGER. The leading dimension of the arrayVR.LDVR >= 1; ifJOBVR = 'V',LDVR >= N.ILOβILO is INTEGER.IHIβIHI is INTEGER.ILOandIHIare integer values determined whenAwas balanced. The balancedA(i,j) = 0ifI > JandJ = 1,...,ILO-1orI = IHI+1,...,N.SCALEβSCALE is REAL array, 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βABNRM is REAL. The one-norm of the balanced matrix (the maximum of the sum of absolute values of elements of any column).RCONDEβRCONDE is REAL array, dimension (N).RCONDE(j)is the reciprocal condition number of the j-th eigenvalue.RCONDVβRCONDV is REAL array, dimension (N).RCONDV(j)is the reciprocal condition number of the j-th right eigenvector.WORKβWORK is COMPLEX array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER. The dimension of the arrayWORK. IfSENSE = 'N'or'E',LWORK >= max(1,2*N), and ifSENSE = 'V'or'B',LWORK >= N*N+2*N. 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
RWORKβRWORK is REAL array, dimension (2*N).INFOβINFO is 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:NofWcontain eigenvalues which have converged.
π§βπ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 285 of file cgeevx.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
cute sign-off time: the footer says LAPACK Version 3.12.0 and points to /home/abui...RC/cgeevx.f(3). No separate date appears in this original, bestie β thatβs the footer tea. π«Άπ
π¦ 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