SRC/zggev.f(3)
π SRC/zggev.f(3) π
okay bestie, this page is from the Library Functions Manual and it's literally all about SRC/zggev.f β the zggev routine, its whole vibe, and every single argument. no cap, we're keeping all the details. π
πΈ NAME πΈ
SRC/zggev.f
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine zggev (jobvl, jobvr, n, a, lda, b, ldb, alpha, beta, vl, ldvl, vr, ldvr, work, lwork, rwork, info)β ZGGEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices
Here's the synopsis in its natural habitat:
subroutine zggev (jobvl, jobvr, n, a, lda, b, ldb, alpha, beta, vl,
ldvl, vr, ldvr, work, lwork, rwork, info)
π§ Function/Subroutine Documentation π§
π subroutine zggev π
subroutine zggev (character jobvl, character jobvr, integer n, complex*16,
dimension( lda, * ) a, integer lda, complex*16, dimension( ldb, * ) b,
integer ldb, complex*16, dimension( * ) alpha, complex*16, dimension( *
) beta, complex*16, dimension( ldvl, * ) vl, integer ldvl, complex*16,
dimension( ldvr, * ) vr, integer ldvr, complex*16, dimension( * ) work,
integer lwork, double precision, dimension( * ) rwork, integer info)
ZGGEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices
π― Purpose
okay so bestie, here's the main character energy of this routine. ZGGEV computes, for a pair of N-by-N complex nonsymmetric matrices (A,B), the generalized eigenvalues, and optionally the left and/or right generalized eigenvectors. β¨
A generalized eigenvalue for a pair of matrices (A,B) is a scalar lambda or a ratio alpha/beta = lambda, such that A - lambda*B is singular. It is usually represented as the pair (alpha,beta), because there is a reasonable interpretation for beta=0, and even for both being zero. π
The right generalized eigenvector v(j) corresponding to the generalized eigenvalue lambda(j) of (A,B) satisfies:
A * v(j) = lambda(j) * B * v(j).
The left generalized eigenvector u(j) corresponding to the generalized eigenvalues lambda(j) of (A,B) satisfies:
u(j)**H * A = lambda(j) * u(j)**H * B
where u(j)**H is the conjugate-transpose of u(j). π¦
π Parameters
JOBVLβJOBVL is CHARACTER*1;'N': do not compute the left generalized eigenvectors;'V': compute the left generalized eigenvectors.JOBVRβJOBVR is CHARACTER*1;'N': do not compute the right generalized eigenvectors;'V': compute the right generalized eigenvectors.NβN is INTEGER; the order of the matricesA,B,VL, andVR.N >= 0.AβA is COMPLEX*16 array, dimension (LDA, N); on entry, the matrixAin the pair(A,B); on exit,Ahas been overwritten.LDAβLDA is INTEGER; the leading dimension ofA.LDA >= max(1,N).BβB is COMPLEX*16 array, dimension (LDB, N); on entry, the matrixBin the pair(A,B); on exit,Bhas been overwritten.LDBβLDB is INTEGER; the leading dimension ofB.LDB >= max(1,N).ALPHAβALPHA is COMPLEX*16 array, dimension (N).BETAβBETA is COMPLEX*16 array, dimension (N); on exit,ALPHA(j)/BETA(j),j=1,...,N, will be the generalized eigenvalues. Note: the quotientsALPHA(j)/BETA(j)may easily over- or underflow, andBETA(j)may even be zero. Thus, the user should avoid naively computing the ratioalpha/beta. However,ALPHAwill be always less than and usually comparable withnorm(A)in magnitude, andBETAalways less than and usually comparable withnorm(B).VLβVL is COMPLEX*16 array, dimension (LDVL,N); ifJOBVL = 'V', the left generalized eigenvectorsu(j)are stored one after another in the columns ofVL, in the same order as their eigenvalues. Each eigenvector is scaled so the largest component hasabs(real part) + abs(imag. part) = 1. Not referenced ifJOBVL = 'N'.LDVLβLDVL is INTEGER; the leading dimension of the matrixVL.LDVL >= 1, and ifJOBVL = 'V',LDVL >= N.VRβVR is COMPLEX*16 array, dimension (LDVR,N); ifJOBVR = 'V', the right generalized eigenvectorsv(j)are stored one after another in the columns ofVR, in the same order as their eigenvalues. Each eigenvector is scaled so the largest component hasabs(real part) + abs(imag. part) = 1. Not referenced ifJOBVR = 'N'.LDVRβLDVR is INTEGER; the leading dimension of the matrixVR.LDVR >= 1, and ifJOBVR = 'V',LDVR >= N.WORKβWORK is COMPLEX*16 array, dimension (MAX(1,LWORK)); on exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER; the dimension of the arrayWORK.LWORK >= max(1,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 DOUBLE PRECISION array, dimension (8*N).INFOβINFO is INTEGER;= 0: successful exit;< 0: ifINFO = -i, thei-th argument had an illegal value;=1,...,N: the QZ iteration failed. No eigenvectors have been calculated, butALPHA(j)andBETA(j)should be correct forj=INFO+1,...,N;> N:=N+1: other then QZ iteration failed inZHGEQZ,=N+2: error return fromZTGEVC.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 215 of file zggev.f.
πͺ Author
Generated automatically by Doxygen for LAPACK from the source code.
That's the whole page, bestie. π From LAPACK Version 3.12.0, source SRC/zggev.f(3) β iconic, honestly. πβ¨
π¦ 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