version 1.16, 2016/08/27 15:27:09
|
version 1.18, 2017/06/17 10:53:51
|
Line 2
|
Line 2
|
* |
* |
* =========== DOCUMENTATION =========== |
* =========== DOCUMENTATION =========== |
* |
* |
* Online html documentation available at |
* Online html documentation available at |
* http://www.netlib.org/lapack/explore-html/ |
* http://www.netlib.org/lapack/explore-html/ |
* |
* |
*> \htmlonly |
*> \htmlonly |
*> Download DHGEQZ + dependencies |
*> Download DHGEQZ + dependencies |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dhgeqz.f"> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dhgeqz.f"> |
*> [TGZ]</a> |
*> [TGZ]</a> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dhgeqz.f"> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dhgeqz.f"> |
*> [ZIP]</a> |
*> [ZIP]</a> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dhgeqz.f"> |
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dhgeqz.f"> |
*> [TXT]</a> |
*> [TXT]</a> |
*> \endhtmlonly |
*> \endhtmlonly |
* |
* |
* Definition: |
* Definition: |
* =========== |
* =========== |
Line 21
|
Line 21
|
* SUBROUTINE DHGEQZ( JOB, COMPQ, COMPZ, N, ILO, IHI, H, LDH, T, LDT, |
* SUBROUTINE DHGEQZ( JOB, COMPQ, COMPZ, N, ILO, IHI, H, LDH, T, LDT, |
* ALPHAR, ALPHAI, BETA, Q, LDQ, Z, LDZ, WORK, |
* ALPHAR, ALPHAI, BETA, Q, LDQ, Z, LDZ, WORK, |
* LWORK, INFO ) |
* LWORK, INFO ) |
* |
* |
* .. Scalar Arguments .. |
* .. Scalar Arguments .. |
* CHARACTER COMPQ, COMPZ, JOB |
* CHARACTER COMPQ, COMPZ, JOB |
* INTEGER IHI, ILO, INFO, LDH, LDQ, LDT, LDZ, LWORK, N |
* INTEGER IHI, ILO, INFO, LDH, LDQ, LDT, LDZ, LWORK, N |
Line 31
|
Line 31
|
* $ H( LDH, * ), Q( LDQ, * ), T( LDT, * ), |
* $ H( LDH, * ), Q( LDQ, * ), T( LDT, * ), |
* $ WORK( * ), Z( LDZ, * ) |
* $ WORK( * ), Z( LDZ, * ) |
* .. |
* .. |
* |
* |
* |
* |
*> \par Purpose: |
*> \par Purpose: |
* ============= |
* ============= |
Line 50
|
Line 50
|
*> |
*> |
*> If JOB='S', then the Hessenberg-triangular pair (H,T) is |
*> If JOB='S', then the Hessenberg-triangular pair (H,T) is |
*> also reduced to generalized Schur form, |
*> also reduced to generalized Schur form, |
*> |
*> |
*> H = Q*S*Z**T, T = Q*P*Z**T, |
*> H = Q*S*Z**T, T = Q*P*Z**T, |
*> |
*> |
*> where Q and Z are orthogonal matrices, P is an upper triangular |
*> where Q and Z are orthogonal matrices, P is an upper triangular |
*> matrix, and S is a quasi-triangular matrix with 1-by-1 and 2-by-2 |
*> matrix, and S is a quasi-triangular matrix with 1-by-1 and 2-by-2 |
*> diagonal blocks. |
*> diagonal blocks. |
Line 75
|
Line 75
|
*> generalized Schur factorization of (A,B): |
*> generalized Schur factorization of (A,B): |
*> |
*> |
*> A = (Q1*Q)*S*(Z1*Z)**T, B = (Q1*Q)*P*(Z1*Z)**T. |
*> A = (Q1*Q)*S*(Z1*Z)**T, B = (Q1*Q)*P*(Z1*Z)**T. |
*> |
*> |
*> To avoid overflow, eigenvalues of the matrix pair (H,T) (equivalently, |
*> To avoid overflow, eigenvalues of the matrix pair (H,T) (equivalently, |
*> of (A,B)) are computed as a pair of values (alpha,beta), where alpha is |
*> of (A,B)) are computed as a pair of values (alpha,beta), where alpha is |
*> complex and beta real. |
*> complex and beta real. |
Line 86
|
Line 86
|
*> alternate form of the GNEP |
*> alternate form of the GNEP |
*> mu*A*y = B*y. |
*> mu*A*y = B*y. |
*> Real eigenvalues can be read directly from the generalized Schur |
*> Real eigenvalues can be read directly from the generalized Schur |
*> form: |
*> form: |
*> alpha = S(i,i), beta = P(i,i). |
*> alpha = S(i,i), beta = P(i,i). |
*> |
*> |
*> Ref: C.B. Moler & G.W. Stewart, "An Algorithm for Generalized Matrix |
*> Ref: C.B. Moler & G.W. Stewart, "An Algorithm for Generalized Matrix |
Line 101
|
Line 101
|
*> \verbatim |
*> \verbatim |
*> JOB is CHARACTER*1 |
*> JOB is CHARACTER*1 |
*> = 'E': Compute eigenvalues only; |
*> = 'E': Compute eigenvalues only; |
*> = 'S': Compute eigenvalues and the Schur form. |
*> = 'S': Compute eigenvalues and the Schur form. |
*> \endverbatim |
*> \endverbatim |
*> |
*> |
*> \param[in] COMPQ |
*> \param[in] COMPQ |
Line 277
|
Line 277
|
* Authors: |
* Authors: |
* ======== |
* ======== |
* |
* |
*> \author Univ. of Tennessee |
*> \author Univ. of Tennessee |
*> \author Univ. of California Berkeley |
*> \author Univ. of California Berkeley |
*> \author Univ. of Colorado Denver |
*> \author Univ. of Colorado Denver |
*> \author NAG Ltd. |
*> \author NAG Ltd. |
* |
* |
*> \date June 2016 |
*> \date June 2016 |
* |
* |
Line 304
|
Line 304
|
$ ALPHAR, ALPHAI, BETA, Q, LDQ, Z, LDZ, WORK, |
$ ALPHAR, ALPHAI, BETA, Q, LDQ, Z, LDZ, WORK, |
$ LWORK, INFO ) |
$ LWORK, INFO ) |
* |
* |
* -- LAPACK computational routine (version 3.6.1) -- |
* -- LAPACK computational routine (version 3.7.0) -- |
* -- LAPACK is a software package provided by Univ. of Tennessee, -- |
* -- LAPACK is a software package provided by Univ. of Tennessee, -- |
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- |
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- |
* June 2016 |
* June 2016 |
Line 760
|
Line 760
|
$ S2, WR, WR2, WI ) |
$ S2, WR, WR2, WI ) |
* |
* |
IF ( ABS( (WR/S1)*T( ILAST, ILAST ) - H( ILAST, ILAST ) ) |
IF ( ABS( (WR/S1)*T( ILAST, ILAST ) - H( ILAST, ILAST ) ) |
$ .GT. ABS( (WR2/S2)*T( ILAST, ILAST ) |
$ .GT. ABS( (WR2/S2)*T( ILAST, ILAST ) |
$ - H( ILAST, ILAST ) ) ) THEN |
$ - H( ILAST, ILAST ) ) ) THEN |
TEMP = WR |
TEMP = WR |
WR = WR2 |
WR = WR2 |