SGEESX(3)
β¨ SGEESX(3) β¨
okay so bestie, this is the SGEESX(3) page from the Library Functions Manual, and itβs lowkey a whole main-character moment for real nonsymmetric matrices. The vibe? eigenvalues, Schur forms, Schur vectors, reciprocal condition numbers β the full glam package π
β¨
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/SRC/sgeesx.f
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine SGEESX (jobvs, sort, select, sense, n, a, lda, sdim, wr, wi, vs, ldvs, rconde, rcondv, work, lwork, iwork, liwork, bwork, info)β SGEESX computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices
π Function/Subroutine Documentation π
subroutine SGEESX (character jobvs, character sort, external select,
character sense, integer n, real, dimension( lda, * ) a, integer lda,
integer sdim, real, dimension( * ) wr, real, dimension( * ) wi, real,
dimension( ldvs, * ) vs, integer ldvs, real rconde, real rcondv, real,
dimension( * ) work, integer lwork, integer, dimension( * ) iwork,
integer liwork, logical, dimension( * ) bwork, integer info)
SGEESX computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices β periodt π
π«Ά Purpose π«Ά
okay so hereβs the tea: SGEESX computes, for an N-by-N real nonsymmetric matrix A, the eigenvalues, the real Schur form T, and, optionally, the matrix of Schur vectors Z. This gives 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; computes a reciprocal condition number for the average of the selected eigenvalues (RCONDE); and computes a reciprocal condition number for the right invariant subspace corresponding to the selected eigenvalues (RCONDV). The leading columns of Z form an orthonormal basis for this invariant subspace.
For further explanation of the reciprocal condition numbers RCONDE and RCONDV, see Section 4.10 of the LAPACK Usersβ Guide (where these quantities are called s and sep respectively).
A real 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).
πΈ Parameters πΈ
JOBVSβJOBVSisCHARACTER*1.= 'N': Schur vectors are not computed;= 'V': Schur vectors are computed.SORTβSORTisCHARACTER*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βSELECTis aLOGICAL FUNCTIONof twoREALarguments.SELECTmust be declaredEXTERNALin the calling subroutine. IfSORT = 'S',SELECTis used to select eigenvalues to sort to the top left of the Schur form. IfSORT = 'N',SELECTis not referenced. An eigenvalueWR(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 are. Note that a selected complex eigenvalue may no longer satisfySELECT(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 caseINFOmay be set toN+3(seeINFObelow).SENSEβSENSEisCHARACTER*1. Determines which reciprocal condition numbers are computed.= 'N': None are computed;= 'E': Computed for average of selected eigenvalues only;= 'V': Computed for selected right invariant subspace only;= 'B': Computed for both. IfSENSE = 'E','V'or'B',SORTmust equal'S'.NβNisINTEGER. The order of the matrixA.N >= 0.AβAisREAL array, dimension (LDA, N). On entry, the N-by-N matrixA. On exit,Ais overwritten by its real Schur formT.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).SDIMβSDIMisINTEGER. IfSORT = 'N',SDIM = 0. IfSORT = '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.)WRβWRisREAL array, dimension (N).WIβWIisREAL 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 appear consecutively with the eigenvalue having the positive imaginary part first.VSβVSisREAL array, dimension (LDVS,N). IfJOBVS = 'V',VScontains the orthogonal matrixZof Schur vectors. IfJOBVS = 'N',VSis not referenced.LDVSβLDVSisINTEGER. The leading dimension of the arrayVS.LDVS >= 1, and ifJOBVS = 'V',LDVS >= N.RCONDEβRCONDEisREAL. IfSENSE = 'E'or'B',RCONDEcontains the reciprocal condition number for the average of the selected eigenvalues. Not referenced ifSENSE = 'N'or'V'.RCONDVβRCONDVisREAL. IfSENSE = 'V'or'B',RCONDVcontains the reciprocal condition number for the selected right invariant subspace. Not referenced ifSENSE = 'N'or'E'.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). Also, ifSENSE = 'E'or'V'or'B',LWORK >= N+2*SDIM*(N-SDIM), whereSDIMis the number of selected eigenvalues computed by this routine. Note thatN+2*SDIM*(N-SDIM) <= N+N*N/2. Note also that an error is only returned ifLWORK < max(1,3*N), but ifSENSE = 'E'or'V'or'B'this may not be large enough. For good performance,LWORKmust generally be larger. IfLWORK = -1, then a workspace query is assumed; the routine only calculates upper bounds on the optimal sizes of the arraysWORKandIWORK, returns these values as the first entries of theWORKandIWORKarrays, and no error messages related toLWORKorLIWORKare issued byXERBLA.IWORKβIWORKisINTEGER array, dimension (MAX(1,LIWORK)). On exit, ifINFO = 0,IWORK(1)returns the optimalLIWORK.LIWORKβLIWORKisINTEGER. The dimension of the arrayIWORK.LIWORK >= 1; ifSENSE = 'V'or'B',LIWORK >= SDIM*(N-SDIM). Note thatSDIM*(N-SDIM) <= N*N/4. Note also that an error is only returned ifLIWORK < 1, but ifSENSE = 'V'or'B'this may not be large enough. IfLIWORK = -1, then a workspace query is assumed; the routine only calculates upper bounds on the optimal sizes of the arraysWORKandIWORK, returns these values as the first entries of theWORKandIWORKarrays, and no error messages related toLWORKorLIWORKare issued byXERBLA.BWORKβBWORKisLOGICAL array, dimension (N). Not referenced ifSORT = 'N'.INFOβINFOisINTEGER.= 0: successful exit.< 0: ifINFO = -i, the i-th argument had an illegal value.> 0: ifINFO = i, andiis:<= N: the QR algorithm failed to compute all the eigenvalues; elements1:ILO-1andi+1:NofWRandWIcontain those eigenvalues which have converged; ifJOBVS = 'V',VScontains the transformation 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 278 of file sgeesx.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, thatβs the whole page β LAPACK Version 3.12.0, source sgeesx.f, footer path /home/abui...RC/sgeesx.f(3). The date isnβt printed in this footer, so Iβm not inventing one, no cap πβ¨ slay and may your Schur form stay quasi-triangular π¦π
π¦ 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