| 1 | /* lapack/complex16/zgghrd.f -- translated by f2c (version 20090411). |
| 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 doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! c_b1cxx . . $ c_b1. = {1.,0.}; |
| 21 | static doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! c_b2cxx . . $ c_b2. = {0.,0.}; |
| 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 zgghrd_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:371: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, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *a, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *lda, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *b, |
| 27 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldb, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *q, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldq, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *z__, |
| 28 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *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 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! z__1; |
| 34 | |
| 35 | /* Builtin functions */ |
| 36 | void d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *); |
| 37 | |
| 38 | /* Local variables */ |
| 39 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! c__; |
| 40 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! s; |
| 41 | logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! ilq, ilz; |
| 42 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! jcol, jrow; |
| 43 | extern /* Subroutine */ int zrot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:350:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, |
| 44 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56: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`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *); |
| 45 | 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`!); |
| 46 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! ctemp; |
| 47 | extern /* Subroutine */ int 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`!); |
| 48 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! icompq, icompz; |
| 49 | extern /* Subroutine */ int zlaset_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:334: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`! *, |
| 50 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, |
| 51 | ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!), zlartg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:361:9`!(doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, |
| 52 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *); |
| 53 | (void)compq_len; |
| 54 | (void)compz_len; |
| 55 | |
| 56 | /* -- LAPACK routine (version 3.2) -- */ |
| 57 | /* -- LAPACK is a software package provided by Univ. of Tennessee, -- */ |
| 58 | /* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- */ |
| 59 | /* November 2006 */ |
| 60 | |
| 61 | /* .. Scalar Arguments .. */ |
| 62 | /*< CHARACTER COMPQ, COMPZ >*/ |
| 63 | /*< INTEGER IHI, ILO, INFO, LDA, LDB, LDQ, LDZ, N >*/ |
| 64 | /* .. */ |
| 65 | /* .. Array Arguments .. */ |
| 66 | /*< >*/ |
| 67 | /* .. */ |
| 68 | |
| 69 | /* Purpose */ |
| 70 | /* ======= */ |
| 71 | |
| 72 | /* ZGGHRD reduces a pair of complex matrices (A,B) to generalized upper */ |
| 73 | /* Hessenberg form using unitary transformations, where A is a */ |
| 74 | /* general matrix and B is upper triangular. The form of the */ |
| 75 | /* generalized eigenvalue problem is */ |
| 76 | /* A*x = lambda*B*x, */ |
| 77 | /* and B is typically made upper triangular by computing its QR */ |
| 78 | /* factorization and moving the unitary matrix Q to the left side */ |
| 79 | /* of the equation. */ |
| 80 | |
| 81 | /* This subroutine simultaneously reduces A to a Hessenberg matrix H: */ |
| 82 | /* Q**H*A*Z = H */ |
| 83 | /* and transforms B to another upper triangular matrix T: */ |
| 84 | /* Q**H*B*Z = T */ |
| 85 | /* in order to reduce the problem to its standard form */ |
| 86 | /* H*y = lambda*T*y */ |
| 87 | /* where y = Z**H*x. */ |
| 88 | |
| 89 | /* The unitary matrices Q and Z are determined as products of Givens */ |
| 90 | /* rotations. They may either be formed explicitly, or they may be */ |
| 91 | /* postmultiplied into input matrices Q1 and Z1, so that */ |
| 92 | /* Q1 * A * Z1**H = (Q1*Q) * H * (Z1*Z)**H */ |
| 93 | /* Q1 * B * Z1**H = (Q1*Q) * T * (Z1*Z)**H */ |
| 94 | /* If Q1 is the unitary matrix from the QR factorization of B in the */ |
| 95 | /* original equation A*x = lambda*B*x, then ZGGHRD reduces the original */ |
| 96 | /* problem to generalized Hessenberg form. */ |
| 97 | |
| 98 | /* Arguments */ |
| 99 | /* ========= */ |
| 100 | |
| 101 | /* COMPQ (input) CHARACTER*1 */ |
| 102 | /* = 'N': do not compute Q; */ |
| 103 | /* = 'I': Q is initialized to the unit matrix, and the */ |
| 104 | /* unitary matrix Q is returned; */ |
| 105 | /* = 'V': Q must contain a unitary matrix Q1 on entry, */ |
| 106 | /* and the product Q1*Q is returned. */ |
| 107 | |
| 108 | /* COMPZ (input) CHARACTER*1 */ |
| 109 | /* = 'N': do not compute Q; */ |
| 110 | /* = 'I': Q is initialized to the unit matrix, and the */ |
| 111 | /* unitary matrix Q is returned; */ |
| 112 | /* = 'V': Q must contain a unitary matrix Q1 on entry, */ |
| 113 | /* and the product Q1*Q is returned. */ |
| 114 | |
| 115 | /* N (input) INTEGER */ |
| 116 | /* The order of the matrices A and B. N >= 0. */ |
| 117 | |
| 118 | /* ILO (input) INTEGER */ |
| 119 | /* IHI (input) INTEGER */ |
| 120 | /* ILO and IHI mark the rows and columns of A which are to be */ |
| 121 | /* reduced. It is assumed that A is already upper triangular */ |
| 122 | /* in rows and columns 1:ILO-1 and IHI+1:N. ILO and IHI are */ |
| 123 | /* normally set by a previous call to ZGGBAL; otherwise they */ |
| 124 | /* should be set to 1 and N respectively. */ |
| 125 | /* 1 <= ILO <= IHI <= N, if N > 0; ILO=1 and IHI=0, if N=0. */ |
| 126 | |
| 127 | /* A (input/output) COMPLEX*16 array, dimension (LDA, N) */ |
| 128 | /* On entry, the N-by-N general matrix to be reduced. */ |
| 129 | /* On exit, the upper triangle and the first subdiagonal of A */ |
| 130 | /* are overwritten with the upper Hessenberg matrix H, and the */ |
| 131 | /* rest is set to zero. */ |
| 132 | |
| 133 | /* LDA (input) INTEGER */ |
| 134 | /* The leading dimension of the array A. LDA >= max(1,N). */ |
| 135 | |
| 136 | /* B (input/output) COMPLEX*16 array, dimension (LDB, N) */ |
| 137 | /* On entry, the N-by-N upper triangular matrix B. */ |
| 138 | /* On exit, the upper triangular matrix T = Q**H B Z. The */ |
| 139 | /* elements below the diagonal are set to zero. */ |
| 140 | |
| 141 | /* LDB (input) INTEGER */ |
| 142 | /* The leading dimension of the array B. LDB >= max(1,N). */ |
| 143 | |
| 144 | /* Q (input/output) COMPLEX*16 array, dimension (LDQ, N) */ |
| 145 | /* On entry, if COMPQ = 'V', the unitary matrix Q1, typically */ |
| 146 | /* from the QR factorization of B. */ |
| 147 | /* On exit, if COMPQ='I', the unitary matrix Q, and if */ |
| 148 | /* COMPQ = 'V', the product Q1*Q. */ |
| 149 | /* Not referenced if COMPQ='N'. */ |
| 150 | |
| 151 | /* LDQ (input) INTEGER */ |
| 152 | /* The leading dimension of the array Q. */ |
| 153 | /* LDQ >= N if COMPQ='V' or 'I'; LDQ >= 1 otherwise. */ |
| 154 | |
| 155 | /* Z (input/output) COMPLEX*16 array, dimension (LDZ, N) */ |
| 156 | /* On entry, if COMPZ = 'V', the unitary matrix Z1. */ |
| 157 | /* On exit, if COMPZ='I', the unitary matrix Z, and if */ |
| 158 | /* COMPZ = 'V', the product Z1*Z. */ |
| 159 | /* Not referenced if COMPZ='N'. */ |
| 160 | |
| 161 | /* LDZ (input) INTEGER */ |
| 162 | /* The leading dimension of the array Z. */ |
| 163 | /* LDZ >= N if COMPZ='V' or 'I'; LDZ >= 1 otherwise. */ |
| 164 | |
| 165 | /* INFO (output) INTEGER */ |
| 166 | /* = 0: successful exit. */ |
| 167 | /* < 0: if INFO = -i, the i-th argument had an illegal value. */ |
| 168 | |
| 169 | /* Further Details */ |
| 170 | /* =============== */ |
| 171 | |
| 172 | /* This routine reduces A to Hessenberg and B to triangular form by */ |
| 173 | /* an unblocked reduction, as described in _Matrix_Computations_, */ |
| 174 | /* by Golub and van Loan (Johns Hopkins Press). */ |
| 175 | |
| 176 | /* ===================================================================== */ |
| 177 | |
| 178 | /* .. Parameters .. */ |
| 179 | /*< COMPLEX*16 CONE, CZERO >*/ |
| 180 | /*< >*/ |
| 181 | /* .. */ |
| 182 | /* .. Local Scalars .. */ |
| 183 | /*< LOGICAL ILQ, ILZ >*/ |
| 184 | /*< INTEGER ICOMPQ, ICOMPZ, JCOL, JROW >*/ |
| 185 | /*< DOUBLE PRECISION C >*/ |
| 186 | /*< COMPLEX*16 CTEMP, S >*/ |
| 187 | /* .. */ |
| 188 | /* .. External Functions .. */ |
| 189 | /*< LOGICAL LSAME >*/ |
| 190 | /*< EXTERNAL LSAME >*/ |
| 191 | /* .. */ |
| 192 | /* .. External Subroutines .. */ |
| 193 | /*< EXTERNAL XERBLA, ZLARTG, ZLASET, ZROT >*/ |
| 194 | /* .. */ |
| 195 | /* .. Intrinsic Functions .. */ |
| 196 | /*< INTRINSIC DCONJG, MAX >*/ |
| 197 | /* .. */ |
| 198 | /* .. Executable Statements .. */ |
| 199 | |
| 200 | /* Decode COMPQ */ |
| 201 | |
| 202 | /*< IF( LSAME( COMPQ, 'N' ) ) THEN >*/ |
| 203 | /* Parameter adjustments */ |
| 204 | a_dim1 = *lda; |
| 205 | a_offset = 1 + a_dim1; |
| 206 | a -= a_offset; |
| 207 | b_dim1 = *ldb; |
| 208 | b_offset = 1 + b_dim1; |
| 209 | b -= b_offset; |
| 210 | q_dim1 = *ldq; |
| 211 | q_offset = 1 + q_dim1; |
| 212 | q -= q_offset; |
| 213 | z_dim1 = *ldz; |
| 214 | z_offset = 1 + z_dim1; |
| 215 | z__ -= z_offset; |
| 216 | |
| 217 | /* Function Body */ |
| 218 | 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)) { |
| 219 | /*< ILQ = .FALSE. >*/ |
| 220 | ilq = FALSE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:30:9`!; |
| 221 | /*< ICOMPQ = 1 >*/ |
| 222 | icompq = 1; |
| 223 | /*< ELSE IF( LSAME( COMPQ, 'V' ) ) THEN >*/ |
| 224 | } 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)) { |
| 225 | /*< ILQ = .TRUE. >*/ |
| 226 | ilq = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!; |
| 227 | /*< ICOMPQ = 2 >*/ |
| 228 | icompq = 2; |
| 229 | /*< ELSE IF( LSAME( COMPQ, 'I' ) ) THEN >*/ |
| 230 | } 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)) { |
| 231 | /*< ILQ = .TRUE. >*/ |
| 232 | ilq = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!; |
| 233 | /*< ICOMPQ = 3 >*/ |
| 234 | icompq = 3; |
| 235 | /*< ELSE >*/ |
| 236 | } else { |
| 237 | /*< ICOMPQ = 0 >*/ |
| 238 | icompq = 0; |
| 239 | /*< END IF >*/ |
| 240 | } |
| 241 | |
| 242 | /* Decode COMPZ */ |
| 243 | |
| 244 | /*< IF( LSAME( COMPZ, 'N' ) ) THEN >*/ |
| 245 | 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)) { |
| 246 | /*< ILZ = .FALSE. >*/ |
| 247 | ilz = FALSE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:30:9`!; |
| 248 | /*< ICOMPZ = 1 >*/ |
| 249 | icompz = 1; |
| 250 | /*< ELSE IF( LSAME( COMPZ, 'V' ) ) THEN >*/ |
| 251 | } 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)) { |
| 252 | /*< ILZ = .TRUE. >*/ |
| 253 | ilz = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!; |
| 254 | /*< ICOMPZ = 2 >*/ |
| 255 | icompz = 2; |
| 256 | /*< ELSE IF( LSAME( COMPZ, 'I' ) ) THEN >*/ |
| 257 | } 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)) { |
| 258 | /*< ILZ = .TRUE. >*/ |
| 259 | ilz = TRUE_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:29:9`!; |
| 260 | /*< ICOMPZ = 3 >*/ |
| 261 | icompz = 3; |
| 262 | /*< ELSE >*/ |
| 263 | } else { |
| 264 | /*< ICOMPZ = 0 >*/ |
| 265 | icompz = 0; |
| 266 | /*< END IF >*/ |
| 267 | } |
| 268 | |
| 269 | /* Test the input parameters. */ |
| 270 | |
| 271 | /*< INFO = 0 >*/ |
| 272 | *info = 0; |
| 273 | /*< IF( ICOMPQ.LE.0 ) THEN >*/ |
| 274 | if (icompq <= 0) { |
| 275 | /*< INFO = -1 >*/ |
| 276 | *info = -1; |
| 277 | /*< ELSE IF( ICOMPZ.LE.0 ) THEN >*/ |
| 278 | } else if (icompz <= 0) { |
| 279 | /*< INFO = -2 >*/ |
| 280 | *info = -2; |
| 281 | /*< ELSE IF( N.LT.0 ) THEN >*/ |
| 282 | } else if (*n < 0) { |
| 283 | /*< INFO = -3 >*/ |
| 284 | *info = -3; |
| 285 | /*< ELSE IF( ILO.LT.1 ) THEN >*/ |
| 286 | } else if (*ilo < 1) { |
| 287 | /*< INFO = -4 >*/ |
| 288 | *info = -4; |
| 289 | /*< ELSE IF( IHI.GT.N .OR. IHI.LT.ILO-1 ) THEN >*/ |
| 290 | } else if (*ihi > *n || *ihi < *ilo - 1) { |
| 291 | /*< INFO = -5 >*/ |
| 292 | *info = -5; |
| 293 | /*< ELSE IF( LDA.LT.MAX( 1, N ) ) THEN >*/ |
| 294 | } else if (*lda < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 295 | /*< INFO = -7 >*/ |
| 296 | *info = -7; |
| 297 | /*< ELSE IF( LDB.LT.MAX( 1, N ) ) THEN >*/ |
| 298 | } else if (*ldb < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 299 | /*< INFO = -9 >*/ |
| 300 | *info = -9; |
| 301 | /*< ELSE IF( ( ILQ .AND. LDQ.LT.N ) .OR. LDQ.LT.1 ) THEN >*/ |
| 302 | } else if ((ilq && *ldq < *n) || *ldq < 1) { |
| 303 | /*< INFO = -11 >*/ |
| 304 | *info = -11; |
| 305 | /*< ELSE IF( ( ILZ .AND. LDZ.LT.N ) .OR. LDZ.LT.1 ) THEN >*/ |
| 306 | } else if ((ilz && *ldz < *n) || *ldz < 1) { |
| 307 | /*< INFO = -13 >*/ |
| 308 | *info = -13; |
| 309 | /*< END IF >*/ |
| 310 | } |
| 311 | /*< IF( INFO.NE.0 ) THEN >*/ |
| 312 | if (*info != 0) { |
| 313 | /*< CALL XERBLA( 'ZGGHRD', -INFO ) >*/ |
| 314 | i__1 = -(*info); |
| 315 | xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!("ZGGHRD", &i__1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6); |
| 316 | /*< RETURN >*/ |
| 317 | return 0; |
| 318 | /*< END IF >*/ |
| 319 | } |
| 320 | |
| 321 | /* Initialize Q and Z if desired. */ |
| 322 | |
| 323 | /*< >*/ |
| 324 | if (icompq == 3) { |
| 325 | zlaset_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:334:9`!("Full", n, n, &c_b2cxx . . $ c_b2., &c_b1cxx . . $ c_b1., &q[q_offset], ldq, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)4); |
| 326 | } |
| 327 | /*< >*/ |
| 328 | if (icompz == 3) { |
| 329 | zlaset_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:334:9`!("Full", n, n, &c_b2cxx . . $ c_b2., &c_b1cxx . . $ c_b1., &z__[z_offset], ldz, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)4); |
| 330 | } |
| 331 | |
| 332 | /* Quick return if possible */ |
| 333 | |
| 334 | /*< >*/ |
| 335 | if (*n <= 1) { |
| 336 | return 0; |
| 337 | } |
| 338 | |
| 339 | /* Zero out lower triangle of B */ |
| 340 | |
| 341 | /*< DO 20 JCOL = 1, N - 1 >*/ |
| 342 | i__1 = *n - 1; |
| 343 | for (jcol = 1; jcol <= i__1; ++jcol) { |
| 344 | /*< DO 10 JROW = JCOL + 1, N >*/ |
| 345 | i__2 = *n; |
| 346 | for (jrow = jcol + 1; jrow <= i__2; ++jrow) { |
| 347 | /*< B( JROW, JCOL ) = CZERO >*/ |
| 348 | i__3 = jrow + jcol * b_dim1; |
| 349 | b[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 0., b[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 350 | /*< 10 CONTINUE >*/ |
| 351 | /* L10: */ |
| 352 | } |
| 353 | /*< 20 CONTINUE >*/ |
| 354 | /* L20: */ |
| 355 | } |
| 356 | |
| 357 | /* Reduce A and B */ |
| 358 | |
| 359 | /*< DO 40 JCOL = ILO, IHI - 2 >*/ |
| 360 | i__1 = *ihi - 2; |
| 361 | for (jcol = *ilo; jcol <= i__1; ++jcol) { |
| 362 | |
| 363 | /*< DO 30 JROW = IHI, JCOL + 2, -1 >*/ |
| 364 | i__2 = jcol + 2; |
| 365 | for (jrow = *ihi; jrow >= i__2; --jrow) { |
| 366 | |
| 367 | /* Step 1: rotate rows JROW-1, JROW to kill A(JROW,JCOL) */ |
| 368 | |
| 369 | /*< CTEMP = A( JROW-1, JCOL ) >*/ |
| 370 | i__3 = jrow - 1 + jcol * a_dim1; |
| 371 | ctemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = a[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., ctemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = a[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 372 | /*< >*/ |
| 373 | zlartg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:361:9`!(&ctemp, &a[jrow + jcol * a_dim1], &c__, &s, &a[jrow - 1 + |
| 374 | jcol * a_dim1]); |
| 375 | /*< A( JROW, JCOL ) = CZERO >*/ |
| 376 | i__3 = jrow + jcol * a_dim1; |
| 377 | a[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 0., a[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 378 | /*< >*/ |
| 379 | i__3 = *n - jcol; |
| 380 | zrot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:350:9`!(&i__3, &a[jrow - 1 + (jcol + 1) * a_dim1], lda, &a[jrow + ( |
| 381 | jcol + 1) * a_dim1], lda, &c__, &s); |
| 382 | /*< >*/ |
| 383 | i__3 = *n + 2 - jrow; |
| 384 | zrot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:350:9`!(&i__3, &b[jrow - 1 + (jrow - 1) * b_dim1], ldb, &b[jrow + ( |
| 385 | jrow - 1) * b_dim1], ldb, &c__, &s); |
| 386 | /*< >*/ |
| 387 | if (ilq) { |
| 388 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__1, &s); |
| 389 | zrot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:350:9`!(n, &q[(jrow - 1) * q_dim1 + 1], &c__1cxx . . $ c__1., &q[jrow * q_dim1 |
| 390 | + 1], &c__1cxx . . $ c__1., &c__, &z__1); |
| 391 | } |
| 392 | |
| 393 | /* Step 2: rotate columns JROW, JROW-1 to kill B(JROW,JROW-1) */ |
| 394 | |
| 395 | /*< CTEMP = B( JROW, JROW ) >*/ |
| 396 | i__3 = jrow + jrow * b_dim1; |
| 397 | ctemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = b[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., ctemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = b[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 398 | /*< >*/ |
| 399 | zlartg_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:361:9`!(&ctemp, &b[jrow + (jrow - 1) * b_dim1], &c__, &s, &b[jrow |
| 400 | + jrow * b_dim1]); |
| 401 | /*< B( JROW, JROW-1 ) = CZERO >*/ |
| 402 | i__3 = jrow + (jrow - 1) * b_dim1; |
| 403 | b[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 0., b[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 404 | /*< CALL ZROT( IHI, A( 1, JROW ), 1, A( 1, JROW-1 ), 1, C, S ) >*/ |
| 405 | zrot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:350:9`!(ihi, &a[jrow * a_dim1 + 1], &c__1cxx . . $ c__1., &a[(jrow - 1) * a_dim1 + |
| 406 | 1], &c__1cxx . . $ c__1., &c__, &s); |
| 407 | /*< >*/ |
| 408 | i__3 = jrow - 1; |
| 409 | zrot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:350:9`!(&i__3, &b[jrow * b_dim1 + 1], &c__1cxx . . $ c__1., &b[(jrow - 1) * b_dim1 |
| 410 | + 1], &c__1cxx . . $ c__1., &c__, &s); |
| 411 | /*< >*/ |
| 412 | if (ilz) { |
| 413 | zrot_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:350:9`!(n, &z__[jrow * z_dim1 + 1], &c__1cxx . . $ c__1., &z__[(jrow - 1) * |
| 414 | z_dim1 + 1], &c__1cxx . . $ c__1., &c__, &s); |
| 415 | } |
| 416 | /*< 30 CONTINUE >*/ |
| 417 | /* L30: */ |
| 418 | } |
| 419 | /*< 40 CONTINUE >*/ |
| 420 | /* L40: */ |
| 421 | } |
| 422 | |
| 423 | /*< RETURN >*/ |
| 424 | return 0; |
| 425 | |
| 426 | /* End of ZGGHRD */ |
| 427 | |
| 428 | /*< END >*/ |
| 429 | } /* zgghrd_ */ |
| 430 | |
| 431 | #ifdef __cplusplus |
| 432 | } |
| 433 | #endif |