/home/abui...RC/sgeev.f(3)
πΈ NAME πΈ
Okay so bestie, this is the manpage for /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgeev.f β and yes, that whole path is literally the name, no cap. It's part of the Library Functions Manual, and it's the file where SGEEV lives. π
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/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
So like, SGEEV computes the eigenvalues β and if you want, the left and/or right eigenvectors too β for GE matrices. Iconic behaviour fr fr. π
π 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. That's the whole vibe. π
π« Purpose π«
Okay so here's the tea. SGEEV computes, for an N-by-N real nonsymmetric matrix A, the eigenvalues β and, if you ask nicely, the left and/or right eigenvectors. π«Ά
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). (Yes, the **H is doing the heavy lifting there, iykyk.) π
The computed eigenvectors are normalized to have Euclidean norm equal to 1 and largest component real. Slay, normalized, periodt. π
π Parameters π
JOBVLβ isCHARACTER*1. Set it to'N'and the left eigenvectors ofAare not computed; set it to'V'and the left eigenvectors ofAare computed. That's it, that's the whole flag. πJOBVRβ isCHARACTER*1.'N'means right eigenvectors ofAare not computed;'V'means right eigenvectors ofAare computed. Same energy asJOBVLbut for the other side. πNβ isINTEGER. The order of the matrixA. Constraint:N >= 0. (Zero is allowed bestie, don't panic.) βAβ isREAL array, dimension (LDA,N). On entry, the N-by-N matrixA. On exitβ¦Ahas been overwritten. π Gone. Replaced. So if you needed the original, copy it first, ngl.LDAβ isINTEGER. The leading dimension of the arrayA. Constraint:LDA >= max(1,N). π₯WRβ isREAL array, dimension (N). That's the real-parts array, more on it in a sec. β¨WIβ isREAL array, dimension (N). SoWRandWIcontain 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. Order matters, don't shuffle them. πΈVLβ isREAL 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, then
u(j) = VL(:,j)β the j-th column ofVL. - If the j-th and (j+1)-st eigenvalues form a complex conjugate pair, then
u(j) = VL(:,j) + i*VL(:,j+1)andu(j+1) = VL(:,j) - i*VL(:,j+1). Two columns, one vibe. π¦
- If the j-th eigenvalue is real, then
LDVLβ isINTEGER. The leading dimension of the arrayVL. Constraint:LDVL >= 1; and ifJOBVL = 'V', thenLDVL >= N. π«ΆVRβ isREAL 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, then
v(j) = VR(:,j)β the j-th column ofVR. - If the j-th and (j+1)-st eigenvalues form a complex conjugate pair, then
v(j) = VR(:,j) + i*VR(:,j+1)andv(j+1) = VR(:,j) - i*VR(:,j+1). Mirror image of theVLsituation, iconic. π
- If the j-th eigenvalue is real, then
LDVRβ isINTEGER. The leading dimension of the arrayVR. Constraint:LDVR >= 1; and ifJOBVR = 'V', thenLDVR >= N. πWORKβ isREAL array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0, thenWORK(1)returns the optimalLWORK. Little bonus value, we love to see it. πLWORKβ isINTEGER. The dimension of the arrayWORK. Constraint:LWORK >= max(1,3*N), and ifJOBVL = 'V'orJOBVR = 'V', thenLWORK >= 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 theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA. Sneaky little-1, we stan. π
- If
INFOβ isINTEGER. The receipts:= 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. Partial results, bestie β handle with care. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 190 of file sgeev.f. π
π§ Author (the meta one) π§
Generated automatically by Doxygen for LAPACK from the source code. Not a human, just a very diligent little doc generator. π€β¨
And that's the whole page bestie β every flag, every constraint, every overwritten array. Go forth and diagonalize responsibly. π
LAPACK β Version 3.12.0, signed off from /home/abui...RC/sgeev.f(3). Catch you in the next manpage, mwah π«Άππ
π¦ 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