1DTGEXC(1)                LAPACK routine (version 3.2)                DTGEXC(1)
2
3
4

NAME

6       DTGEXC  -  reorders  the generalized real Schur decomposition of a real
7       matrix pair (A,B) using an orthogonal equivalence transformation    (A,
8       B) = Q * (A, B) * Z',
9

SYNOPSIS

11       SUBROUTINE DTGEXC( WANTQ,  WANTZ,  N,  A,  LDA, B, LDB, Q, LDQ, Z, LDZ,
12                          IFST, ILST, WORK, LWORK, INFO )
13
14           LOGICAL        WANTQ, WANTZ
15
16           INTEGER        IFST, ILST, INFO, LDA, LDB, LDQ, LDZ, LWORK, N
17
18           DOUBLE         PRECISION A( LDA, * ), B( LDB, * ),  Q(  LDQ,  *  ),
19                          WORK( * ), Z( LDZ, * )
20

PURPOSE

22       DTGEXC  reorders  the  generalized  real  Schur decomposition of a real
23       matrix pair (A,B) using an  orthogonal  equivalence  transformation  so
24       that  the  diagonal block of (A, B) with row index IFST is moved to row
25       ILST.
26       (A, B) must be in generalized real Schur canonical form (as returned by
27       DGGES),  i.e. A is block upper triangular with 1-by-1 and 2-by-2 diago‐
28       nal blocks. B is upper triangular.
29       Optionally, the matrices Q and  Z  of  generalized  Schur  vectors  are
30       updated.
31              Q(in) * A(in) * Z(in)' = Q(out) * A(out) * Z(out)'
32              Q(in) * B(in) * Z(in)' = Q(out) * B(out) * Z(out)'
33

ARGUMENTS

35       WANTQ    (input) LOGICAL .TRUE. : update the left transformation matrix
36       Q;
37
38       WANTZ   (input) LOGICAL
39
40       N       (input) INTEGER
41               The order of the matrices A and B. N >= 0.
42
43       A       (input/output) DOUBLE PRECISION array, dimension (LDA,N)
44               On entry, the matrix A  in  generalized  real  Schur  canonical
45               form.  On exit, the updated matrix A, again in generalized real
46               Schur canonical form.
47
48       LDA     (input)  INTEGER
49               The leading dimension of the array A. LDA >= max(1,N).
50
51       B       (input/output) DOUBLE PRECISION array, dimension (LDB,N)
52               On entry, the matrix B in generalized real Schur canonical form
53               (A,B).   On  exit,  the  updated matrix B, again in generalized
54               real Schur canonical form (A,B).
55
56       LDB     (input)  INTEGER
57               The leading dimension of the array B. LDB >= max(1,N).
58
59       Q       (input/output) DOUBLE PRECISION array, dimension (LDZ,N)
60               On entry, if WANTQ = .TRUE., the orthogonal matrix Q.  On exit,
61               the updated matrix Q.  If WANTQ = .FALSE., Q is not referenced.
62
63       LDQ     (input) INTEGER
64               The  leading  dimension  of  the array Q. LDQ >= 1.  If WANTQ =
65               .TRUE., LDQ >= N.
66
67       Z       (input/output) DOUBLE PRECISION array, dimension (LDZ,N)
68               On entry, if WANTZ = .TRUE., the orthogonal matrix Z.  On exit,
69               the updated matrix Z.  If WANTZ = .FALSE., Z is not referenced.
70
71       LDZ     (input) INTEGER
72               The  leading  dimension  of  the array Z. LDZ >= 1.  If WANTZ =
73               .TRUE., LDZ >= N.
74
75       IFST    (input/output) INTEGER
76               ILST    (input/output) INTEGER Specify the  reordering  of  the
77               diagonal  blocks  of  (A, B).  The block with row index IFST is
78               moved to row ILST, by a sequence of swapping  between  adjacent
79               blocks.  On exit, if IFST pointed on entry to the second row of
80               a 2-by-2 block, it is changed to point to the first  row;  ILST
81               always  points to the first row of the block in its final posi‐
82               tion (which may differ from its input value by +1 or -1). 1  <=
83               IFST, ILST <= N.
84
85       WORK       (workspace/output)   DOUBLE   PRECISION   array,   dimension
86       (MAX(1,LWORK))
87               On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
88
89       LWORK   (input) INTEGER
90               The dimension of the array WORK.  LWORK >= 1 when N <= 1,  oth‐
91               erwise  LWORK  >=  4*N  +  16.  If LWORK = -1, then a workspace
92               query is assumed; the routine only calculates the optimal  size
93               of the WORK array, returns this value as the first entry of the
94               WORK array, and no error message related to LWORK is issued  by
95               XERBLA.
96
97       INFO    (output) INTEGER
98               =0:  successful exit.
99               <0:  if INFO = -i, the i-th argument had an illegal value.
100               =1:   The  transformed matrix pair (A, B) would be too far from
101               generalized Schur form; the problem is ill- conditioned. (A, B)
102               may have been partially reordered, and ILST points to the first
103               row of the current position of the block being moved.
104

FURTHER DETAILS

106       Based on contributions by
107          Bo Kagstrom and Peter Poromaa, Department of Computing Science,
108          Umea University, S-901 87 Umea, Sweden.
109       [1] B. Kagstrom; A Direct Method for Reordering Eigenvalues in the
110           Generalized Real Schur Form of a Regular Matrix Pair (A, B), in
111           M.S. Moonen et al (eds), Linear Algebra for Large Scale and
112           Real-Time Applications, Kluwer Academic Publ. 1993, pp 195-218.
113
114
115
116 LAPACK routine (version 3.2)    November 2008                       DTGEXC(1)
Impressum