doubleGEeigen(3)
π doubleGEeigen(3) π
πΈ NAME πΈ
doubleGEeigen β double π
okay so bestie, this is the LAPACK manual page for the doubleGEeigen crew. The NAME literally says doubleGEeigen - double. That's the whole name. No cap. π
π SYNOPSIS π
β¨ Functions β¨
dgeesβ computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. π
subroutine dgees (JOBVS, SORT, SELECT, N, A, LDA, SDIM, WR, WI, VS,
LDVS, WORK, LWORK, BWORK, INFO)
dgeesxβ computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. β¨
subroutine dgeesx (JOBVS, SORT, SELECT, SENSE, N, A, LDA, SDIM, WR, WI,
VS, LDVS, RCONDE, RCONDV, WORK, LWORK, IWORK, LIWORK, BWORK, INFO)
dgeevβ computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. π¦
subroutine dgeev (JOBVL, JOBVR, N, A, LDA, WR, WI, VL, LDVL, VR, LDVR,
WORK, LWORK, INFO)
dgeevxβ computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. πΈ
subroutine dgeevx (BALANC, JOBVL, JOBVR, SENSE, N, A, LDA, WR, WI, VL,
LDVL, VR, LDVR, ILO, IHI, SCALE, ABNRM, RCONDE, RCONDV, WORK, LWORK,
IWORK, INFO)
dggesβ computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. π
subroutine dgges (JOBVSL, JOBVSR, SORT, SELCTG, N, A, LDA, B, LDB, SDIM,
ALPHAR, ALPHAI, BETA, VSL, LDVSL, VSR, LDVSR, WORK, LWORK, BWORK,
INFO)
dgges3β computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices (blocked algorithm). π₯
subroutine dgges3 (JOBVSL, JOBVSR, SORT, SELCTG, N, A, LDA, B, LDB,
SDIM, ALPHAR, ALPHAI, BETA, VSL, LDVSL, VSR, LDVSR, WORK, LWORK,
BWORK, INFO)
dggesxβ computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. π
subroutine dggesx (JOBVSL, JOBVSR, SORT, SELCTG, SENSE, N, A, LDA, B,
LDB, SDIM, ALPHAR, ALPHAI, BETA, VSL, LDVSL, VSR, LDVSR, RCONDE,
RCONDV, WORK, LWORK, IWORK, LIWORK, BWORK, INFO)
dggevβ computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. π
subroutine dggev (JOBVL, JOBVR, N, A, LDA, B, LDB, ALPHAR, ALPHAI, BETA,
VL, LDVL, VR, LDVR, WORK, LWORK, INFO)
dggev3β computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices (blocked algorithm). β
subroutine dggev3 (JOBVL, JOBVR, N, A, LDA, B, LDB, ALPHAR, ALPHAI,
BETA, VL, LDVL, VR, LDVR, WORK, LWORK, INFO)
dggevxβ computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. π
subroutine dggevx (BALANC, JOBVL, JOBVR, SENSE, N, A, LDA, B, LDB,
ALPHAR, ALPHAI, BETA, VL, LDVL, VR, LDVR, ILO, IHI, LSCALE, RSCALE,
ABNRM, BBNRM, RCONDE, RCONDV, WORK, LWORK, IWORK, BWORK, INFO)
β¨ Detailed Description β¨
This is the group of double eigenvalue driver functions for GE matrices. That's the vibe. π
π Function Documentation π
π¦ subroutine dgees π¦
subroutine dgees (character JOBVS, character SORT, external SELECT, integer
N, double precision, dimension( lda, * ) A, integer LDA, integer SDIM,
double precision, dimension( * ) WR, double precision, dimension( * )
WI, double precision, dimension( ldvs, * ) VS, integer LDVS, double
precision, dimension( * ) WORK, integer LWORK, logical, dimension( * )
BWORK, integer INFO)
DGEES computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. π
β¨ Purpose β¨
DGEES 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). slay. β¨
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). math bestie. π§
π Parameters π
JOBVSβ isCHARACTER*1.= 'N': Schur vectors are not computed;= 'V': Schur vectors are computed. periodt. π
SORTβ isCHARACTER*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β is aLOGICAL FUNCTIONof twoDOUBLE PRECISIONarguments.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 complex eigenvalues are selected. 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 caseINFOis set toN+2(seeINFObelow). πNβ isINTEGER. The order of the matrixA.N >= 0. πAβ isDOUBLE PRECISIONarray, dimension(LDA,N). On entry, the N-by-N matrixA. On exit,Ahas been overwritten by its real Schur formT. π¦LDAβ isINTEGER. The leading dimension of the arrayA.LDA >= max(1,N). πΈSDIMβ isINTEGER. 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β isDOUBLE PRECISIONarray, dimension(N). β¨WIβ isDOUBLE PRECISIONarray, 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β isDOUBLE PRECISIONarray, dimension(LDVS,N). IfJOBVS = 'V',VScontains the orthogonal matrixZof Schur vectors. IfJOBVS = 'N',VSis not referenced. πLDVSβ isINTEGER. The leading dimension of the arrayVS.LDVS >= 1; ifJOBVS = 'V',LDVS >= N. πWORKβ isDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)contains the optimalLWORK. βLWORKβ isINTEGER. The dimension of the arrayWORK.LWORK >= max(1,3*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. π₯BWORKβ isLOGICALarray, dimension(N). Not referenced ifSORT = 'N'. πINFOβ isINTEGER.= 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 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.
π¦ subroutine dgeesx π¦
subroutine dgeesx (character JOBVS, character SORT, external SELECT,
character SENSE, integer N, double precision, dimension( lda, * ) A,
integer LDA, integer SDIM, double precision, dimension( * ) WR, double
precision, dimension( * ) WI, double precision, dimension( ldvs, * ) VS,
integer LDVS, double precision RCONDE, double precision RCONDV, double
precision, dimension( * ) WORK, integer LWORK, integer, dimension( * )
IWORK, integer LIWORK, logical, dimension( * ) BWORK, integer INFO)
DGEESX computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. π
β¨ Purpose β¨
DGEESX 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). iconic. β¨
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's upper quasi-triangular with 1-by-1 and 2-by-2 blocks. The 2-by-2 blocks get standardized into the shape
[ a b ]
[ c a ]
where b*c < 0. And the eigenvalues of a block like that? They're a +- sqrt(bc). Cute, right? π
β¨ Parameters β¨
JOBVSβCHARACTER*1. Do we compute Schur vectors or nah?= 'N': Schur vectors are not computed;= 'V': Schur vectors are computed. π
SORTβCHARACTER*1. Tells us 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β aLOGICAL FUNCTIONof twoDOUBLE PRECISIONarguments. Bestie,SELECTmust be declaredEXTERNALin the calling subroutine, no cap.- If
SORT = 'S',SELECTis used to select eigenvalues to sort to the top left of the Schur form. - If
SORT = 'N',SELECTis not referenced (it's giving wallflower πΈ). - 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 are. Periodt, they're a package deal. - Heads up though: 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 caseINFOmay be set toN+3(peepINFObelow). π
- If
SENSEβCHARACTER*1. Determines which reciprocal condition numbers get 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.- If
SENSE = 'E','V'or'B', thenSORTmust equal'S'. That's the rule, fr fr.
NβINTEGER. The order of the matrixA.N >= 0.AβDOUBLE PRECISIONarray, dimension(LDA, N).- On entry, the N-by-N matrix
A. - On exit,
Ais overwritten by its real Schur formT. Gone but iconic π
- On entry, the N-by-N matrix
LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).SDIMβINTEGER.- If
SORT = 'N',SDIM = 0. - If
SORT = 'S',SDIM =number of eigenvalues (after sorting) for whichSELECTis true. (Complex conjugate pairs for whichSELECTis true for either eigenvalue count as 2. Yes, they count double. Slay.)
- If
WRβDOUBLE PRECISIONarray, dimension(N).WIβDOUBLE PRECISIONarray, 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βDOUBLE PRECISIONarray, dimension(LDVS,N).- If
JOBVS = 'V',VScontains the orthogonal matrixZof Schur vectors. - If
JOBVS = 'N',VSis not referenced.
- If
LDVSβINTEGER. The leading dimension of the arrayVS.LDVS >= 1, and ifJOBVS = 'V',LDVS >= N.RCONDEβDOUBLE PRECISION.- If
SENSE = 'E'or'B',RCONDEcontains the reciprocal condition number for the average of the selected eigenvalues. - Not referenced if
SENSE = 'N'or'V'.
- If
RCONDVβDOUBLE PRECISION.- If
SENSE = 'V'or'B',RCONDVcontains the reciprocal condition number for the selected right invariant subspace. - Not referenced if
SENSE = 'N'or'E'.
- If
WORKβDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)).- On exit, if
INFO = 0,WORK(1)returns the optimalLWORK. Bestie it's literally telling you what it wants π₯°
- On exit, if
LWORKβINTEGER. The dimension of the arrayWORK.LWORK >= max(1,3*N).- Also, if
SENSE = '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. Bigger is better, it's giving main character energy. - If
LWORK = -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.
- Also, if
IWORKβINTEGERarray, dimension(MAX(1,LIWORK)).- On exit, if
INFO = 0,IWORK(1)returns the optimalLIWORK.
- On exit, if
LIWORKβINTEGER. The dimension of the arrayIWORK.LIWORK >= 1; ifSENSE = 'V'or'B',LIWORK >= SDIM*(N-SDIM).- Note that
SDIM*(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. π - If
LIWORK = -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.
- Note that
BWORKβLOGICALarray, dimension(N). Not referenced ifSORT = 'N'.INFOβINTEGER.= 0: successful exit β¨< 0: ifINFO = -i, the i-th argument had an illegal value. Rude.> 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.
π subroutine dgeev (character JOBVL, character JOBVR, integer N, double precision, dimension( lda, * ) A, integer LDA, double precision, dimension( * ) WR, double precision, dimension( * ) WI, double precision, dimension( ldvl, * ) VL, integer LDVL, double precision, dimension( ldvr, * ) VR, integer LDVR, double precision, dimension( * ) WORK, integer LWORK, integer INFO) π
DGEEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices. Yes bestie, optionally, we love options.
Purpose:
DGEEV computes, for an N-by-N real nonsymmetric matrix A, the eigenvalues and, optionally, 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).
The computed eigenvectors are normalized to have Euclidean norm equal to 1 and largest component real. Clean, normalized, demure. π«Ά
Parameters
JOBVLβCHARACTER*1.= 'N': left eigenvectors ofAare not computed;= 'V': left eigenvectors ofAare computed.
JOBVRβCHARACTER*1.= 'N': right eigenvectors ofAare not computed;= 'V': right eigenvectors ofAare computed.
NβINTEGER. The order of the matrixA.N >= 0.AβDOUBLE PRECISIONarray, dimension(LDA,N).- On entry, the N-by-N matrix
A. - On exit,
Ahas been overwritten. Rip toA, it served π
- On entry, the N-by-N matrix
LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).WRβDOUBLE PRECISIONarray, dimension(N).WIβDOUBLE PRECISIONarray, 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βDOUBLE PRECISIONarray, dimension(LDVL,N).- If
JOBVL = 'V', the left eigenvectorsu(j)are stored one after another in the columns ofVL, in the same order as their eigenvalues. - If
JOBVL = '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). The way they pair up... obsessed. π¦
- If
LDVLβINTEGER. The leading dimension of the arrayVL.LDVL >= 1; ifJOBVL = 'V',LDVL >= N.VRVRβ DOUBLE PRECISION array, dimension(LDVR,N)β bestie this is where your right eigenvectors live if you asked for them. WhenJOBVR = 'V', the right eigenvectorsv(j)get stacked one after another in the columns ofVR, in the exact same order as their eigenvalues. WhenJOBVR = 'N',VRis not referenced (she's off duty, don't touch her π ). If the j-th eigenvalue is real, thenv(j) = VR(:,j)β literally just the j-th column ofVR. And 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)β iconic complex-pair behaviour, the two columns carry the real and imaginary parts together π¦LDVRβ INTEGER β the leading dimension of the arrayVR. So like,LDVR >= 1; and ifJOBVR = 'V', thenLDVR >= N. No shortcuts, queen πWORKβ DOUBLE PRECISION array, dimension(MAX(1,LWORK))β on exit, ifINFO = 0, thenWORK(1)returns the optimalLWORK. She's the workspace bestie, she holds everything πΈLWORKβ INTEGER β the dimension of the arrayWORK. Here's the tea:LWORK >= max(1,3*N), and ifJOBVL = 'V'orJOBVR = 'V', thenLWORK >= 4*N. And for good performance,LWORKmust generally be larger β like, do the most for yourself, ok? β¨
Also, 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. Sneaky little trick but it's legal, no cap π
INFOβ INTEGER β the receipts π= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value. Not her fault, it's yours π> 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. RIP to the ones that didn't make it π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ subroutine dgeevx π¦
subroutine dgeevx (character BALANC, character JOBVL, character JOBVR,
character SENSE, integer N, double precision, dimension( lda, * ) A,
integer LDA, double precision, dimension( * ) WR, double precision,
dimension( * ) WI, double precision, dimension( ldvl, * ) VL, integer
LDVL, double precision, dimension( ldvr, * ) VR, integer LDVR, integer
ILO, integer IHI, double precision, dimension( * ) SCALE, double
precision ABNRM, double precision, dimension( * ) RCONDE, double
precision, dimension( * ) RCONDV, double precision, dimension( * ) WORK,
integer LWORK, integer, dimension( * ) IWORK, integer INFO)
DGEEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices β she's the deluxe version of the vibe, periodt π
β¨ Purpose: β¨
DGEEVX computes for an N-by-N real nonsymmetric matrix A, the eigenvalues and, optionally, the left and/or right eigenvectors. Lowkey her whole personality is eigenvalues, highkey she does more π
Optionally also, she computes a balancing transformation to improve the conditioning of the eigenvalues and eigenvectors (ILO, IHI, SCALE, and ABNRM), reciprocal condition numbers for the eigenvalues (RCONDE), and reciprocal condition numbers for the right eigenvectors (RCONDV). She's doing the MOST, and we love her for it π
The right eigenvector v(j) of A satisfies:
A * v(j) = lambda(j) * v(j)
where lambda(j) is its eigenvalue. And 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). Left and right, she's ambidextrous fr fr π«Ά
The computed eigenvectors are normalized to have Euclidean norm equal to 1 and largest component real. Clean, tidy, iconic β
Now, balancing a matrix β okay so this is a whole thing, let me explain π β means permuting the rows and columns to make it more nearly upper triangular, and applying a diagonal similarity transformation D * A * D**(-1), where D is a diagonal matrix, to make its rows and columns closer in norm and the condition numbers of its eigenvalues and eigenvectors smaller. The computed reciprocal condition numbers correspond to the balanced matrix. Permuting rows and columns will not change the condition numbers (in exact arithmetic) but diagonal scaling will. For further explanation of balancing, see section 4.10.2 of the LAPACK Users' Guide. Read it bestie, it's giving homework but it's giving β¨knowledgeβ¨
π Parameters π
BALANCβ CHARACTER*1 β indicates how the input matrix should be diagonally scaled and/or permuted to improve the conditioning of its eigenvalues.= 'N': Do not diagonally scale or permute; (chill mode, leave her alone)= 'P': Perform permutations to make the matrix more nearly upper triangular. Do not diagonally scale;= 'S': Diagonally scale the matrix, i.e. replaceAbyD*A*D**(-1), whereDis a diagonal matrix chosen to make the rows and columns ofAmore equal in norm. Do not permute;= 'B': Both diagonally scale and permuteA. Go big or go home π
Computed reciprocal condition numbers will be for the matrix after balancing and/or permuting. Permuting does not change condition numbers (in exact arithmetic), but balancing does. Important distinction, don't forget it π§
JOBVLβ CHARACTER*1 β= 'N': left eigenvectors ofAare not computed;= 'V': left eigenvectors ofAare computed.
If SENSE = 'E' or 'B', then JOBVL must = 'V'. Non-negotiable bestie, the rules are the rules π₯
JOBVRβ CHARACTER*1 β= 'N': right eigenvectors ofAare not computed;= 'V': right eigenvectors ofAare computed.
If SENSE = 'E' or 'B', then JOBVR must = 'V'. Same energy, same rule β¨
SENSEβ CHARACTER*1 β determines which reciprocal condition numbers are computed.= 'N': None are computed;= 'E': Computed for eigenvalues only;= 'V': Computed for right eigenvectors only;= 'B': Computed for eigenvalues and right eigenvectors.
If SENSE = 'E' or 'B', both left and right eigenvectors must also be computed (JOBVL = 'V' and JOBVR = 'V'). Package deal, no Γ la carte here π
Nβ INTEGER β the order of the matrixA.N >= 0.Aβ DOUBLE PRECISION array, dimension(LDA,N)β on entry, the N-by-N matrixA. On exit,Ahas been overwritten. IfJOBVL = 'V'orJOBVR = 'V', thenAcontains the real Schur form of the balanced version of the input matrixA. She changed her whole look, and honestly? Ate π₯LDAβ INTEGER β the leading dimension of the arrayA.LDA >= max(1,N).WRβ DOUBLE PRECISION array, dimension(N)WIβ DOUBLE PRECISION array, dimension(N)β soWRandWIcontain the real and imaginary parts, respectively, of the computed eigenvalues. Complex conjugate pairs of eigenvalues will appear consecutively with the eigenvalue having the positive imaginary part first. Order matters, bestie πVLβ DOUBLE PRECISION 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). Same pattern as the right side, she keeps it consistent πLDVLβ INTEGER β the leading dimension of the arrayVL.LDVL >= 1; ifJOBVL = 'V', thenLDVL >= N.VRβ DOUBLE PRECISION 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). Mirror mirror on the wall πͺLDVRβ INTEGER β the leading dimension of the arrayVR.LDVR >= 1, and ifJOBVR = 'V', thenLDVR >= N.ILOβ INTEGERIHIβ INTEGER β okay soILOandIHIare integer values determined whenAwas balanced. The balancedA(i,j) = 0ifI > JandJ = 1,...,ILO-1orI = IHI+1,...,N. She leaves little zeros behind like breadcrumbs πSCALEβ DOUBLE PRECISION array, dimension(N)β details of the permutations and scaling factors applied when balancingA. IfP(j)is the index of the row and column interchanged with row and column j, andD(j)is the scaling factor applied to row and column j, then:
SCALE(J) = P(J), for J = 1,...,ILO-1
= D(J), for J = ILO,...,IHI
= P(J) for J = IHI+1,...,N.
The order in which the interchanges are made is N to IHI+1, then 1 to ILO-1. Note the order, bestie, it's lowkey important π
ABNRMβ DOUBLE PRECISION β the one-norm of the balanced matrix (the maximum of the sum of absolute values of elements of any column).RCONDEβ DOUBLE PRECISION array, dimension(N)βRCONDE(j)is the reciprocal condition number of the j-th eigenvalue.RCONDVβ DOUBLE PRECISION array, dimension(N)βRCONDV(j)is the reciprocal condition number of the j-th right eigenvector.WORKβ DOUBLE PRECISION array, dimension(MAX(1,LWORK))β on exit, ifINFO = 0, thenWORK(1)returns the optimalLWORK. Same deal as before, she's the workspace πLWORKβ INTEGER β the dimension of the arrayWORK. IfSENSE = 'N'or'E', thenLWORK >= max(1,2*N), and ifJOBVL = 'V'orJOBVR = 'V', thenLWORK >= 3*N. IfSENSE = 'V'or'B', thenLWORK >= N*(N+6). For good performance,LWORKmust generally be larger. Give her room to breathe, she deserves it πΈ
okay so if LWORK = -1, that's the workspace-query vibe: the routine only calculates the optimal size of the WORK array, returns that value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA. π
no notes, no yelling.
IWORKβIWORKis INTEGER array, dimension(2*N-2). IfSENSE = 'N'or'E', it's just not referenced. πINFOβINFOis INTEGER:= 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 or condition numbers have been computed; elements1:ILO-1andi+1:NofWRandWIcontain eigenvalues which have converged.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
subroutine dgges
subroutine dgges (character JOBVSL, character JOBVSR, character SORT,
external SELCTG, integer N, double precision, dimension( lda, * ) A,
integer LDA, double precision, dimension( ldb, * ) B, integer LDB,
integer SDIM, double precision, dimension( * ) ALPHAR, double precision,
dimension( * ) ALPHAI, double precision, dimension( * ) BETA, double
precision, dimension( ldvsl, * ) VSL, integer LDVSL, double precision,
dimension( ldvsr, * ) VSR, integer LDVSR, double precision, dimension( *
) WORK, integer LWORK, logical, dimension( * ) BWORK, integer INFO)
DGGES computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices. π
Purpose
DGGES computes, for a pair of N-by-N real nonsymmetric matrices (A,B), the generalized eigenvalues, the generalized real Schur form (S,T), and optionally the left and/or right matrices of Schur vectors (VSL and VSR). Bestie, that gives you the generalized Schur factorization:
(A,B) = ( (VSL)*S*(VSR)**T, (VSL)*T*(VSR)**T )
Optionally, it also orders the eigenvalues so that a selected cluster of eigenvalues appears in the leading diagonal blocks of the upper quasi-triangular matrix S and the upper triangular matrix T. The leading columns of VSL and VSR then form an orthonormal basis for the corresponding left and right eigenspaces (deflating subspaces). π¦
(If you only need the generalized eigenvalues, use the driver DGGEV instead, which is faster. Not me giving you the shortcut β but yes, do that. πββοΈ)
A generalized eigenvalue for a pair of matrices (A,B) is a scalar w, or a ratio alpha/beta = w, such that A - w*B is singular. It's usually represented as the pair (alpha,beta), because there's a reasonable interpretation for beta=0 or both being zero. π
A pair of matrices (S,T) is in generalized real Schur form if T is upper triangular with non-negative diagonal and S is block upper triangular with 1-by-1 and 2-by-2 blocks. The 1-by-1 blocks correspond to real generalized eigenvalues, while 2-by-2 blocks of S get 'standardized' by making the corresponding elements of T have the form:
[ a 0 ]
[ 0 b ]
and the pair of corresponding 2-by-2 blocks in S and T will have a complex conjugate pair of generalized eigenvalues. π iconic behavior, honestly.
Parameters
JOBVSLβJOBVSLisCHARACTER*1= 'N': do not compute the left Schur vectors;= 'V': compute the left Schur vectors.
JOBVSRβJOBVSRisCHARACTER*1= 'N': do not compute the right Schur vectors;= 'V': compute the right Schur vectors.
SORTβSORTisCHARACTER*1. Specifies whether or not to order the eigenvalues on the diagonal of the generalized Schur form.= 'N': Eigenvalues are not ordered;= 'S': Eigenvalues are ordered (seeSELCTG);
SELCTGβSELCTGis a LOGICAL FUNCTION of three DOUBLE PRECISION arguments.SELCTGmust be declaredEXTERNALin the calling subroutine. IfSORT = 'N',SELCTGis not referenced. IfSORT = 'S',SELCTGis used to select eigenvalues to sort to the top left of the Schur form. An eigenvalue(ALPHAR(j)+ALPHAI(j))/BETA(j)is selected ifSELCTG(ALPHAR(j),ALPHAI(j),BETA(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 in the ill-conditioned case, a selected complex eigenvalue may no longer satisfySELCTG(ALPHAR(j),ALPHAI(j),BETA(j)) = .TRUE.after ordering.INFOis to be set toN+2in this case. π
NβNis INTEGER. The order of the matricesA,B,VSL, andVSR.N >= 0.AβAis DOUBLE PRECISION array, dimension(LDA, N). On entry, the first of the pair of matrices. On exit,Ahas been overwritten by its generalized Schur formS. π«LDAβLDAis INTEGER. The leading dimension ofA.LDA >= max(1,N).BβBis DOUBLE PRECISION array, dimension(LDB, N). On entry, the second of the pair of matrices. On exit,Bhas been overwritten by its generalized Schur formT. π«LDBβLDBis INTEGER. The leading dimension ofB.LDB >= max(1,N).SDIMβSDIMis INTEGER. IfSORT = 'N',SDIM = 0. IfSORT = 'S',SDIM = number of eigenvalues (after sorting) for which SELCTG is true. (Complex conjugate pairs for whichSELCTGis true for either eigenvalue count as 2.) βοΈALPHARβALPHARis DOUBLE PRECISION array, dimension(N)ALPHAIβALPHAIis DOUBLE PRECISION array, dimension(N)BETAβBETAis DOUBLE PRECISION array, dimension(N). On exit,(ALPHAR(j) + ALPHAI(j)*i)/BETA(j),j=1,...,N, will be the generalized eigenvalues.ALPHAR(j) + ALPHAI(j)*i, andBETA(j),j=1,...,Nare the diagonals of the complex Schur form(S,T)that would result if the 2-by-2 diagonal blocks of the real Schur form of(A,B)were further reduced to triangular form using 2-by-2 complex unitary transformations. IfALPHAI(j)is zero, then the j-th eigenvalue is real; if positive, then the j-th and (j+1)-st eigenvalues are a complex conjugate pair, withALPHAI(j+1)negative. π
Note: the quotientsALPHAR(j)/BETA(j)andALPHAI(j)/BETA(j)may easily over- or underflow, andBETA(j)may even be zero. So like⦠the user should avoid naively computing the ratio. fr fr. However,ALPHARandALPHAIwill be always less than and usually comparable withnorm(A)in magnitude, andBETAalways less than and usually comparable withnorm(B).
VSLβVSLis DOUBLE PRECISION array, dimension(LDVSL,N). IfJOBVSL = 'V',VSLwill contain the left Schur vectors. Not referenced ifJOBVSL = 'N'.LDVSLβLDVSLis INTEGER. The leading dimension of the matrixVSL.LDVSL >=1, and ifJOBVSL = 'V',LDVSL >= N.VSRβVSRis DOUBLE PRECISION array, dimension(LDVSR,N). IfJOBVSR = 'V',VSRwill contain the right Schur vectors. Not referenced ifJOBVSR = 'N'.LDVSRβLDVSRis INTEGER. The leading dimension of the matrixVSR.LDVSR >= 1, and ifJOBVSR = 'V',LDVSR >= N.WORKβWORKis DOUBLE PRECISION array, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK. πLWORKβLWORKis INTEGER. The dimension of the arrayWORK. IfN = 0,LWORK >= 1, elseLWORK >= 8*N+16. 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.
BWORKβBWORKis LOGICAL array, dimension(N). Not referenced ifSORT = 'N'. πINFOβINFOis INTEGER:= 0: successful exit β¨< 0: ifINFO = -i, the i-th argument had an illegal value π= 1,...,N: The QZ iteration failed.(A,B)are not in Schur form, butALPHAR(j),ALPHAI(j), andBETA(j)should be correct forj=INFO+1,...,N.> N:=N+1: other than QZ iteration failed inDHGEQZ.=N+2: after reordering, roundoff changed values of some complex eigenvalues so that leading eigenvalues in the Generalized Schur form no longer satisfySELCTG=.TRUE.This could also be caused due to scaling.=N+3: reordering failed inDTGSEN.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
subroutine dgges3
subroutine dgges3 (character JOBVSL, character JOBVSR, character SORT,
external SELCTG, integer N, double precision, dimension( lda, * ) A,
integer LDA, double precision, dimension( ldb, * ) B, integer LDB,
integer SDIM, double precision, dimension( * ) ALPHAR, double precision,
dimension( * ) ALPHAI, double precision, dimension( * ) BETA, double
precision, dimension( ldvsl, * ) VSL, integer LDVSL, double precision,
dimension( ldvsr, * ) VSR, integer LDVSR, double precision, dimension( *
) WORK, integer LWORK, logical, dimension( * ) BWORK, integer INFO)
DGGES3 computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices (blocked algorithm). same energy, but blocked. β¨
Purpose
DGGES3 computes for a pair of N-by-N real nonsymmetric matrices (A,B), the generalized eigenvalues, the generalized real Schur form (S,T), optionally, the left and/or right matrices of Schur vectors (VSL and VSR). This gives the generalized Schur factorization
(A,B) = ( (VSL)*S*(VSR)**T, (VSL)*T*(VSR)**T )
Optionally, it also orders the eigenvalues so that a selected cluster of eigenvalues appears in the leading diagonal blocks of the upper quasi-triangular matrix S and the upper triangular matrix T. The leading columns of VSL and VSR then form an orthonormal basis for the corresponding left and right eigenspaces (deflating subspaces). β¨
(If only the generalized eigenvalues are needed, use the driver DGGEV instead, which is faster.)
A generalized eigenvalue for a pair of matrices (A,B) is a scalar w or a ratio alpha/beta = w, such that A - w*B is singular. It is usually represented as the pair (alpha,beta), because there's a reasonable interpretation for beta=0 or for both being zero. π
A pair of matrices (S,T) is in generalized real Schur form if T is upper triangular with non-negative diagonal and S is block upper triangular with 1-by-1 and 2-by-2 blocks. The 1-by-1 blocks correspond to real generalized eigenvalues, while 2-by-2 blocks of S will be 'standardized' by making the corresponding elements of T have the form:
[ a 0 ]
[ 0 b ]
and the pair of corresponding 2-by-2 blocks in S and T will have a complex conjugate pair of generalized eigenvalues. π¦
π Parameters π
JOBVSLβ it's a CHARACTER*1, bestie.= 'N': do not compute the left Schur vectors.= 'V': compute the left Schur vectors. That's the whole vibe check. πJOBVSRβ also CHARACTER*1.= 'N': do not compute the right Schur vectors.= 'V': compute the right Schur vectors. Same energy, other side. β¨SORTβ CHARACTER*1. This one decides whether or not to order the eigenvalues on the diagonal of the generalized Schur form.= 'N': eigenvalues are not ordered.= 'S': eigenvalues are ordered (see SELCTG). πSELCTGβ SELCTG is a LOGICAL FUNCTION of three DOUBLE PRECISION arguments. SELCTG must be declared EXTERNAL in the calling subroutine β no cap, don't skip this. If SORT = 'N', then SELCTG is not referenced at all. If SORT = 'S', then SELCTG is used to select eigenvalues to sort to the top left of the Schur form. An eigenvalue (ALPHAR(j)+ALPHAI(j))/BETA(j) is selected if SELCTG(ALPHAR(j),ALPHAI(j),BETA(j)) is true; i.e. if either one of a complex conjugate pair of eigenvalues is selected, then both complex eigenvalues are selected. π«Ά
β οΈ heads up: in the ill-conditioned case, a selected complex eigenvalue may no longer satisfy SELCTG(ALPHAR(j),ALPHAI(j), BETA(j)) = .TRUE. after ordering. In that case INFO is to be set to N+2.
Nβ INTEGER. The order of the matrices A, B, VSL, and VSR. Constraint: N >= 0. πAβ DOUBLE PRECISION array, dimension (LDA, N). On entry, the first of the pair of matrices. On exit, A has been overwritten by its generalized Schur form S. (Gone, replaced, glow-up complete. β¨)LDAβ INTEGER. The leading dimension of A. LDA >= max(1,N).Bβ DOUBLE PRECISION array, dimension (LDB, N). On entry, the second of the pair of matrices. On exit, B has been overwritten by its generalized Schur form T. π«LDBβ INTEGER. The leading dimension of B. LDB >= max(1,N).SDIMβ INTEGER. If SORT = 'N', then SDIM = 0. If SORT = 'S', then SDIM = the number of eigenvalues (after sorting) for which SELCTG is true. (Complex conjugate pairs for which SELCTG is true for either eigenvalue count as 2.) πALPHARβ DOUBLE PRECISION array, dimension (N). πΈALPHAIβ DOUBLE PRECISION array, dimension (N). πΈBETAβ DOUBLE PRECISION array, dimension (N). On exit, (ALPHAR(j) + ALPHAI(j)*i)/BETA(j), j=1,...,N, will be the generalized eigenvalues. ALPHAR(j) + ALPHAI(j)*i, and BETA(j),j=1,...,N are the diagonals of the complex Schur form (S,T) that would result if the 2-by-2 diagonal blocks of the real Schur form of (A,B) were further reduced to triangular form using 2-by-2 complex unitary transformations. If ALPHAI(j) is zero, then the j-th eigenvalue is real; if positive, then the j-th and (j+1)-st eigenvalues are a complex conjugate pair, with ALPHAI(j+1) negative.
β οΈ note, bestie: the quotients ALPHAR(j)/BETA(j) and ALPHAI(j)/BETA(j) may easily over- or underflow, and BETA(j) may even be zero. So please avoid naively computing the ratio β that's a trap, fr fr. ALPHAR and ALPHAI will always be less than and usually comparable with norm(A) in magnitude, and BETA always less than and usually comparable with norm(B).
VSLβ DOUBLE PRECISION array, dimension (LDVSL,N). If JOBVSL = 'V', VSL will contain the left Schur vectors. Not referenced if JOBVSL = 'N'. πLDVSLβ INTEGER. The leading dimension of the matrix VSL. LDVSL >=1, and if JOBVSL = 'V', LDVSL >= N.VSRβ DOUBLE PRECISION array, dimension (LDVSR,N). If JOBVSR = 'V', VSR will contain the right Schur vectors. Not referenced if JOBVSR = 'N'. πLDVSRβ INTEGER. The leading dimension of the matrix VSR. LDVSR >= 1, and if JOBVSR = 'V', LDVSR >= N.WORKβ DOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, if INFO = 0, WORK(1) returns the optimal LWORK. π₯LWORKβ INTEGER. The dimension of the array WORK. 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. Sneaky but valid. πBWORKβ LOGICAL array, dimension (N). Not referenced if SORT = 'N'.INFOβ INTEGER. The receipts: π§Ύ- = 0: successful exit. slay.
- < 0: if INFO = -i, the i-th argument had an illegal value.
- = 1,...,N: the QZ iteration failed. (A,B) are not in Schur form, but ALPHAR(j), ALPHAI(j), and BETA(j) should be correct for j=INFO+1,...,N.
- > N:
- =N+1: other than QZ iteration failed in DLAQZ0.
- =N+2: after reordering, roundoff changed values of some complex eigenvalues so that leading eigenvalues in the Generalized Schur form no longer satisfy SELCTG=.TRUE. This could also be caused due to scaling.
- =N+3: reordering failed in DTGSEN.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ subroutine dggesx (character JOBVSL, character JOBVSR, character SORT, external SELCTG, character SENSE, integer N, double precision, dimension( lda, * ) A, integer LDA, double precision, dimension( ldb, * ) B, integer LDB, integer SDIM, double precision, dimension( * ) ALPHAR, double precision, dimension( * ) ALPHAI, double precision, dimension( * ) BETA, double precision, dimension( ldvsl, * ) VSL, integer LDVSL, double precision, dimension( ldvsr, * ) VSR, integer LDVSR, double precision, dimension( 2 ) RCONDE, double precision, dimension( 2 ) RCONDV, double precision, dimension( * ) WORK, integer LWORK, integer, dimension( * ) IWORK, integer LIWORK, logical, dimension( * ) BWORK, integer INFO) π¦
DGGESX computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices
π Purpose π
DGGESX computes for a pair of N-by-N real nonsymmetric matrices (A,B), the generalized eigenvalues, the real Schur form (S,T), and, optionally, the left and/or right matrices of Schur vectors (VSL and VSR). This gives the generalized Schur factorization
(A,B) = ( (VSL) S (VSR)**T, (VSL) T (VSR)**T )
Optionally, it also orders the eigenvalues so that a selected cluster of eigenvalues appears in the leading diagonal blocks of the upper quasi-triangular matrix S and the upper triangular matrix T; computes a reciprocal condition number for the average of the selected eigenvalues (RCONDE); and computes a reciprocal condition number for the right and left deflating subspaces corresponding to the selected eigenvalues (RCONDV). The leading columns of VSL and VSR then form an orthonormal basis for the corresponding left and right eigenspaces (deflating subspaces). β¨
A generalized eigenvalue for a pair of matrices (A,B) is a scalar w or a ratio alpha/beta = w, such that A - w*B is singular. It is usually represented as the pair (alpha,beta), as there's a reasonable interpretation for beta=0 or for both being zero. π
A pair of matrices (S,T) is in generalized real Schur form if T is upper triangular with non-negative diagonal and S is block upper triangular with 1-by-1 and 2-by-2 blocks. The 1-by-1 blocks correspond to real generalized eigenvalues, while 2-by-2 blocks of S will be 'standardized' by making the corresponding elements of T have the form:
[ a 0 ]
[ 0 b ]
and the pair of corresponding 2-by-2 blocks in S and T will have a complex conjugate pair of generalized eigenvalues. π¦
π Parameters π
JOBVSLβ CHARACTER*1.= 'N': do not compute the left Schur vectors.= 'V': compute the left Schur vectors. πJOBVSRβ CHARACTER*1.= 'N': do not compute the right Schur vectors.= 'V': compute the right Schur vectors. β¨SORTβSORTβCHARACTER*1. Tells the routine whether or not it should reorder the eigenvalues sitting on the diagonal of the generalized Schur form. Options are:'N': nope, eigenvalues are not ordered.'S': yep, eigenvalues are ordered (peepSELCTGfor the deets).
SELCTGβ aLOGICAL FUNCTIONthat takes threeDOUBLE PRECISIONarguments. You must declare itEXTERNALin the subroutine that's calling this. IfSORT = 'N',SELCTGisn't even looked at. IfSORT = 'S', it's the little judge that picks which eigenvalues get sorted up to the top left of the Schur form. An eigenvalue(ALPHAR(j)+ALPHAI(j))/BETA(j)is selected whenSELCTG(ALPHAR(j),ALPHAI(j),BETA(j))is true β meaning if either one of a complex conjugate pair gets selected, then both complex eigenvalues get selected, no splitting them up. π
Heads up bestie: a selected complex eigenvalue might not satisfySELCTG(ALPHAR(j),ALPHAI(j),BETA(j)) = .TRUE.anymore after ordering, because ordering can literally change the value of complex eigenvalues (especially if the eigenvalue is ill-conditioned). When that happens,INFOgets set toN+3. Not a vibe. π
SENSEβCHARACTER*1. Decides which reciprocal condition numbers get computed:'N': none, we're not doing that today.'E': computed for the average of selected eigenvalues only.'V': computed for the selected deflating subspaces only.'B': computed for both. Iconic, we love a completionist. β¨
If SENSE = 'E', 'V', or 'B', then SORT must equal 'S'. No exceptions, fr fr.
NβINTEGER. The order of the matricesA,B,VSL, andVSR. Constraint:N >= 0.AβDOUBLE PRECISIONarray, dimension(LDA, N). On entry, it's the first of the pair of matrices. On exit,Ahas been overwritten by its generalized Schur formS. Gone, replaced, glow-up complete. π¦LDAβINTEGER. The leading dimension ofA. Constraint:LDA >= max(1,N).BβDOUBLE PRECISIONarray, dimension(LDB, N). On entry, the second of the pair of matrices. On exit,Bhas been overwritten by its generalized Schur formT.LDBβINTEGER. The leading dimension ofB. Constraint:LDB >= max(1,N).SDIMβINTEGER. IfSORT = 'N', thenSDIM = 0. IfSORT = 'S', thenSDIM= the number of eigenvalues (after sorting) for whichSELCTGis true. And btw, complex conjugate pairs whereSELCTGis true for either eigenvalue count as 2. Double the girls, double the count. πALPHARβDOUBLE PRECISIONarray, dimension(N).ALPHAIβDOUBLE PRECISIONarray, dimension(N).BETAβDOUBLE PRECISIONarray, dimension(N).
On exit, (ALPHAR(j) + ALPHAI(j)*i)/BETA(j), j=1,...,N, will be the generalized eigenvalues. ALPHAR(j) + ALPHAI(j)*i and BETA(j), j=1,...,N are the diagonals of the complex Schur form (S,T) that would result if the 2-by-2 diagonal blocks of the real Schur form of (A,B) were further reduced to triangular form using 2-by-2 complex unitary transformations. If ALPHAI(j) is zero, then the j-th eigenvalue is real; if it's positive, then the j-th and (j+1)-st eigenvalues are a complex conjugate pair, with ALPHAI(j+1) negative.
Note, and this one matters: the quotientsALPHAR(j)/BETA(j)andALPHAI(j)/BETA(j)may easily over- or underflow, andBETA(j)may even be zero. So the user should avoid naively computing the ratio. However βALPHARandALPHAIwill always be less than and usually comparable withnorm(A)in magnitude, andBETAis always less than and usually comparable withnorm(B). So like, respect the pair, don't just divide. π
VSLβDOUBLE PRECISIONarray, dimension(LDVSL,N). IfJOBVSL = 'V',VSLwill contain the left Schur vectors. Not referenced ifJOBVSL = 'N'.LDVSLβINTEGER. The leading dimension of the matrixVSL.LDVSL >= 1, and ifJOBVSL = 'V', thenLDVSL >= N.VSRβDOUBLE PRECISIONarray, dimension(LDVSR,N). IfJOBVSR = 'V',VSRwill contain the right Schur vectors. Not referenced ifJOBVSR = 'N'.LDVSRβINTEGER. The leading dimension of the matrixVSR.LDVSR >= 1, and ifJOBVSR = 'V', thenLDVSR >= N.RCONDEβDOUBLE PRECISIONarray, dimension( 2 ). IfSENSE = 'E'or'B', thenRCONDE(1)andRCONDE(2)contain the reciprocal condition numbers for the average of the selected eigenvalues. Not referenced ifSENSE = 'N'or'V'.RCONDVβDOUBLE PRECISIONarray, dimension( 2 ). IfSENSE = 'V'or'B', thenRCONDV(1)andRCONDV(2)contain the reciprocal condition numbers for the selected deflating subspaces. Not referenced ifSENSE = 'N'or'E'.WORKβDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβINTEGER. The dimension of the arrayWORK.
If N = 0, LWORK >= 1, else if SENSE = 'E', 'V', or 'B': LWORK >= max( 8*N, 6*N+16, 2*SDIM*(N-SDIM) ), else LWORK >= max( 8*N, 6*N+16 ).
Note that 2*SDIM*(N-SDIM) <= N*N/2. Also note that an error is only returned if LWORK < max( 8*N, 6*N+16), but if SENSE = 'E' or 'V' or 'B' this may not be large enough. Slightly chaotic, but that's the rule. π
If LWORK = -1, then a workspace query is assumed; the routine only calculates the bound on the optimal size of the WORK array and the minimum size of the IWORK array, returns these values as the first entries of the WORK and IWORK arrays, and no error message related to LWORK or LIWORK is issued by XERBLA.
IWORKβINTEGERarray, dimension(MAX(1,LIWORK)). On exit, ifINFO = 0,IWORK(1)returns the minimumLIWORK.LIWORKβINTEGER. The dimension of the arrayIWORK.
If SENSE = 'N' or N = 0, LIWORK >= 1, otherwise LIWORK >= N+6.
If LIWORK = -1, then a workspace query is assumed; the routine only calculates the bound on the optimal size of the WORK array and the minimum size of the IWORK array, returns these values as the first entries of the WORK and IWORK arrays, and no error message related to LWORK or LIWORK is issued by XERBLA.
BWORKβLOGICALarray, dimension(N). Not referenced ifSORT = 'N'.INFOβINTEGER. The receipts:= 0: successful exit. We ate. π< 0: ifINFO = -i, the i-th argument had an illegal value.= 1,...,N: The QZ iteration failed.(A,B)are not in Schur form, butALPHAR(j),ALPHAI(j), andBETA(j)should be correct forj=INFO+1,...,N.> N:=N+1: other than QZ iteration failed inDHGEQZ=N+2: after reordering, roundoff changed values of some complex eigenvalues so that leading eigenvalues in the Generalized Schur form no longer satisfySELCTG=.TRUE.. This could also be caused due to scaling.=N+3: reordering failed inDTGSEN.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Further Details π¦
An approximate (asymptotic) bound on the average absolute error of the selected eigenvalues is
EPS * norm((A, B)) / RCONDE( 1 ).
An approximate (asymptotic) bound on the maximum angular error in the computed deflating subspaces is
EPS * norm((A, B)) / RCONDV( 2 ).
See LAPACK User's Guide, section 4.11 for more information. π
π subroutine dggev π
subroutine dggev (character JOBVL, character JOBVR, integer N, double
precision, dimension( lda, * ) A, integer LDA, double precision,
dimension( ldb, * ) B, integer LDB, double precision, dimension( * )
ALPHAR, double precision, dimension( * ) ALPHAI, double precision,
dimension( * ) BETA, double precision, dimension( ldvl, * ) VL, integer
LDVL, double precision, dimension( ldvr, * ) VR, integer LDVR, double
precision, dimension( * ) WORK, integer LWORK, integer INFO)
DGGEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices
π― Purpose π―
DGGEV computes, for a pair of N-by-N real nonsymmetric matrices (A,B), the generalized eigenvalues, and optionally, the left and/or right generalized eigenvectors. Bestie it does the whole thing. π₯
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's usually represented as the pair (alpha,beta), because there's a reasonable interpretation for beta=0, and even for both being zero. Slay, edge cases handled.
The right eigenvector v(j) corresponding to the eigenvalue lambda(j) of (A,B) satisfies
A * v(j) = lambda(j) * B * v(j).
The left eigenvector u(j) corresponding to the eigenvalue 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). Conjugate-transpose, not just transpose, don't play yourself. π
π Parameters π
JOBVLβCHARACTER*1.'N': do not compute the left generalized eigenvectors;'V': compute the left generalized eigenvectors.
JOBVRβCHARACTER*1.'N': do not compute the right generalized eigenvectors;'V': compute the right generalized eigenvectors.
NβINTEGER. The order of the matricesA,B,VL, andVR. Constraint:N >= 0.AAβ aDOUBLE PRECISIONarray, dimension(LDA, N). On entry it's the matrix A from your pair (A,B). On exit, bestieβ¦ it's been overwritten. Gone. Different girl now πLDAβINTEGER. The leading dimension ofA. Rule of the land:LDA >= max(1,N).Bβ aDOUBLE PRECISIONarray, dimension(LDB, N). On entry it's the matrix B from your pair (A,B). On exit, also overwritten π«LDBβINTEGER. The leading dimension ofB.LDB >= max(1,N), no exceptions.ALPHARβ aDOUBLE PRECISIONarray, dimension(N).ALPHAIβ aDOUBLE PRECISIONarray, dimension(N).BETAβ aDOUBLE PRECISIONarray, dimension(N). On exit,(ALPHAR(j) + ALPHAI(j)*i)/BETA(j),j=1,...,N, will be the generalized eigenvalues β¨ IfALPHAI(j)is zero then the j-th eigenvalue is real, periodt. If it's positive, then the j-th and(j+1)-st eigenvalues are a complex conjugate pair, withALPHAI(j+1)negative. Iconic pairing behavior honestly.
Heads up bestie: the quotientsALPHAR(j)/BETA(j)andALPHAI(j)/BETA(j)may easily over- or underflow, andBETA(j)may even be zero. So do not go naively computing the ratioalpha/beta, I am begging π That said βALPHARandALPHAIwill always be less than, and usually comparable with,norm(A)in magnitude, andBETAalways less than and usually comparable withnorm(B). So the pieces are chill even when the ratio isn't.
VLβ aDOUBLE PRECISIONarray, 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. If the j-th eigenvalue is real, thenu(j) = VL(:,j), the j-th column ofVL. If the j-th and(j+1)-th eigenvalues form a complex conjugate pair, thenu(j) = VL(:,j)+i*VL(:,j+1)andu(j+1) = VL(:,j)-i*VL(:,j+1). Each eigenvector is scaled so the largest component hasabs(real part)+abs(imag. part)=1. Not referenced ifJOBVL = 'N'β she simply doesn't get invited.LDVLβINTEGER. The leading dimension of the matrixVL.LDVL >= 1, and ifJOBVL = 'V', thenLDVL >= N.VRβ aDOUBLE PRECISIONarray, 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. If the j-th eigenvalue is real, thenv(j) = VR(:,j), the j-th column ofVR. If the j-th and(j+1)-th eigenvalues form a complex conjugate pair, thenv(j) = VR(:,j)+i*VR(:,j+1)andv(j+1) = VR(:,j)-i*VR(:,j+1). Each eigenvector is scaled so the largest component hasabs(real part)+abs(imag. part)=1. Not referenced ifJOBVR = 'N'.LDVRβINTEGER. The leading dimension of the matrixVR.LDVR >= 1, and ifJOBVR = 'V', thenLDVR >= N.WORKβ aDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0, thenWORK(1)returns the optimalLWORKπ«ΆLWORKβINTEGER. The dimension of the arrayWORK.LWORK >= max(1,8*N). And for good performance,LWORKmust generally be larger. Yes, larger. She's hungry for workspace π
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βINTEGER.= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value.= 1,...,N: The QZ iteration failed. No eigenvectors have been calculated, butALPHAR(j),ALPHAI(j), andBETA(j)should be correct forj=INFO+1,...,N.> N:=N+1: other than QZ iteration failed inDHGEQZ.=N+2: error return fromDTGEVC.
β¨ Author β¨
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π¦ subroutine dggev3 π¦
subroutine dggev3 (character JOBVL, character JOBVR, integer N, double
precision, dimension( lda, * ) A, integer LDA, double precision,
dimension( ldb, * ) B, integer LDB, double precision, dimension( * )
ALPHAR, double precision, dimension( * ) ALPHAI, double precision,
dimension( * ) BETA, double precision, dimension( ldvl, * ) VL, integer
LDVL, double precision, dimension( ldvr, * ) VR, integer LDVR, double
precision, dimension( * ) WORK, integer LWORK, integer INFO)
DGGEV3 computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices (blocked algorithm) π₯
Purpose β¨
DGGEV3 computes for a pair of N-by-N real nonsymmetric matrices (A,B) the generalized eigenvalues, and optionally, the left and/or right generalized eigenvectors. Yes, this is the blocked-algorithm sibling, and she's serving the exact same energy π
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), as there is a reasonable interpretation for beta=0, and even for both being zero. Not me being dramatic about zero, it's just literally true π
The right eigenvector v(j) corresponding to the eigenvalue lambda(j) of (A,B) satisfies
A * v(j) = lambda(j) * B * v(j).
The left eigenvector u(j) corresponding to the eigenvalue 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). Conjugate-transpose is the glow-up, iykyk π
Parameters π
JOBVLβCHARACTER*1.= 'N': do not compute the left generalized eigenvectors;= 'V': compute the left generalized eigenvectors.
JOBVRβCHARACTER*1.= 'N': do not compute the right generalized eigenvectors;= 'V': compute the right generalized eigenvectors.
NβINTEGER. The order of the matricesA,B,VL, andVR.N >= 0.Aβ aDOUBLE PRECISIONarray, dimension(LDA, N). On entry, the matrixAin the pair (A,B). On exit,Ahas been overwritten. She served her purpose and left π«‘LDAβINTEGER. The leading dimension ofA.LDA >= max(1,N).Bβ aDOUBLE PRECISIONarray, dimension(LDB, N). On entry, the matrixBin the pair (A,B). On exit,Bhas been overwritten.LDBβINTEGER. The leading dimension ofB.LDB >= max(1,N).ALPHARβ aDOUBLE PRECISIONarray, dimension(N).ALPHAIβ aDOUBLE PRECISIONarray, dimension(N).BETAβ aDOUBLE PRECISIONarray, dimension(N). On exit,(ALPHAR(j) + ALPHAI(j)*i)/BETA(j),j=1,...,N, will be the generalized eigenvalues β¨ IfALPHAI(j)is zero, then the j-th eigenvalue is real; if positive, then the j-th and(j+1)-st eigenvalues are a complex conjugate pair, withALPHAI(j+1)negative.
Same warning as before, and it still matters: the quotientsALPHAR(j)/BETA(j)andALPHAI(j)/BETA(j)may easily over- or underflow, andBETA(j)may even be zero. So the user should avoid naively computing the ratioalpha/beta, fr fr π However,ALPHARandALPHAIwill be always less than and usually comparable withnorm(A)in magnitude, andBETAalways less than and usually comparable withnorm(B).
VLβ aDOUBLE PRECISIONarray, 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. If the j-th eigenvalue is real, thenu(j) = VL(:,j), the j-th column ofVL. If the j-th and(j+1)-th eigenvalues form a complex conjugate pair, thenu(j) = VL(:,j)+i*VL(:,j+1)andu(j+1) = VL(:,j)-i*VL(:,j+1). Each eigenvector is scaled so the largest component hasabs(real part)+abs(imag. part)=1. Not referenced ifJOBVL = 'N'.LDVLβINTEGER. The leading dimension of the matrixVL.LDVL >= 1, and ifJOBVL = 'V', thenLDVL >= N.VRβ aDOUBLE PRECISIONarray, 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. If the j-th eigenvalue is real, thenv(j) = VR(:,j), the j-th column ofVR. If the j-th and(j+1)-th eigenvalues form a complex conjugate pair, thenv(j) = VR(:,j)+i*VR(:,j+1)andv(j+1) = VR(:,j)-i*VR(:,j+1). Each eigenvector is scaled so the largest component hasabs(real part)+abs(imag. part)=1. Not referenced ifJOBVR = 'N'.LDVRβINTEGER. The leading dimension of the matrixVR.LDVR >= 1, and ifJOBVR = 'V', thenLDVR >= N.WORKβ aDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0, thenWORK(1)returns the optimalLWORKπ«ΆLWORKβINTEGER.
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βINTEGER.= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value.= 1,...,N: The QZ iteration failed. No eigenvectors have been calculated, butALPHAR(j),ALPHAI(j), andBETA(j)should be correct forj=INFO+1,...,N.> N:=N+1: other than QZ iteration failed inDLAQZ0.=N+2: error return fromDTGEVC.
β¨ Author β¨
Univ. of Tennessee
Univ. of California Berkeley
ILOβ anINTEGER. It's half of a lil duo withIHI, bestie, and the glow-up explanation lives right below πIHIβ also anINTEGER. SoILOandIHIare these two integer values such that, on exit,A(i,j) = 0andB(i,j) = 0wheneveri > jandj = 1,...,ILO-1ori = IHI+1,...,N. Basically the corners got zeroed out β¨ And ifBALANC = 'N'or'S', thenILO = 1andIHI = N. Simple as that πLSCALEβDOUBLE PRECISIONarray, dimension(N). This one's the receipts for everything that happened to the left side ofAandBπ IfPL(j)is the index of the row interchanged with rowj, andDL(j)is the scaling factor applied to rowj, then:
LSCALE(j) = PL(j) for j = 1,...,ILO-1
= DL(j) for j = ILO,...,IHI
= PL(j) for j = IHI+1,...,N.
And the order the interchanges go down is N to IHI+1, then 1 to ILO-1. Noted, no cap π«Ά
RSCALEβDOUBLE PRECISIONarray, dimension(N). Same energy, but for the right side ofAandBπ¦ IfPR(j)is the index of the column interchanged with columnj, andDR(j)is the scaling factor applied to columnj, then:
RSCALE(j) = PR(j) for j = 1,...,ILO-1
= DR(j) for j = ILO,...,IHI
= PR(j) for j = IHI+1,...,N
And the order here? Also N to IHI+1, then 1 to ILO-1. Matching set, iconic π
ABNRMβDOUBLE PRECISION. It's the one-norm of the balanced matrixA. That's it, that's the whole vibe βBBNRMβDOUBLE PRECISION. The one-norm of the balanced matrixB. Sibling behavior, love that for them πΈRCONDEβDOUBLE PRECISIONarray, dimension(N). IfSENSE = 'E'or'B', this holds the reciprocal condition numbers of the eigenvalues, stored in consecutive elements of the array. For a complex conjugate pair of eigenvalues, two consecutive elements ofRCONDEget set to the same value. SoRCONDE(j),RCONDV(j), and thej-th columns ofVLandVRall correspond to thej-th eigenpair β they're a package deal, fr fr π And ifSENSE = 'Nor'V',RCONDEis not referenced. (Yes, the original says'Nwith a missing closing quote, and I am faithfully preserving that typo because the facts don't change, only the vibes π)RCONDVβDOUBLE PRECISIONarray, dimension(N). IfSENSE = 'V'or'B', this is the estimated reciprocal condition numbers of the eigenvectors, stored in consecutive elements of the array. For a complex eigenvector, two consecutive elements ofRCONDVget set to the same value. And if the eigenvalues can't be reordered to computeRCONDV(j), thenRCONDV(j)is set to0β which can only happen when the true value would've been super tiny anyway, so it's giving "we tried our best" π IfSENSE = 'N'or'E',RCONDVis not referenced.WORKβDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0, thenWORK(1)returns the optimalLWORK. The little peek into what you should have asked for πLWORKβINTEGER. The dimension of the arrayWORK. So like, the rules:LWORK >= max(1,2*N).- If
BALANC = 'S'or'B', orJOBVL = 'V', orJOBVR = 'V', thenLWORK >= max(1,6*N). - If
SENSE = 'E'or'B', thenLWORK >= max(1,10*N). - If
SENSE = 'V'or'B', thenLWORK >= 2*N*N+8*N+16.
LWORKβINTEGER</p>. And bestie, listen: the dimension of the arrayWORK.- If
SENSE = 'N', thenLWORK >= max(1,2*N). - otherwise
LWORK >= max(1,4*N).
- If
But like, if LWORK = -1, then a workspace query is assumed β the routine only figures out the optimal size of the WORK array, hands that value back as the first entry of WORK, and no error message related to LWORK is issued by XERBLA. It's giving "just asking, not committing." π
IWORKβINTEGERarray, dimension(N+6).
If SENSE = 'E', IWORK is not referenced. It's literally not invited to the party. π
BWORKβLOGICALarray, dimension(N).
If SENSE = 'N', BWORK is not referenced either. Two arrays sitting at home. π
INFOβINTEGER.= 0: successful exit β¨< 0: ifINFO = -i, the i-th argument had an illegal value.= 1,...,N:
The QZ iteration failed. No eigenvectors have been
calculated, but ALPHAR(j), ALPHAI(j), and BETA(j)
should be correct for j=INFO+1,...,N.
> N:=N+1: other than QZ iteration failed inDHGEQZ.=N+2: error return fromDTGEVC.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details
Okay so here's the tea on balancing, because it's actually kind of iconic. Balancing a matrix pair (A,B) includes, first, permuting rows and columns to isolate eigenvalues, and second, applying diagonal similarity transformation to the rows and columns to make the rows and columns as close in norm as possible. The computed reciprocal condition numbers correspond to the balanced matrix. Permuting rows and columns will not change the condition numbers (in exact arithmetic) but diagonal scaling will. For further explanation of balancing, see section 4.11.1.2 of LAPACK Users' Guide. π
An approximate error bound on the chordal distance between the i-th computed generalized eigenvalue w and the corresponding exact eigenvalue lambda is
chord(w, lambda) <= EPS * norm(ABNRM, BBNRM) / RCONDE(I)
An approximate error bound for the angle between the i-th computed eigenvector VL(i) or VR(i) is given by
EPS * norm(ABNRM, BBNRM) / DIF(i).
For further explanation of the reciprocal condition numbers RCONDE and RCONDV, see section 4.11 of LAPACK Users' Guide. No cap, the Users' Guide really said "read me." π«Ά
π Author
Generated automatically by Doxygen for LAPACK from the source code. The robot wrote this one, not a human, and honestly? Slay. π€β¨
And that's the whole page, bestie! π This was LAPACK Version 3.11.0, dated Sun Nov 27 2022, and it's the doubleGEeigen(3) manpage β you ate that, fr fr. Now go compute some generalized eigenvalues and be the main character of your own linear algebra journey. Periodt. ππΈ
π¦ where this page comes from
- debian bookworm: liblapack-doc 3.11.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms