/home/abui...RC/sgees.f(3)
π sgees.f(3) π
okay so this page is from the Library Functions Manual, and it is literally all about SGEES from LAPACK. The path bestie, do not panic: /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgees.f π«Ά
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgees.f
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine SGEES (jobvs, sort, select, n, a, lda, sdim, wr, wi, vs,
ldvs, work, lwork, bwork, info)
SGEESβ computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices π
π Function/Subroutine Documentation π
subroutine SGEES (character jobvs, character sort, external select, integer
n, real, dimension( lda, * ) a, integer lda, integer sdim, real,
dimension( * ) wr, real, dimension( * ) wi, real, dimension( ldvs, * )
vs, integer ldvs, real, dimension( * ) work, integer lwork, logical,
dimension( * ) bwork, integer info)
SGEES computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. Periodt. π
π Purpose π
okay so SGEES computes for an N-by-N real nonsymmetric matrix A the eigenvalues, the real Schur form T, and β if you ask nicely β the matrix of Schur vectors Z. That gives you the Schur factorization A = Z*T*(Z**T). π
Optionally, it also orders the eigenvalues on the diagonal of the real Schur form so that selected eigenvalues are at the top left. The leading columns of Z then form an orthonormal basis for the invariant subspace corresponding to the selected eigenvalues. β¨
A matrix is in real Schur form if it is upper quasi-triangular with 1-by-1 and 2-by-2 blocks. 2-by-2 blocks will be standardized in the form
[ a b ]
[ c a ]
where b*c < 0. The eigenvalues of such a block are a +- sqrt(bc). That is the whole vibe check. π
π§ Parameters π§
JOBVSβJOBVS is CHARACTER*1= 'N': Schur vectors are not computed;= 'V': Schur vectors are computed.
SORTβSORT is CHARACTER*1- Specifies whether or not to order the eigenvalues on the diagonal of the Schur form.
= 'N': Eigenvalues are not ordered;= 'S': Eigenvalues are ordered (seeSELECT).
SELECTβSELECT is a LOGICAL FUNCTION of two REAL argumentsSELECTmust be declaredEXTERNALin the calling subroutine.- If
SORT = 'S',SELECTis used to select eigenvalues to sort to the top left of the Schur form. - If
SORT = 'N',SELECTis not referenced. - An eigenvalue
WR(j)+sqrt(-1)*WI(j)is selected ifSELECT(WR(j),WI(j))is true; i.e., if either one of a complex conjugate pair of eigenvalues is selected, then both complex eigenvalues are selected. - Note that a selected complex eigenvalue may no longer satisfy
SELECT(WR(j),WI(j)) = .TRUE.after ordering, since ordering may change the value of complex eigenvalues (especially if the eigenvalue is ill-conditioned); in this caseINFOis set toN+2(seeINFObelow). π«Ά
NβN is INTEGER- The order of the matrix
A.N >= 0.
- The order of the matrix
AβA is REAL array, dimension (LDA,N)- On entry, the
N-by-NmatrixA. - On exit,
Ahas been overwritten by its real Schur formT.
- On entry, the
LDAβLDA is INTEGER- The leading dimension of the array
A.LDA >= max(1,N).
- The leading dimension of the array
SDIMβSDIM is INTEGER- If
SORT = 'N',SDIM = 0. - If
SORT = 'S',SDIM = number of eigenvalues (after sorting) for which SELECT is true. (Complex conjugate pairs for which SELECT is true for either eigenvalue count as 2.)
- If
WRβWR is REAL array, dimension (N)WIβWI is REAL array, dimension (N)WRandWIcontain the real and imaginary parts, respectively, of the computed eigenvalues in the same order that they appear on the diagonal of the output Schur formT.- Complex conjugate pairs of eigenvalues will appear consecutively with the eigenvalue having the positive imaginary part first.
VSβVS is REAL array, dimension (LDVS,N)- If
JOBVS = 'V',VScontains the orthogonal matrixZof Schur vectors. - If
JOBVS = 'N',VSis not referenced.
- If
LDVSβLDVS is INTEGER- The leading dimension of the array
VS.LDVS >= 1; ifJOBVS = 'V',LDVS >= N.
- The leading dimension of the array
WORKβWORK is REAL array, dimension (MAX(1,LWORK))- On exit, if
INFO = 0,WORK(1)contains the optimalLWORK.
- On exit, if
LWORKβLWORK is INTEGER- The dimension of the array
WORK.LWORK >= max(1,3*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.
- The dimension of the array
BWORKβBWORK is LOGICAL array, dimension (N)- Not referenced if
SORT = 'N'.
- Not referenced if
INFOβINFO is INTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value.> 0: ifINFO = i, and i is<= N: the QR algorithm failed to compute all the eigenvalues; elements1:ILO-1andi+1:NofWRandWIcontain those eigenvalues which have converged; ifJOBVS = 'V',VScontains the matrix which reducesAto its partially converged Schur form.= N+1: the eigenvalues could not be reordered because some eigenvalues were too close to separate (the problem is very ill-conditioned);= N+2: after reordering, roundoff changed values of some complex eigenvalues so that leading eigenvalues in the Schur form no longer satisfySELECT=.TRUE.This could also be caused by underflow due to scaling.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Definition at line 214 of file sgees.f. π¦
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
That is the whole page, bestie! Footer vibes: LAPACK Version 3.12.0 Β· /home/abui...RC/sgees.f(3) Β· generated automatically by Doxygen for LAPACK from the source code. The footer does not list a date, so no cap. π
π¦ 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