SRC/DEPRECATED/dgegs.f(3)
π NAME π
okay so bestie, this is the manual page for SRC/DEPRECATED/dgegs.f from the Library Functions Manual. Itβs a deprecated LAPACK routine page, but weβre still giving it main character energy. β¨
πΈ SYNOPSIS πΈ
π Functions/Subroutines π
subroutine dgegs (jobvsl, jobvsr, n, a, lda, b, ldb, alphar, alphai,
beta, vsl, ldvsl, vsr, ldvsr, work, lwork, info)
DGEGS computes the eigenvalues, real Schur form, and, optionally, the left and/or right Schur vectors of a real matrix pair (A,B). periodt π
π¦ Function/Subroutine Documentation π¦
subroutine dgegs (character jobvsl, character jobvsr, 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( ldvsl, * ) vsl,
integer ldvsl, double precision, dimension( ldvsr, * ) vsr, integer
ldvsr, double precision, dimension( * ) work, integer lwork, integer
info)
DGEGS computes the eigenvalues, real Schur form, and, optionally, the left and/or right Schur vectors of a real matrix pair (A,B).
β¨ Purpose β¨
β οΈ This routine is deprecated and has been replaced by routine DGGES.
DGEGS computes the eigenvalues, real Schur form, and, optionally, left and/or right Schur vectors of a real matrix pair (A,B). Given two square matrices A and B, the generalized real Schur factorization has the form
A = Q*S*Z**T, B = Q*T*Z**T
where Q and Z are orthogonal matrices, T is upper triangular, and S is an upper quasi-triangular matrix with 1-by-1 and 2-by-2 diagonal blocks, the 2-by-2 blocks corresponding to complex conjugate pairs of eigenvalues of (A,B). The columns of Q are the left Schur vectors and the columns of Z are the right Schur vectors.
If only the eigenvalues of (A,B) are needed, the driver routine DGEGV should be used instead. See DGEGV for a description of the eigenvalues of the generalized nonsymmetric eigenvalue problem (GNEP).
π Parameters π
JOBVSLβCHARACTER*1.= 'N': do not compute the left Schur vectors;= 'V': compute the left Schur vectors (returned inVSL).JOBVSRβCHARACTER*1.= 'N': do not compute the right Schur vectors;= 'V': compute the right Schur vectors (returned inVSR).NβINTEGER. The order of the matricesA,B,VSL, andVSR.N >= 0.AβDOUBLE PRECISION array, dimension (LDA, N). On entry, the matrixA. On exit, the upper quasi-triangular matrixSfrom the generalized real Schur factorization.LDAβINTEGER. The leading dimension ofA.LDA >= max(1,N).BβDOUBLE PRECISION array, dimension (LDB, N). On entry, the matrixB. On exit, the upper triangular matrixTfrom the generalized real Schur factorization.LDBβINTEGER. The leading dimension ofB.LDB >= max(1,N).ALPHARβDOUBLE PRECISION array, dimension (N). The real parts of each scalaralphadefining an eigenvalue of GNEP.ALPHAIβDOUBLE PRECISION array, dimension (N). The imaginary parts of each scalaralphadefining an eigenvalue of GNEP. IfALPHAI(j)is zero, then thej-th eigenvalue is real; if positive, then thej-th and(j+1)-st eigenvalues are a complex conjugate pair, withALPHAI(j+1) = -ALPHAI(j).BETAβDOUBLE PRECISION array, dimension (N). The scalarsbetathat define the eigenvalues of GNEP. Together, the quantitiesalpha = (ALPHAR(j),ALPHAI(j))andbeta = BETA(j)represent thej-th eigenvalue of the matrix pair(A,B), in one of the formslambda = alpha/betaormu = beta/alpha. Since eitherlambdaormumay overflow, they should not, in general, be computed.VSLβDOUBLE PRECISION array, dimension (LDVSL,N). IfJOBVSL = 'V', the matrix of left Schur vectorsQ. Not referenced ifJOBVSL = 'N'.LDVSLβINTEGER. The leading dimension of the matrixVSL.LDVSL >=1, and ifJOBVSL = 'V',LDVSL >= N.VSRβDOUBLE PRECISION array, dimension (LDVSR,N). IfJOBVSR = 'V', the matrix of right Schur vectorsZ. Not referenced ifJOBVSR = 'N'.LDVSRβINTEGER. The leading dimension of the matrixVSR.LDVSR >= 1, and ifJOBVSR = 'V',LDVSR >= N.WORKβDOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβINTEGER. The dimension of the arrayWORK.LWORK >= max(1,4*N). For good performance,LWORKmust generally be larger. To compute the optimal value ofLWORK, callILAENVto get blocksizes (forDGEQRF,DORMQR, andDORGQR.) Then compute:NBis the MAX of the blocksizes forDGEQRF,DORMQR, andDORGQR. The optimalLWORKis2*N + N*(NB+1). 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.INFOβINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-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: errors that usually indicate LAPACK problems:=N+1: error return fromDGGBAL=N+2: error return fromDGEQRF=N+3: error return fromDORMQR=N+4: error return fromDORGQR=N+5: error return fromDGGHRD=N+6: error return fromDHGEQZ(other than failed iteration)=N+7: error return fromDGGBAK(computingVSL)=N+8: error return fromDGGBAK(computingVSR)=N+9: error return fromDLASCL(various places)
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 224 of file dgegs.f.
πΊ Author πΊ
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page, bestie π this iconic deprecated moment is from LAPACK, Version 3.12.0, and it lives at SRC/DEPRECATED/dgegs.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