Debian Codegraph @

Modules/ThirdParty/VNL/src/vxl/v3p/netlib/lapack/double/dgghrd.c

raw symbols SCIP
1 /* lapack/double/dgghrd.f -- translated by f2c (version 20050501).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
7 cc *.o -lf2c -lm
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10 http://www.netlib.org/f2c/libf2c.zip
11 */
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 #include "v3p_netlib.h"cxx . . $ `<file>/Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib.h`/
17
18 /* Table of constant values */
19
20 static doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! c_b10cxx . . $ c_b10. = 0.;
21 static doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! c_b11cxx . . $ c_b11. = 1.;
22 static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__1cxx . . $ c__1. = 1;
23
24 /*< >*/
25 /* Subroutine */ int dgghrd_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:57:9`!(char *compq, char *compz, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *
26 ilo, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ihi, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *a, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *lda, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *b,
27 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldb, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *q, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldq, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *z__, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *
28 ldz, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *info, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`! compq_len, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`! compz_len)
29 {
30 /* System generated locals */
31 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! a_dim1, a_offset, b_dim1, b_offset, q_dim1, q_offset, z_dim1,
32 z_offset, i__1, i__2, i__3;
33
34 /* Local variables */
35 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! c__, s;
36 logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! ilq=0, ilz=0;
37 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! jcol;
38 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! temp;
39 extern /* Subroutine */ int drot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:125:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *,
40 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *);
41 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! jrow;
42 extern logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(const char *, const char *, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!);
43 extern /* Subroutine */ int dlaset_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:96:9`!(char *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *,
44 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!),
45 dlartg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:93:9`!(doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *,
46 doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *), xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!(char *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!);
47 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! icompq, icompz;
48 (void)compq_len;
49 (void)compz_len;
50
51 /* -- LAPACK routine (version 3.0) -- */
52 /* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., */
53 /* Courant Institute, Argonne National Lab, and Rice University */
54 /* September 30, 1994 */
55
56 /* .. Scalar Arguments .. */
57 /*< CHARACTER COMPQ, COMPZ >*/
58 /*< INTEGER IHI, ILO, INFO, LDA, LDB, LDQ, LDZ, N >*/
59 /* .. */
60 /* .. Array Arguments .. */
61 /*< >*/
62 /* .. */
63
64 /* Purpose */
65 /* ======= */
66
67 /* DGGHRD reduces a pair of real matrices (A,B) to generalized upper */
68 /* Hessenberg form using orthogonal transformations, where A is a */
69 /* general matrix and B is upper triangular: Q' * A * Z = H and */
70 /* Q' * B * Z = T, where H is upper Hessenberg, T is upper triangular, */
71 /* and Q and Z are orthogonal, and ' means transpose. */
72
73 /* The orthogonal matrices Q and Z are determined as products of Givens */
74 /* rotations. They may either be formed explicitly, or they may be */
75 /* postmultiplied into input matrices Q1 and Z1, so that */
76
77 /* Q1 * A * Z1' = (Q1*Q) * H * (Z1*Z)' */
78 /* Q1 * B * Z1' = (Q1*Q) * T * (Z1*Z)' */
79
80 /* Arguments */
81 /* ========= */
82
83 /* COMPQ (input) CHARACTER*1 */
84 /* = 'N': do not compute Q; */
85 /* = 'I': Q is initialized to the unit matrix, and the */
86 /* orthogonal matrix Q is returned; */
87 /* = 'V': Q must contain an orthogonal matrix Q1 on entry, */
88 /* and the product Q1*Q is returned. */
89
90 /* COMPZ (input) CHARACTER*1 */
91 /* = 'N': do not compute Z; */
92 /* = 'I': Z is initialized to the unit matrix, and the */
93 /* orthogonal matrix Z is returned; */
94 /* = 'V': Z must contain an orthogonal matrix Z1 on entry, */
95 /* and the product Z1*Z is returned. */
96
97 /* N (input) INTEGER */
98 /* The order of the matrices A and B. N >= 0. */
99
100 /* ILO (input) INTEGER */
101 /* IHI (input) INTEGER */
102 /* It is assumed that A is already upper triangular in rows and */
103 /* columns 1:ILO-1 and IHI+1:N. ILO and IHI are normally set */
104 /* by a previous call to DGGBAL; otherwise they should be set */
105 /* to 1 and N respectively. */
106 /* 1 <= ILO <= IHI <= N, if N > 0; ILO=1 and IHI=0, if N=0. */
107
108 /* A (input/output) DOUBLE PRECISION array, dimension (LDA, N) */
109 /* On entry, the N-by-N general matrix to be reduced. */
110 /* On exit, the upper triangle and the first subdiagonal of A */
111 /* are overwritten with the upper Hessenberg matrix H, and the */
112 /* rest is set to zero. */
113
114 /* LDA (input) INTEGER */
115 /* The leading dimension of the array A. LDA >= max(1,N). */
116
117 /* B (input/output) DOUBLE PRECISION array, dimension (LDB, N) */
118 /* On entry, the N-by-N upper triangular matrix B. */
119 /* On exit, the upper triangular matrix T = Q' B Z. The */
120 /* elements below the diagonal are set to zero. */
121
122 /* LDB (input) INTEGER */
123 /* The leading dimension of the array B. LDB >= max(1,N). */
124
125 /* Q (input/output) DOUBLE PRECISION array, dimension (LDQ, N) */
126 /* If COMPQ='N': Q is not referenced. */
127 /* If COMPQ='I': on entry, Q need not be set, and on exit it */
128 /* contains the orthogonal matrix Q, where Q' */
129 /* is the product of the Givens transformations */
130 /* which are applied to A and B on the left. */
131 /* If COMPQ='V': on entry, Q must contain an orthogonal matrix */
132 /* Q1, and on exit this is overwritten by Q1*Q. */
133
134 /* LDQ (input) INTEGER */
135 /* The leading dimension of the array Q. */
136 /* LDQ >= N if COMPQ='V' or 'I'; LDQ >= 1 otherwise. */
137
138 /* Z (input/output) DOUBLE PRECISION array, dimension (LDZ, N) */
139 /* If COMPZ='N': Z is not referenced. */
140 /* If COMPZ='I': on entry, Z need not be set, and on exit it */
141 /* contains the orthogonal matrix Z, which is */
142 /* the product of the Givens transformations */
143 /* which are applied to A and B on the right. */
144 /* If COMPZ='V': on entry, Z must contain an orthogonal matrix */
145 /* Z1, and on exit this is overwritten by Z1*Z. */
146
147 /* LDZ (input) INTEGER */
148 /* The leading dimension of the array Z. */
149 /* LDZ >= N if COMPZ='V' or 'I'; LDZ >= 1 otherwise. */
150
151 /* INFO (output) INTEGER */
152 /* = 0: successful exit. */
153 /* < 0: if INFO = -i, the i-th argument had an illegal value. */
154
155 /* Further Details */
156 /* =============== */
157
158 /* This routine reduces A to Hessenberg and B to triangular form by */
159 /* an unblocked reduction, as described in _Matrix_Computations_, */
160 /* by Golub and Van Loan (Johns Hopkins Press.) */
161
162 /* ===================================================================== */
163
164 /* .. Parameters .. */
165 /*< DOUBLE PRECISION ONE, ZERO >*/
166 /*< PARAMETER ( ONE = 1.0D+0, ZERO = 0.0D+0 ) >*/
167 /* .. */
168 /* .. Local Scalars .. */
169 /*< LOGICAL ILQ, ILZ >*/
170 /*< INTEGER ICOMPQ, ICOMPZ, JCOL, JROW >*/
171 /*< DOUBLE PRECISION C, S, TEMP >*/
172 /* .. */
173 /* .. External Functions .. */
174 /*< LOGICAL LSAME >*/
175 /*< EXTERNAL LSAME >*/
176 /* .. */
177 /* .. External Subroutines .. */
178 /*< EXTERNAL DLARTG, DLASET, DROT, XERBLA >*/
179 /* .. */
180 /* .. Intrinsic Functions .. */
181 /*< INTRINSIC MAX >*/
182 /* .. */
183 /* .. Executable Statements .. */
184
185 /* Decode COMPQ */
186
187 /*< IF( LSAME( COMPQ, 'N' ) ) THEN >*/
188 /* Parameter adjustments */
189 a_dim1 = *lda;
190 a_offset = 1 + a_dim1;
191 a -= a_offset;
192 b_dim1 = *ldb;
193 b_offset = 1 + b_dim1;
194 b -= b_offset;
195 q_dim1 = *ldq;
196 q_offset = 1 + q_dim1;
197 q -= q_offset;
198 z_dim1 = *ldz;
199 z_offset = 1 + z_dim1;
200 z__ -= z_offset;
201
202 /* Function Body */
203 if (lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(compq, "N", (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1)) {
204 /*< ILQ = .FALSE. >*/
205 ilq = FALSE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:30:9`!;
206 /*< ICOMPQ = 1 >*/
207 icompq = 1;
208 /*< ELSE IF( LSAME( COMPQ, 'V' ) ) THEN >*/
209 } else if (lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(compq, "V", (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1)) {
210 /*< ILQ = .TRUE. >*/
211 ilq = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!;
212 /*< ICOMPQ = 2 >*/
213 icompq = 2;
214 /*< ELSE IF( LSAME( COMPQ, 'I' ) ) THEN >*/
215 } else if (lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(compq, "I", (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1)) {
216 /*< ILQ = .TRUE. >*/
217 ilq = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!;
218 /*< ICOMPQ = 3 >*/
219 icompq = 3;
220 /*< ELSE >*/
221 } else {
222 /*< ICOMPQ = 0 >*/
223 icompq = 0;
224 /*< END IF >*/
225 }
226
227 /* Decode COMPZ */
228
229 /*< IF( LSAME( COMPZ, 'N' ) ) THEN >*/
230 if (lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(compz, "N", (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1)) {
231 /*< ILZ = .FALSE. >*/
232 ilz = FALSE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:30:9`!;
233 /*< ICOMPZ = 1 >*/
234 icompz = 1;
235 /*< ELSE IF( LSAME( COMPZ, 'V' ) ) THEN >*/
236 } else if (lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(compz, "V", (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1)) {
237 /*< ILZ = .TRUE. >*/
238 ilz = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!;
239 /*< ICOMPZ = 2 >*/
240 icompz = 2;
241 /*< ELSE IF( LSAME( COMPZ, 'I' ) ) THEN >*/
242 } else if (lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(compz, "I", (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1)) {
243 /*< ILZ = .TRUE. >*/
244 ilz = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!;
245 /*< ICOMPZ = 3 >*/
246 icompz = 3;
247 /*< ELSE >*/
248 } else {
249 /*< ICOMPZ = 0 >*/
250 icompz = 0;
251 /*< END IF >*/
252 }
253
254 /* Test the input parameters. */
255
256 /*< INFO = 0 >*/
257 *info = 0;
258 /*< IF( ICOMPQ.LE.0 ) THEN >*/
259 if (icompq <= 0) {
260 /*< INFO = -1 >*/
261 *info = -1;
262 /*< ELSE IF( ICOMPZ.LE.0 ) THEN >*/
263 } else if (icompz <= 0) {
264 /*< INFO = -2 >*/
265 *info = -2;
266 /*< ELSE IF( N.LT.0 ) THEN >*/
267 } else if (*n < 0) {
268 /*< INFO = -3 >*/
269 *info = -3;
270 /*< ELSE IF( ILO.LT.1 ) THEN >*/
271 } else if (*ilo < 1) {
272 /*< INFO = -4 >*/
273 *info = -4;
274 /*< ELSE IF( IHI.GT.N .OR. IHI.LT.ILO-1 ) THEN >*/
275 } else if (*ihi > *n || *ihi < *ilo - 1) {
276 /*< INFO = -5 >*/
277 *info = -5;
278 /*< ELSE IF( LDA.LT.MAX( 1, N ) ) THEN >*/
279 } else if (*lda < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) {
280 /*< INFO = -7 >*/
281 *info = -7;
282 /*< ELSE IF( LDB.LT.MAX( 1, N ) ) THEN >*/
283 } else if (*ldb < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) {
284 /*< INFO = -9 >*/
285 *info = -9;
286 /*< ELSE IF( ( ILQ .AND. LDQ.LT.N ) .OR. LDQ.LT.1 ) THEN >*/
287 } else if ((ilq && *ldq < *n) || *ldq < 1) {
288 /*< INFO = -11 >*/
289 *info = -11;
290 /*< ELSE IF( ( ILZ .AND. LDZ.LT.N ) .OR. LDZ.LT.1 ) THEN >*/
291 } else if ((ilz && *ldz < *n) || *ldz < 1) {
292 /*< INFO = -13 >*/
293 *info = -13;
294 /*< END IF >*/
295 }
296 /*< IF( INFO.NE.0 ) THEN >*/
297 if (*info != 0) {
298 /*< CALL XERBLA( 'DGGHRD', -INFO ) >*/
299 i__1 = -(*info);
300 xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!("DGGHRD", &i__1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6);
301 /*< RETURN >*/
302 return 0;
303 /*< END IF >*/
304 }
305
306 /* Initialize Q and Z if desired. */
307
308 /*< >*/
309 if (icompq == 3) {
310 dlaset_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:96:9`!("Full", n, n, &c_b10cxx . . $ c_b10., &c_b11cxx . . $ c_b11., &q[q_offset], ldq, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)4);
311 }
312 /*< >*/
313 if (icompz == 3) {
314 dlaset_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:96:9`!("Full", n, n, &c_b10cxx . . $ c_b10., &c_b11cxx . . $ c_b11., &z__[z_offset], ldz, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)4);
315 }
316
317 /* Quick return if possible */
318
319 /*< >*/
320 if (*n <= 1) {
321 return 0;
322 }
323
324 /* Zero out lower triangle of B */
325
326 /*< DO 20 JCOL = 1, N - 1 >*/
327 i__1 = *n - 1;
328 for (jcol = 1; jcol <= i__1; ++jcol) {
329 /*< DO 10 JROW = JCOL + 1, N >*/
330 i__2 = *n;
331 for (jrow = jcol + 1; jrow <= i__2; ++jrow) {
332 /*< B( JROW, JCOL ) = ZERO >*/
333 b[jrow + jcol * b_dim1] = 0.;
334 /*< 10 CONTINUE >*/
335 /* L10: */
336 }
337 /*< 20 CONTINUE >*/
338 /* L20: */
339 }
340
341 /* Reduce A and B */
342
343 /*< DO 40 JCOL = ILO, IHI - 2 >*/
344 i__1 = *ihi - 2;
345 for (jcol = *ilo; jcol <= i__1; ++jcol) {
346
347 /*< DO 30 JROW = IHI, JCOL + 2, -1 >*/
348 i__2 = jcol + 2;
349 for (jrow = *ihi; jrow >= i__2; --jrow) {
350
351 /* Step 1: rotate rows JROW-1, JROW to kill A(JROW,JCOL) */
352
353 /*< TEMP = A( JROW-1, JCOL ) >*/
354 temp = a[jrow - 1 + jcol * a_dim1];
355 /*< >*/
356 dlartg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:93:9`!(&temp, &a[jrow + jcol * a_dim1], &c__, &s, &a[jrow - 1 +
357 jcol * a_dim1]);
358 /*< A( JROW, JCOL ) = ZERO >*/
359 a[jrow + jcol * a_dim1] = 0.;
360 /*< >*/
361 i__3 = *n - jcol;
362 drot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:125:9`!(&i__3, &a[jrow - 1 + (jcol + 1) * a_dim1], lda, &a[jrow + (
363 jcol + 1) * a_dim1], lda, &c__, &s);
364 /*< >*/
365 i__3 = *n + 2 - jrow;
366 drot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:125:9`!(&i__3, &b[jrow - 1 + (jrow - 1) * b_dim1], ldb, &b[jrow + (
367 jrow - 1) * b_dim1], ldb, &c__, &s);
368 /*< >*/
369 if (ilq) {
370 drot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:125:9`!(n, &q[(jrow - 1) * q_dim1 + 1], &c__1cxx . . $ c__1., &q[jrow * q_dim1
371 + 1], &c__1cxx . . $ c__1., &c__, &s);
372 }
373
374 /* Step 2: rotate columns JROW, JROW-1 to kill B(JROW,JROW-1) */
375
376 /*< TEMP = B( JROW, JROW ) >*/
377 temp = b[jrow + jrow * b_dim1];
378 /*< >*/
379 dlartg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:93:9`!(&temp, &b[jrow + (jrow - 1) * b_dim1], &c__, &s, &b[jrow
380 + jrow * b_dim1]);
381 /*< B( JROW, JROW-1 ) = ZERO >*/
382 b[jrow + (jrow - 1) * b_dim1] = 0.;
383 /*< CALL DROT( IHI, A( 1, JROW ), 1, A( 1, JROW-1 ), 1, C, S ) >*/
384 drot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:125:9`!(ihi, &a[jrow * a_dim1 + 1], &c__1cxx . . $ c__1., &a[(jrow - 1) * a_dim1 +
385 1], &c__1cxx . . $ c__1., &c__, &s);
386 /*< >*/
387 i__3 = jrow - 1;
388 drot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:125:9`!(&i__3, &b[jrow * b_dim1 + 1], &c__1cxx . . $ c__1., &b[(jrow - 1) * b_dim1
389 + 1], &c__1cxx . . $ c__1., &c__, &s);
390 /*< >*/
391 if (ilz) {
392 drot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:125:9`!(n, &z__[jrow * z_dim1 + 1], &c__1cxx . . $ c__1., &z__[(jrow - 1) *
393 z_dim1 + 1], &c__1cxx . . $ c__1., &c__, &s);
394 }
395 /*< 30 CONTINUE >*/
396 /* L30: */
397 }
398 /*< 40 CONTINUE >*/
399 /* L40: */
400 }
401
402 /*< RETURN >*/
403 return 0;
404
405 /* End of DGGHRD */
406
407 /*< END >*/
408 } /* dgghrd_ */
409
410 #ifdef __cplusplus
411 }
412 #endif