tgevc#
Functions
-
void stgevc(const char *side, const char *howmny, const INT *restrict select, const INT n, const f32 *restrict S, const INT lds, const f32 *restrict P, const INT ldp, f32 *restrict VL, const INT ldvl, f32 *restrict VR, const INT ldvr, const INT mm, INT *m, f32 *restrict work, INT *info)#
STGEVC computes some or all of the right and/or left eigenvectors of a pair of real matrices (S,P), where S is a quasi-triangular matrix and P is upper triangular.
Matrix pairs of this type are produced by the generalized Schur factorization of a matrix pair (A,B):
A = Q*S*Z**T, B = Q*P*Z**T
as computed by SGGHRD + SHGEQZ.
The right eigenvector x and the left eigenvector y of (S,P) corresponding to an eigenvalue w are defined by:
S*x = w*P*x, (y**H)*S = w*(y**H)*P,
where y**H denotes the conjugate transpose of y.
Parameters
inside= ‘R’: compute right eigenvectors only; = ‘L’: compute left eigenvectors only; = ‘B’: compute both right and left eigenvectors.
inhowmny= ‘A’: compute all right and/or left eigenvectors; = ‘B’: compute all right and/or left eigenvectors, backtransformed by the matrices in VR and/or VL; = ‘S’: compute selected right and/or left eigenvectors, specified by the logical array select.
inselectInteger array, dimension (n). If howmny=’S’, select specifies the eigenvectors to be computed. Nonzero means compute the eigenvector.
innThe order of the matrices S and P. n >= 0.
inSArray of dimension (lds, n). The upper quasi-triangular matrix S from a generalized Schur factorization.
inldsThe leading dimension of S. lds >= max(1,n).
inPArray of dimension (ldp, n). The upper triangular matrix P.
inldpThe leading dimension of P. ldp >= max(1,n).
inoutVLArray of dimension (ldvl, mm). Left eigenvectors.
inldvlThe leading dimension of VL. ldvl >= 1, and if side = ‘L’ or ‘B’, ldvl >= n.
inoutVRArray of dimension (ldvr, mm). Right eigenvectors.
inldvrThe leading dimension of VR. ldvr >= 1, and if side = ‘R’ or ‘B’, ldvr >= n.
inmmThe number of columns in VL and/or VR. mm >= m.
outmThe number of columns in VL and/or VR actually used.
outworkWorkspace array of dimension (6*n).
outinfo= 0: successful exit.
< 0: if info = -i, the i-th argument had an illegal value.
> 0: the 2-by-2 block (info:info+1) does not have a complex eigenvalue.
void stgevc(
const char* side,
const char* howmny,
const INT* restrict select,
const INT n,
const f32* restrict S,
const INT lds,
const f32* restrict P,
const INT ldp,
f32* restrict VL,
const INT ldvl,
f32* restrict VR,
const INT ldvr,
const INT mm,
INT* m,
f32* restrict work,
INT* info
);
Functions
-
void dtgevc(const char *side, const char *howmny, const INT *restrict select, const INT n, const f64 *restrict S, const INT lds, const f64 *restrict P, const INT ldp, f64 *restrict VL, const INT ldvl, f64 *restrict VR, const INT ldvr, const INT mm, INT *m, f64 *restrict work, INT *info)#
DTGEVC computes some or all of the right and/or left eigenvectors of a pair of real matrices (S,P), where S is a quasi-triangular matrix and P is upper triangular.
Matrix pairs of this type are produced by the generalized Schur factorization of a matrix pair (A,B):
A = Q*S*Z**T, B = Q*P*Z**T
as computed by DGGHRD + DHGEQZ.
The right eigenvector x and the left eigenvector y of (S,P) corresponding to an eigenvalue w are defined by:
S*x = w*P*x, (y**H)*S = w*(y**H)*P,
where y**H denotes the conjugate transpose of y.
Parameters
inside= ‘R’: compute right eigenvectors only; = ‘L’: compute left eigenvectors only; = ‘B’: compute both right and left eigenvectors.
inhowmny= ‘A’: compute all right and/or left eigenvectors; = ‘B’: compute all right and/or left eigenvectors, backtransformed by the matrices in VR and/or VL; = ‘S’: compute selected right and/or left eigenvectors, specified by the logical array select.
inselectInteger array, dimension (n). If howmny=’S’, select specifies the eigenvectors to be computed. Nonzero means compute the eigenvector.
innThe order of the matrices S and P. n >= 0.
inSArray of dimension (lds, n). The upper quasi-triangular matrix S from a generalized Schur factorization.
inldsThe leading dimension of S. lds >= max(1,n).
inPArray of dimension (ldp, n). The upper triangular matrix P.
inldpThe leading dimension of P. ldp >= max(1,n).
inoutVLArray of dimension (ldvl, mm). Left eigenvectors.
inldvlThe leading dimension of VL. ldvl >= 1, and if side = ‘L’ or ‘B’, ldvl >= n.
inoutVRArray of dimension (ldvr, mm). Right eigenvectors.
inldvrThe leading dimension of VR. ldvr >= 1, and if side = ‘R’ or ‘B’, ldvr >= n.
inmmThe number of columns in VL and/or VR. mm >= m.
outmThe number of columns in VL and/or VR actually used.
outworkWorkspace array of dimension (6*n).
outinfo= 0: successful exit.
< 0: if info = -i, the i-th argument had an illegal value.
> 0: the 2-by-2 block (info:info+1) does not have a complex eigenvalue.
void dtgevc(
const char* side,
const char* howmny,
const INT* restrict select,
const INT n,
const f64* restrict S,
const INT lds,
const f64* restrict P,
const INT ldp,
f64* restrict VL,
const INT ldvl,
f64* restrict VR,
const INT ldvr,
const INT mm,
INT* m,
f64* restrict work,
INT* info
);
Functions
-
void ctgevc(const char *side, const char *howmny, const INT *restrict select, const INT n, const c64 *restrict S, const INT lds, const c64 *restrict P, const INT ldp, c64 *restrict VL, const INT ldvl, c64 *restrict VR, const INT ldvr, const INT mm, INT *m, c64 *restrict work, f32 *restrict rwork, INT *info)#
CTGEVC computes some or all of the right and/or left eigenvectors of a pair of complex matrices (S,P), where S and P are upper triangular.
Matrix pairs of this type are produced by the generalized Schur factorization of a complex matrix pair (A,B):
A = Q*S*Z**H, B = Q*P*Z**H
as computed by CGGHRD + CHGEQZ.
The right eigenvector x and the left eigenvector y of (S,P) corresponding to an eigenvalue w are defined by:
S*x = w*P*x, (y**H)*S = w*(y**H)*P,
where y**H denotes the conjugate transpose of y. The eigenvalues are not input to this routine, but are computed directly from the diagonal elements of S and P.
This routine returns the matrices X and/or Y of right and left eigenvectors of (S,P), or the products Z*X and/or Q*Y, where Z and Q are input matrices. If Q and Z are the unitary factors from the generalized Schur factorization of a matrix pair (A,B), then Z*X and Q*Y are the matrices of right and left eigenvectors of (A,B).
Parameters
inside= ‘R’: compute right eigenvectors only; = ‘L’: compute left eigenvectors only; = ‘B’: compute both right and left eigenvectors.
inhowmny= ‘A’: compute all right and/or left eigenvectors; = ‘B’: compute all right and/or left eigenvectors, backtransformed by the matrices in VR and/or VL; = ‘S’: compute selected right and/or left eigenvectors, specified by the logical array select.
inselectInteger array, dimension (n). If howmny=’S’, select specifies the eigenvectors to be computed. Nonzero means compute the eigenvector. Not referenced if howmny = ‘A’ or ‘B’.
innThe order of the matrices S and P. n >= 0.
inSComplex array, dimension (lds, n). The upper triangular matrix S from a generalized Schur factorization.
inldsThe leading dimension of S. lds >= max(1,n).
inPComplex array, dimension (ldp, n). The upper triangular matrix P. P must have real diagonal elements.
inldpThe leading dimension of P. ldp >= max(1,n).
inoutVLComplex array, dimension (ldvl, mm). Left eigenvectors.
inldvlThe leading dimension of VL. ldvl >= 1, and if side = ‘L’ or ‘B’, ldvl >= n.
inoutVRComplex array, dimension (ldvr, mm). Right eigenvectors.
inldvrThe leading dimension of VR. ldvr >= 1, and if side = ‘R’ or ‘B’, ldvr >= n.
inmmThe number of columns in VL and/or VR. mm >= m.
outmThe number of columns in VL and/or VR actually used.
outworkComplex workspace array, dimension (2*n).
outrworkSingle precision workspace array, dimension (2*n).
outinfo= 0: successful exit.
< 0: if info = -i, the i-th argument had an illegal value.
void ctgevc(
const char* side,
const char* howmny,
const INT* restrict select,
const INT n,
const c64* restrict S,
const INT lds,
const c64* restrict P,
const INT ldp,
c64* restrict VL,
const INT ldvl,
c64* restrict VR,
const INT ldvr,
const INT mm,
INT* m,
c64* restrict work,
f32* restrict rwork,
INT* info
);
Functions
-
void ztgevc(const char *side, const char *howmny, const INT *restrict select, const INT n, const c128 *restrict S, const INT lds, const c128 *restrict P, const INT ldp, c128 *restrict VL, const INT ldvl, c128 *restrict VR, const INT ldvr, const INT mm, INT *m, c128 *restrict work, f64 *restrict rwork, INT *info)#
ZTGEVC computes some or all of the right and/or left eigenvectors of a pair of complex matrices (S,P), where S and P are upper triangular.
Matrix pairs of this type are produced by the generalized Schur factorization of a complex matrix pair (A,B):
A = Q*S*Z**H, B = Q*P*Z**H
as computed by ZGGHRD + ZHGEQZ.
The right eigenvector x and the left eigenvector y of (S,P) corresponding to an eigenvalue w are defined by:
S*x = w*P*x, (y**H)*S = w*(y**H)*P,
where y**H denotes the conjugate transpose of y. The eigenvalues are not input to this routine, but are computed directly from the diagonal elements of S and P.
This routine returns the matrices X and/or Y of right and left eigenvectors of (S,P), or the products Z*X and/or Q*Y, where Z and Q are input matrices. If Q and Z are the unitary factors from the generalized Schur factorization of a matrix pair (A,B), then Z*X and Q*Y are the matrices of right and left eigenvectors of (A,B).
Parameters
inside= ‘R’: compute right eigenvectors only; = ‘L’: compute left eigenvectors only; = ‘B’: compute both right and left eigenvectors.
inhowmny= ‘A’: compute all right and/or left eigenvectors; = ‘B’: compute all right and/or left eigenvectors, backtransformed by the matrices in VR and/or VL; = ‘S’: compute selected right and/or left eigenvectors, specified by the logical array select.
inselectInteger array, dimension (n). If howmny=’S’, select specifies the eigenvectors to be computed. Nonzero means compute the eigenvector. Not referenced if howmny = ‘A’ or ‘B’.
innThe order of the matrices S and P. n >= 0.
inSComplex array, dimension (lds, n). The upper triangular matrix S from a generalized Schur factorization.
inldsThe leading dimension of S. lds >= max(1,n).
inPComplex array, dimension (ldp, n). The upper triangular matrix P. P must have real diagonal elements.
inldpThe leading dimension of P. ldp >= max(1,n).
inoutVLComplex array, dimension (ldvl, mm). Left eigenvectors.
inldvlThe leading dimension of VL. ldvl >= 1, and if side = ‘L’ or ‘B’, ldvl >= n.
inoutVRComplex array, dimension (ldvr, mm). Right eigenvectors.
inldvrThe leading dimension of VR. ldvr >= 1, and if side = ‘R’ or ‘B’, ldvr >= n.
inmmThe number of columns in VL and/or VR. mm >= m.
outmThe number of columns in VL and/or VR actually used.
outworkComplex workspace array, dimension (2*n).
outrworkDouble precision workspace array, dimension (2*n).
outinfo= 0: successful exit.
< 0: if info = -i, the i-th argument had an illegal value.
void ztgevc(
const char* side,
const char* howmny,
const INT* restrict select,
const INT n,
const c128* restrict S,
const INT lds,
const c128* restrict P,
const INT ldp,
c128* restrict VL,
const INT ldvl,
c128* restrict VR,
const INT ldvr,
const INT mm,
INT* m,
c128* restrict work,
f64* restrict rwork,
INT* info
);