| 1 | /* lapack/complex16/ztgsy2.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 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__2cxx . . $ c__2. = 2; |
| 21 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__1cxx . . $ c__1. = 1; |
| 22 | |
| 23 | /*< >*/ |
| 24 | /* Subroutine */ int ztgsy2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:353:9`!(char *trans, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ijob, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *m, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! * |
| 25 | n, 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, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldb, |
| 26 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *c__, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldc, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *d__, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldd, |
| 27 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *e, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *lde, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *f, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldf, |
| 28 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *scale, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *rdsum, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *rdscal, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! * |
| 29 | info, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`! trans_len) |
| 30 | { |
| 31 | /* System generated locals */ |
| 32 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! a_dim1, a_offset, b_dim1, b_offset, c_dim1, c_offset, d_dim1, |
| 33 | d_offset, e_dim1, e_offset, f_dim1, f_offset, i__1, i__2, i__3, |
| 34 | i__4; |
| 35 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! z__1, z__2, z__3, z__4, z__5, z__6; |
| 36 | |
| 37 | /* Builtin functions */ |
| 38 | 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`! *); |
| 39 | |
| 40 | /* Local variables */ |
| 41 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__, j, k; |
| 42 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! z__[4] /* was [2][2] */, rhs[2]; |
| 43 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! ierr, ipiv[2], jpiv[2]; |
| 44 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! alpha; |
| 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 | extern /* Subroutine */ int zscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:339: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`! *, |
| 47 | 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`! *), zaxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:306: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`! *, |
| 48 | 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`! *, 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`! *), zgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:369:9`!( |
| 49 | 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`! *, 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`! *, |
| 50 | 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`! *), zgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:356: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`! *, |
| 51 | 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`! *, 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`! *); |
| 52 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! scaloc; |
| 53 | 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`!), zlatdf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:351:9`!( |
| 54 | 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`! *, 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`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, |
| 55 | 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`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *); |
| 56 | logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! notran; |
| 57 | (void)trans_len; |
| 58 | |
| 59 | /* -- LAPACK auxiliary routine (version 3.2) -- */ |
| 60 | /* -- LAPACK is a software package provided by Univ. of Tennessee, -- */ |
| 61 | /* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- */ |
| 62 | /* November 2006 */ |
| 63 | |
| 64 | /* .. Scalar Arguments .. */ |
| 65 | /*< CHARACTER TRANS >*/ |
| 66 | /*< INTEGER IJOB, INFO, LDA, LDB, LDC, LDD, LDE, LDF, M, N >*/ |
| 67 | /*< DOUBLE PRECISION RDSCAL, RDSUM, SCALE >*/ |
| 68 | /* .. */ |
| 69 | /* .. Array Arguments .. */ |
| 70 | /*< >*/ |
| 71 | /* .. */ |
| 72 | |
| 73 | /* Purpose */ |
| 74 | /* ======= */ |
| 75 | |
| 76 | /* ZTGSY2 solves the generalized Sylvester equation */ |
| 77 | |
| 78 | /* A * R - L * B = scale * C (1) */ |
| 79 | /* D * R - L * E = scale * F */ |
| 80 | |
| 81 | /* using Level 1 and 2 BLAS, where R and L are unknown M-by-N matrices, */ |
| 82 | /* (A, D), (B, E) and (C, F) are given matrix pairs of size M-by-M, */ |
| 83 | /* N-by-N and M-by-N, respectively. A, B, D and E are upper triangular */ |
| 84 | /* (i.e., (A,D) and (B,E) in generalized Schur form). */ |
| 85 | |
| 86 | /* The solution (R, L) overwrites (C, F). 0 <= SCALE <= 1 is an output */ |
| 87 | /* scaling factor chosen to avoid overflow. */ |
| 88 | |
| 89 | /* In matrix notation solving equation (1) corresponds to solve */ |
| 90 | /* Zx = scale * b, where Z is defined as */ |
| 91 | |
| 92 | /* Z = [ kron(In, A) -kron(B', Im) ] (2) */ |
| 93 | /* [ kron(In, D) -kron(E', Im) ], */ |
| 94 | |
| 95 | /* Ik is the identity matrix of size k and X' is the transpose of X. */ |
| 96 | /* kron(X, Y) is the Kronecker product between the matrices X and Y. */ |
| 97 | |
| 98 | /* If TRANS = 'C', y in the conjugate transposed system Z'y = scale*b */ |
| 99 | /* is solved for, which is equivalent to solve for R and L in */ |
| 100 | |
| 101 | /* A' * R + D' * L = scale * C (3) */ |
| 102 | /* R * B' + L * E' = scale * -F */ |
| 103 | |
| 104 | /* This case is used to compute an estimate of Dif[(A, D), (B, E)] = */ |
| 105 | /* = sigma_min(Z) using reverse communicaton with ZLACON. */ |
| 106 | |
| 107 | /* ZTGSY2 also (IJOB >= 1) contributes to the computation in ZTGSYL */ |
| 108 | /* of an upper bound on the separation between to matrix pairs. Then */ |
| 109 | /* the input (A, D), (B, E) are sub-pencils of two matrix pairs in */ |
| 110 | /* ZTGSYL. */ |
| 111 | |
| 112 | /* Arguments */ |
| 113 | /* ========= */ |
| 114 | |
| 115 | /* TRANS (input) CHARACTER*1 */ |
| 116 | /* = 'N', solve the generalized Sylvester equation (1). */ |
| 117 | /* = 'T': solve the 'transposed' system (3). */ |
| 118 | |
| 119 | /* IJOB (input) INTEGER */ |
| 120 | /* Specifies what kind of functionality to be performed. */ |
| 121 | /* =0: solve (1) only. */ |
| 122 | /* =1: A contribution from this subsystem to a Frobenius */ |
| 123 | /* norm-based estimate of the separation between two matrix */ |
| 124 | /* pairs is computed. (look ahead strategy is used). */ |
| 125 | /* =2: A contribution from this subsystem to a Frobenius */ |
| 126 | /* norm-based estimate of the separation between two matrix */ |
| 127 | /* pairs is computed. (DGECON on sub-systems is used.) */ |
| 128 | /* Not referenced if TRANS = 'T'. */ |
| 129 | |
| 130 | /* M (input) INTEGER */ |
| 131 | /* On entry, M specifies the order of A and D, and the row */ |
| 132 | /* dimension of C, F, R and L. */ |
| 133 | |
| 134 | /* N (input) INTEGER */ |
| 135 | /* On entry, N specifies the order of B and E, and the column */ |
| 136 | /* dimension of C, F, R and L. */ |
| 137 | |
| 138 | /* A (input) COMPLEX*16 array, dimension (LDA, M) */ |
| 139 | /* On entry, A contains an upper triangular matrix. */ |
| 140 | |
| 141 | /* LDA (input) INTEGER */ |
| 142 | /* The leading dimension of the matrix A. LDA >= max(1, M). */ |
| 143 | |
| 144 | /* B (input) COMPLEX*16 array, dimension (LDB, N) */ |
| 145 | /* On entry, B contains an upper triangular matrix. */ |
| 146 | |
| 147 | /* LDB (input) INTEGER */ |
| 148 | /* The leading dimension of the matrix B. LDB >= max(1, N). */ |
| 149 | |
| 150 | /* C (input/output) COMPLEX*16 array, dimension (LDC, N) */ |
| 151 | /* On entry, C contains the right-hand-side of the first matrix */ |
| 152 | /* equation in (1). */ |
| 153 | /* On exit, if IJOB = 0, C has been overwritten by the solution */ |
| 154 | /* R. */ |
| 155 | |
| 156 | /* LDC (input) INTEGER */ |
| 157 | /* The leading dimension of the matrix C. LDC >= max(1, M). */ |
| 158 | |
| 159 | /* D (input) COMPLEX*16 array, dimension (LDD, M) */ |
| 160 | /* On entry, D contains an upper triangular matrix. */ |
| 161 | |
| 162 | /* LDD (input) INTEGER */ |
| 163 | /* The leading dimension of the matrix D. LDD >= max(1, M). */ |
| 164 | |
| 165 | /* E (input) COMPLEX*16 array, dimension (LDE, N) */ |
| 166 | /* On entry, E contains an upper triangular matrix. */ |
| 167 | |
| 168 | /* LDE (input) INTEGER */ |
| 169 | /* The leading dimension of the matrix E. LDE >= max(1, N). */ |
| 170 | |
| 171 | /* F (input/output) COMPLEX*16 array, dimension (LDF, N) */ |
| 172 | /* On entry, F contains the right-hand-side of the second matrix */ |
| 173 | /* equation in (1). */ |
| 174 | /* On exit, if IJOB = 0, F has been overwritten by the solution */ |
| 175 | /* L. */ |
| 176 | |
| 177 | /* LDF (input) INTEGER */ |
| 178 | /* The leading dimension of the matrix F. LDF >= max(1, M). */ |
| 179 | |
| 180 | /* SCALE (output) DOUBLE PRECISION */ |
| 181 | /* On exit, 0 <= SCALE <= 1. If 0 < SCALE < 1, the solutions */ |
| 182 | /* R and L (C and F on entry) will hold the solutions to a */ |
| 183 | /* slightly perturbed system but the input matrices A, B, D and */ |
| 184 | /* E have not been changed. If SCALE = 0, R and L will hold the */ |
| 185 | /* solutions to the homogeneous system with C = F = 0. */ |
| 186 | /* Normally, SCALE = 1. */ |
| 187 | |
| 188 | /* RDSUM (input/output) DOUBLE PRECISION */ |
| 189 | /* On entry, the sum of squares of computed contributions to */ |
| 190 | /* the Dif-estimate under computation by ZTGSYL, where the */ |
| 191 | /* scaling factor RDSCAL (see below) has been factored out. */ |
| 192 | /* On exit, the corresponding sum of squares updated with the */ |
| 193 | /* contributions from the current sub-system. */ |
| 194 | /* If TRANS = 'T' RDSUM is not touched. */ |
| 195 | /* NOTE: RDSUM only makes sense when ZTGSY2 is called by */ |
| 196 | /* ZTGSYL. */ |
| 197 | |
| 198 | /* RDSCAL (input/output) DOUBLE PRECISION */ |
| 199 | /* On entry, scaling factor used to prevent overflow in RDSUM. */ |
| 200 | /* On exit, RDSCAL is updated w.r.t. the current contributions */ |
| 201 | /* in RDSUM. */ |
| 202 | /* If TRANS = 'T', RDSCAL is not touched. */ |
| 203 | /* NOTE: RDSCAL only makes sense when ZTGSY2 is called by */ |
| 204 | /* ZTGSYL. */ |
| 205 | |
| 206 | /* INFO (output) INTEGER */ |
| 207 | /* On exit, if INFO is set to */ |
| 208 | /* =0: Successful exit */ |
| 209 | /* <0: If INFO = -i, input argument number i is illegal. */ |
| 210 | /* >0: The matrix pairs (A, D) and (B, E) have common or very */ |
| 211 | /* close eigenvalues. */ |
| 212 | |
| 213 | /* Further Details */ |
| 214 | /* =============== */ |
| 215 | |
| 216 | /* Based on contributions by */ |
| 217 | /* Bo Kagstrom and Peter Poromaa, Department of Computing Science, */ |
| 218 | /* Umea University, S-901 87 Umea, Sweden. */ |
| 219 | |
| 220 | /* ===================================================================== */ |
| 221 | |
| 222 | /* .. Parameters .. */ |
| 223 | /*< DOUBLE PRECISION ZERO, ONE >*/ |
| 224 | /*< INTEGER LDZ >*/ |
| 225 | /*< PARAMETER ( ZERO = 0.0D+0, ONE = 1.0D+0, LDZ = 2 ) >*/ |
| 226 | /* .. */ |
| 227 | /* .. Local Scalars .. */ |
| 228 | /*< LOGICAL NOTRAN >*/ |
| 229 | /*< INTEGER I, IERR, J, K >*/ |
| 230 | /*< DOUBLE PRECISION SCALOC >*/ |
| 231 | /*< COMPLEX*16 ALPHA >*/ |
| 232 | /* .. */ |
| 233 | /* .. Local Arrays .. */ |
| 234 | /*< INTEGER IPIV( LDZ ), JPIV( LDZ ) >*/ |
| 235 | /*< COMPLEX*16 RHS( LDZ ), Z( LDZ, LDZ ) >*/ |
| 236 | /* .. */ |
| 237 | /* .. External Functions .. */ |
| 238 | /*< LOGICAL LSAME >*/ |
| 239 | /*< EXTERNAL LSAME >*/ |
| 240 | /* .. */ |
| 241 | /* .. External Subroutines .. */ |
| 242 | /*< EXTERNAL XERBLA, ZAXPY, ZGESC2, ZGETC2, ZLATDF, ZSCAL >*/ |
| 243 | /* .. */ |
| 244 | /* .. Intrinsic Functions .. */ |
| 245 | /*< INTRINSIC DCMPLX, DCONJG, MAX >*/ |
| 246 | /* .. */ |
| 247 | /* .. Executable Statements .. */ |
| 248 | |
| 249 | /* Decode and test input parameters */ |
| 250 | |
| 251 | /*< INFO = 0 >*/ |
| 252 | /* Parameter adjustments */ |
| 253 | a_dim1 = *lda; |
| 254 | a_offset = 1 + a_dim1; |
| 255 | a -= a_offset; |
| 256 | b_dim1 = *ldb; |
| 257 | b_offset = 1 + b_dim1; |
| 258 | b -= b_offset; |
| 259 | c_dim1 = *ldc; |
| 260 | c_offset = 1 + c_dim1; |
| 261 | c__ -= c_offset; |
| 262 | d_dim1 = *ldd; |
| 263 | d_offset = 1 + d_dim1; |
| 264 | d__ -= d_offset; |
| 265 | e_dim1 = *lde; |
| 266 | e_offset = 1 + e_dim1; |
| 267 | e -= e_offset; |
| 268 | f_dim1 = *ldf; |
| 269 | f_offset = 1 + f_dim1; |
| 270 | f -= f_offset; |
| 271 | |
| 272 | /* Function Body */ |
| 273 | *info = 0; |
| 274 | /*< IERR = 0 >*/ |
| 275 | ierr = 0; |
| 276 | /*< NOTRAN = LSAME( TRANS, 'N' ) >*/ |
| 277 | notran = lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(trans, "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); |
| 278 | /*< IF( .NOT.NOTRAN .AND. .NOT.LSAME( TRANS, 'C' ) ) THEN >*/ |
| 279 | if (! notran && ! lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(trans, "C", (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)) { |
| 280 | /*< INFO = -1 >*/ |
| 281 | *info = -1; |
| 282 | /*< ELSE IF( NOTRAN ) THEN >*/ |
| 283 | } else if (notran) { |
| 284 | /*< IF( ( IJOB.LT.0 ) .OR. ( IJOB.GT.2 ) ) THEN >*/ |
| 285 | if (*ijob < 0 || *ijob > 2) { |
| 286 | /*< INFO = -2 >*/ |
| 287 | *info = -2; |
| 288 | /*< END IF >*/ |
| 289 | } |
| 290 | /*< END IF >*/ |
| 291 | } |
| 292 | /*< IF( INFO.EQ.0 ) THEN >*/ |
| 293 | if (*info == 0) { |
| 294 | /*< IF( M.LE.0 ) THEN >*/ |
| 295 | if (*m <= 0) { |
| 296 | /*< INFO = -3 >*/ |
| 297 | *info = -3; |
| 298 | /*< ELSE IF( N.LE.0 ) THEN >*/ |
| 299 | } else if (*n <= 0) { |
| 300 | /*< INFO = -4 >*/ |
| 301 | *info = -4; |
| 302 | /*< ELSE IF( LDA.LT.MAX( 1, M ) ) THEN >*/ |
| 303 | } else if (*lda < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 304 | /*< INFO = -5 >*/ |
| 305 | *info = -5; |
| 306 | /*< ELSE IF( LDB.LT.MAX( 1, N ) ) THEN >*/ |
| 307 | } else if (*ldb < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 308 | /*< INFO = -8 >*/ |
| 309 | *info = -8; |
| 310 | /*< ELSE IF( LDC.LT.MAX( 1, M ) ) THEN >*/ |
| 311 | } else if (*ldc < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 312 | /*< INFO = -10 >*/ |
| 313 | *info = -10; |
| 314 | /*< ELSE IF( LDD.LT.MAX( 1, M ) ) THEN >*/ |
| 315 | } else if (*ldd < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 316 | /*< INFO = -12 >*/ |
| 317 | *info = -12; |
| 318 | /*< ELSE IF( LDE.LT.MAX( 1, N ) ) THEN >*/ |
| 319 | } else if (*lde < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 320 | /*< INFO = -14 >*/ |
| 321 | *info = -14; |
| 322 | /*< ELSE IF( LDF.LT.MAX( 1, M ) ) THEN >*/ |
| 323 | } else if (*ldf < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 324 | /*< INFO = -16 >*/ |
| 325 | *info = -16; |
| 326 | /*< END IF >*/ |
| 327 | } |
| 328 | /*< END IF >*/ |
| 329 | } |
| 330 | /*< IF( INFO.NE.0 ) THEN >*/ |
| 331 | if (*info != 0) { |
| 332 | /*< CALL XERBLA( 'ZTGSY2', -INFO ) >*/ |
| 333 | i__1 = -(*info); |
| 334 | xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!("ZTGSY2", &i__1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6); |
| 335 | /*< RETURN >*/ |
| 336 | return 0; |
| 337 | /*< END IF >*/ |
| 338 | } |
| 339 | |
| 340 | /*< IF( NOTRAN ) THEN >*/ |
| 341 | if (notran) { |
| 342 | |
| 343 | /* Solve (I, J) - system */ |
| 344 | /* A(I, I) * R(I, J) - L(I, J) * B(J, J) = C(I, J) */ |
| 345 | /* D(I, I) * R(I, J) - L(I, J) * E(J, J) = F(I, J) */ |
| 346 | /* for I = M, M - 1, ..., 1; J = 1, 2, ..., N */ |
| 347 | |
| 348 | /*< SCALE = ONE >*/ |
| 349 | *scale = 1.; |
| 350 | /*< SCALOC = ONE >*/ |
| 351 | scaloc = 1.; |
| 352 | /*< DO 30 J = 1, N >*/ |
| 353 | i__1 = *n; |
| 354 | for (j = 1; j <= i__1; ++j) { |
| 355 | /*< DO 20 I = M, 1, -1 >*/ |
| 356 | for (i__ = *m; i__ >= 1; --i__) { |
| 357 | |
| 358 | /* Build 2 by 2 system */ |
| 359 | |
| 360 | /*< Z( 1, 1 ) = A( I, I ) >*/ |
| 361 | i__2 = i__ + i__ * a_dim1; |
| 362 | z__[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = a[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = a[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 363 | /*< Z( 2, 1 ) = D( I, I ) >*/ |
| 364 | i__2 = i__ + i__ * d_dim1; |
| 365 | z__[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = d__[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = d__[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 366 | /*< Z( 1, 2 ) = -B( J, J ) >*/ |
| 367 | i__2 = j + j * b_dim1; |
| 368 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = -b[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = -b[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 369 | z__[2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 370 | /*< Z( 2, 2 ) = -E( J, J ) >*/ |
| 371 | i__2 = j + j * e_dim1; |
| 372 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = -e[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = -e[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 373 | z__[3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 374 | |
| 375 | /* Set up right hand side(s) */ |
| 376 | |
| 377 | /*< RHS( 1 ) = C( I, J ) >*/ |
| 378 | i__2 = i__ + j * c_dim1; |
| 379 | rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = c__[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = c__[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 380 | /*< RHS( 2 ) = F( I, J ) >*/ |
| 381 | i__2 = i__ + j * f_dim1; |
| 382 | rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = f[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = f[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 383 | |
| 384 | /* Solve Z * x = RHS */ |
| 385 | |
| 386 | /*< CALL ZGETC2( LDZ, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 387 | zgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:356:9`!(&c__2cxx . . $ c__2., z__, &c__2cxx . . $ c__2., ipiv, jpiv, &ierr); |
| 388 | /*< >*/ |
| 389 | if (ierr > 0) { |
| 390 | *info = ierr; |
| 391 | } |
| 392 | /*< IF( IJOB.EQ.0 ) THEN >*/ |
| 393 | if (*ijob == 0) { |
| 394 | /*< CALL ZGESC2( LDZ, Z, LDZ, RHS, IPIV, JPIV, SCALOC ) >*/ |
| 395 | zgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:369:9`!(&c__2cxx . . $ c__2., z__, &c__2cxx . . $ c__2., rhs, ipiv, jpiv, &scaloc); |
| 396 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 397 | if (scaloc != 1.) { |
| 398 | /*< DO 10 K = 1, N >*/ |
| 399 | i__2 = *n; |
| 400 | for (k = 1; k <= i__2; ++k) { |
| 401 | /*< >*/ |
| 402 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = scaloc, z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 403 | zscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:339:9`!(m, &z__1, &c__[k * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 404 | /*< >*/ |
| 405 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = scaloc, z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 406 | zscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:339:9`!(m, &z__1, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 407 | /*< 10 CONTINUE >*/ |
| 408 | /* L10: */ |
| 409 | } |
| 410 | /*< SCALE = SCALE*SCALOC >*/ |
| 411 | *scale *= scaloc; |
| 412 | /*< END IF >*/ |
| 413 | } |
| 414 | /*< ELSE >*/ |
| 415 | } else { |
| 416 | /*< >*/ |
| 417 | zlatdf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:351:9`!(ijob, &c__2cxx . . $ c__2., z__, &c__2cxx . . $ c__2., rhs, rdsum, rdscal, ipiv, |
| 418 | jpiv); |
| 419 | /*< END IF >*/ |
| 420 | } |
| 421 | |
| 422 | /* Unpack solution vector(s) */ |
| 423 | |
| 424 | /*< C( I, J ) = RHS( 1 ) >*/ |
| 425 | i__2 = i__ + j * c_dim1; |
| 426 | c__[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., c__[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 427 | /*< F( I, J ) = RHS( 2 ) >*/ |
| 428 | i__2 = i__ + j * f_dim1; |
| 429 | f[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., f[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 430 | |
| 431 | /* Substitute R(I, J) and L(I, J) into remaining equation. */ |
| 432 | |
| 433 | /*< IF( I.GT.1 ) THEN >*/ |
| 434 | if (i__ > 1) { |
| 435 | /*< ALPHA = -RHS( 1 ) >*/ |
| 436 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = -rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = -rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 437 | alpha.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., alpha.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 438 | /*< CALL ZAXPY( I-1, ALPHA, A( 1, I ), 1, C( 1, J ), 1 ) >*/ |
| 439 | i__2 = i__ - 1; |
| 440 | zaxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:306:9`!(&i__2, &alpha, &a[i__ * a_dim1 + 1], &c__1cxx . . $ c__1., &c__[j |
| 441 | * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 442 | /*< CALL ZAXPY( I-1, ALPHA, D( 1, I ), 1, F( 1, J ), 1 ) >*/ |
| 443 | i__2 = i__ - 1; |
| 444 | zaxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:306:9`!(&i__2, &alpha, &d__[i__ * d_dim1 + 1], &c__1cxx . . $ c__1., &f[j |
| 445 | * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 446 | /*< END IF >*/ |
| 447 | } |
| 448 | /*< IF( J.LT.N ) THEN >*/ |
| 449 | if (j < *n) { |
| 450 | /*< >*/ |
| 451 | i__2 = *n - j; |
| 452 | zaxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:306:9`!(&i__2, &rhs[1], &b[j + (j + 1) * b_dim1], ldb, & |
| 453 | c__[i__ + (j + 1) * c_dim1], ldc); |
| 454 | /*< >*/ |
| 455 | i__2 = *n - j; |
| 456 | zaxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:306:9`!(&i__2, &rhs[1], &e[j + (j + 1) * e_dim1], lde, &f[ |
| 457 | i__ + (j + 1) * f_dim1], ldf); |
| 458 | /*< END IF >*/ |
| 459 | } |
| 460 | |
| 461 | /*< 20 CONTINUE >*/ |
| 462 | /* L20: */ |
| 463 | } |
| 464 | /*< 30 CONTINUE >*/ |
| 465 | /* L30: */ |
| 466 | } |
| 467 | /*< ELSE >*/ |
| 468 | } else { |
| 469 | |
| 470 | /* Solve transposed (I, J) - system: */ |
| 471 | /* A(I, I)' * R(I, J) + D(I, I)' * L(J, J) = C(I, J) */ |
| 472 | /* R(I, I) * B(J, J) + L(I, J) * E(J, J) = -F(I, J) */ |
| 473 | /* for I = 1, 2, ..., M, J = N, N - 1, ..., 1 */ |
| 474 | |
| 475 | /*< SCALE = ONE >*/ |
| 476 | *scale = 1.; |
| 477 | /*< SCALOC = ONE >*/ |
| 478 | scaloc = 1.; |
| 479 | /*< DO 80 I = 1, M >*/ |
| 480 | i__1 = *m; |
| 481 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 482 | /*< DO 70 J = N, 1, -1 >*/ |
| 483 | for (j = *n; j >= 1; --j) { |
| 484 | |
| 485 | /* Build 2 by 2 system Z' */ |
| 486 | |
| 487 | /*< Z( 1, 1 ) = DCONJG( A( I, I ) ) >*/ |
| 488 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__1, &a[i__ + i__ * a_dim1]); |
| 489 | z__[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 490 | /*< Z( 2, 1 ) = -DCONJG( B( J, J ) ) >*/ |
| 491 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__2, &b[j + j * b_dim1]); |
| 492 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = -z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = -z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 493 | z__[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 494 | /*< Z( 1, 2 ) = DCONJG( D( I, I ) ) >*/ |
| 495 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__1, &d__[i__ + i__ * d_dim1]); |
| 496 | z__[2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 497 | /*< Z( 2, 2 ) = -DCONJG( E( J, J ) ) >*/ |
| 498 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__2, &e[j + j * e_dim1]); |
| 499 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = -z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = -z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 500 | z__[3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__[3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 501 | |
| 502 | |
| 503 | /* Set up right hand side(s) */ |
| 504 | |
| 505 | /*< RHS( 1 ) = C( I, J ) >*/ |
| 506 | i__2 = i__ + j * c_dim1; |
| 507 | rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = c__[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = c__[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 508 | /*< RHS( 2 ) = F( I, J ) >*/ |
| 509 | i__2 = i__ + j * f_dim1; |
| 510 | rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = f[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = f[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 511 | |
| 512 | /* Solve Z' * x = RHS */ |
| 513 | |
| 514 | /*< CALL ZGETC2( LDZ, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 515 | zgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:356:9`!(&c__2cxx . . $ c__2., z__, &c__2cxx . . $ c__2., ipiv, jpiv, &ierr); |
| 516 | /*< >*/ |
| 517 | if (ierr > 0) { |
| 518 | *info = ierr; |
| 519 | } |
| 520 | /*< CALL ZGESC2( LDZ, Z, LDZ, RHS, IPIV, JPIV, SCALOC ) >*/ |
| 521 | zgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:369:9`!(&c__2cxx . . $ c__2., z__, &c__2cxx . . $ c__2., rhs, ipiv, jpiv, &scaloc); |
| 522 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 523 | if (scaloc != 1.) { |
| 524 | /*< DO 40 K = 1, N >*/ |
| 525 | i__2 = *n; |
| 526 | for (k = 1; k <= i__2; ++k) { |
| 527 | /*< >*/ |
| 528 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = scaloc, z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 529 | zscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:339:9`!(m, &z__1, &c__[k * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 530 | /*< >*/ |
| 531 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = scaloc, z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 532 | zscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:339:9`!(m, &z__1, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 533 | /*< 40 CONTINUE >*/ |
| 534 | /* L40: */ |
| 535 | } |
| 536 | /*< SCALE = SCALE*SCALOC >*/ |
| 537 | *scale *= scaloc; |
| 538 | /*< END IF >*/ |
| 539 | } |
| 540 | |
| 541 | /* Unpack solution vector(s) */ |
| 542 | |
| 543 | /*< C( I, J ) = RHS( 1 ) >*/ |
| 544 | i__2 = i__ + j * c_dim1; |
| 545 | c__[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., c__[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 546 | /*< F( I, J ) = RHS( 2 ) >*/ |
| 547 | i__2 = i__ + j * f_dim1; |
| 548 | f[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., f[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 549 | |
| 550 | /* Substitute R(I, J) and L(I, J) into remaining equation. */ |
| 551 | |
| 552 | /*< DO 50 K = 1, J - 1 >*/ |
| 553 | i__2 = j - 1; |
| 554 | for (k = 1; k <= i__2; ++k) { |
| 555 | /*< >*/ |
| 556 | i__3 = i__ + k * f_dim1; |
| 557 | i__4 = i__ + k * f_dim1; |
| 558 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__4, &b[k + j * b_dim1]); |
| 559 | z__3.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * z__4.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * z__4.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__3.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = |
| 560 | rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * z__4.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * z__4.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 561 | z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = f[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. + z__3.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = f[i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__3.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 562 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__6, &e[k + j * e_dim1]); |
| 563 | z__5.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * z__6.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * z__6.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__5.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = |
| 564 | rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * z__6.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * z__6.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 565 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. + z__5.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__5.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 566 | f[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., f[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 567 | /*< 50 CONTINUE >*/ |
| 568 | /* L50: */ |
| 569 | } |
| 570 | /*< DO 60 K = I + 1, M >*/ |
| 571 | i__2 = *m; |
| 572 | for (k = i__ + 1; k <= i__2; ++k) { |
| 573 | /*< >*/ |
| 574 | i__3 = k + j * c_dim1; |
| 575 | i__4 = k + j * c_dim1; |
| 576 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__4, &a[i__ + k * a_dim1]); |
| 577 | z__3.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__4.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - z__4.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__3.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = |
| 578 | z__4.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * rhs[0].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__4.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * rhs[0].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 579 | z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = c__[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - z__3.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = c__[i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. - |
| 580 | z__3.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 581 | d_cnjgcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:11:9`!(&z__6, &d__[i__ + k * d_dim1]); |
| 582 | z__5.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__6.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - z__6.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__5.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = |
| 583 | z__6.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * rhs[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__6.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * rhs[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 584 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - z__5.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. - z__5.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 585 | c__[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., c__[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 586 | /*< 60 CONTINUE >*/ |
| 587 | /* L60: */ |
| 588 | } |
| 589 | |
| 590 | /*< 70 CONTINUE >*/ |
| 591 | /* L70: */ |
| 592 | } |
| 593 | /*< 80 CONTINUE >*/ |
| 594 | /* L80: */ |
| 595 | } |
| 596 | /*< END IF >*/ |
| 597 | } |
| 598 | /*< RETURN >*/ |
| 599 | return 0; |
| 600 | |
| 601 | /* End of ZTGSY2 */ |
| 602 | |
| 603 | /*< END >*/ |
| 604 | } /* ztgsy2_ */ |
| 605 | |
| 606 | #ifdef __cplusplus |
| 607 | } |
| 608 | #endif |