SRC/cgeevx.f(3)
SRC/cgeevx.f(3) π
okay so this is a page from the Library Functions Manual, and itβs literally about cgeevx β a LAPACK routine that computes eigenvalues and, optionally, left and/or right eigenvectors for GE matrices. Buckle up bestie, weβre going linear-algebra mode β¨
π NAME π
SRC/cgeevx.f β thatβs the file, periodt.
β¨ SYNOPSIS β¨
Functions/Subroutines
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
π¦ Function/Subroutine Documentation π¦
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
π― Purpose
bestie, hereβs the tea: 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).
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.
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β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', JOBVL must = 'V'.
JOBVRβJOBVR is CHARACTER*1.= 'N': right eigenvectors ofAare not computed;= 'V': right eigenvectors ofAare computed.
If SENSE = 'E' or 'B', JOBVR must = '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' and JOBVR = 'V').
NβN is INTEGER. The order of the matrixA.N >= 0.AβA is COMPLEX array, dimension (LDA,N).- On entry, the
N-by-NmatrixA. - On exit,
Ahas been overwritten. IfJOBVL = 'V'orJOBVR = 'V',Acontains the Schur form of the balanced version of the matrixA.
- On entry, the
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).- If
JOBVL = 'V', the left eigenvectorsu(j)are stored one after another in the columns ofVL, in the same order as their eigenvalues. - If
JOBVL = 'N',VLis not referenced. u(j) = VL(:,j), thej-th column ofVL.
- If
LDVLβLDVL is INTEGER. The leading dimension of the arrayVL.LDVL >= 1; ifJOBVL = 'V',LDVL >= N.VRβVR is COMPLEX array, dimension (LDVR,N).- If
JOBVR = 'V', the right eigenvectorsv(j)are stored one after another in the columns ofVR, in the same order as their eigenvalues. - If
JOBVR = 'N',VRis not referenced. v(j) = VR(:,j), thej-th column ofVR.
- If
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 thej-th eigenvalue.RCONDVβRCONDV is REAL array, dimension (N).RCONDV(j)is the reciprocal condition number of thej-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.
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.
RWORKβRWORK is REAL array, dimension (2*N).INFOβINFO is 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: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.
thatβs the whole page, bestie β LAPACK Version 3.12.0 from SRC/cgeevx.f(3). stay balanced, keep your components real, and may your condition numbers be ever in your favor π
β¨π¦
π¦ 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