SRC/sgeev.f(3)
hey bestie π welcome to the Library Functions Manual page for SRC/sgeev.f(3), aka the SGEEV chapter of the group chat. This is the one that does eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices β no cap, itβs a whole moment. β¨
π NAME π
SRC/sgeev.f
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
subroutine sgeev (jobvl, jobvr, n, a, lda, wr, wi, vl, ldvl, vr, ldvr,
work, lwork, info)
SGEEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. periodt. π
π¦ Function/Subroutine Documentation π¦
subroutine sgeev (character jobvl, character jobvr, 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, real, dimension( * ) work,
integer lwork, integer info)
SGEEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. π«Ά
π Purpose: π
okay so hereβs the tea, bestie: SGEEV computes, for an N-by-N real nonsymmetric matrix A, the eigenvalues and, optionally, the left and/or right eigenvectors. iconic behavior. π
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. β¨
π Parameters π
JOBVLβJOBVLisCHARACTER*1= 'N': left eigenvectors ofAare not computed;= 'V': left eigenvectors ofAare computed.
JOBVRβJOBVRisCHARACTER*1= 'N': right eigenvectors ofAare not computed;= 'V': right eigenvectors ofAare computed.
NβNisINTEGER. The order of the matrixA.N >= 0.AβAisREAL array, dimension (LDA,N). On entry, theN-by-NmatrixA. On exit,Ahas been overwritten.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).WRβWRisREAL array, dimension (N).WIβWIisREAL array, dimension (N).WRandWIcontain the real and imaginary parts, respectively, of the computed eigenvalues. Complex conjugate pairs of eigenvalues appear consecutively with the eigenvalue having the positive imaginary part first.VLβVLisREAL 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. 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βLDVLisINTEGER. The leading dimension of the arrayVL.LDVL >= 1; ifJOBVL = 'V',LDVL >= N.VRβVRisREAL 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. 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βLDVRisINTEGER. The leading dimension of the arrayVR.LDVR >= 1; ifJOBVR = 'V',LDVR >= N.WORKβWORKisREAL array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER. The dimension of the arrayWORK.LWORK >= max(1,3*N), and ifJOBVL = 'V'orJOBVR = 'V',LWORK >= 4*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 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.
INFOβINFOisINTEGER= 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 have been computed; elementsi+1:NofWRandWIcontain eigenvalues which have converged.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 190 of file sgeev.f.
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code.
mwah π this footer sign-off is brought to you by LAPACK, Version 3.12.0, and SRC/sgeev.f(3) β byeee π
π¦ 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