| 1 | /* lapack/double/dtgsy2.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 integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__8cxx . . $ c__8. = 8; |
| 21 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__1cxx . . $ c__1. = 1; |
| 22 | static doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! c_b27cxx . . $ c_b27. = -1.; |
| 23 | static doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! c_b42cxx . . $ c_b42. = 1.; |
| 24 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__64cxx . . $ c__64. = 64; |
| 25 | static doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! c_b54cxx . . $ c_b54. = 0.; |
| 26 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__0cxx . . $ c__0. = 0; |
| 27 | |
| 28 | /*< >*/ |
| 29 | /* Subroutine */ int dtgsy2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:150: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`! * |
| 30 | n, 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, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldb, |
| 31 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *c__, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldc, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *d__, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldd, |
| 32 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *e, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *lde, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *f, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ldf, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! * |
| 33 | 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`! *iwork, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! |
| 34 | *pq, 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`! trans_len) |
| 35 | { |
| 36 | /* System generated locals */ |
| 37 | 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, |
| 38 | d_offset, e_dim1, e_offset, f_dim1, f_offset, i__1, i__2, i__3; |
| 39 | |
| 40 | /* Local variables */ |
| 41 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__, j, k, p, q; |
| 42 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! z__[64] /* was [8][8] */; |
| 43 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! ie, je, mb, nb, ii, jj, is, js; |
| 44 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! rhs[8]; |
| 45 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! isp1, jsp1; |
| 46 | extern /* Subroutine */ int dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49: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`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, |
| 47 | 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`! *, 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`! *, |
| 48 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *); |
| 49 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! ierr, zdim, ipiv[8], jpiv[8]; |
| 50 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! alpha; |
| 51 | extern /* Subroutine */ int dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132: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`! *, |
| 52 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *), dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!(char *, 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`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! * |
| 53 | , 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`! *, 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`! *, |
| 54 | 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`!, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!); |
| 55 | 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`!); |
| 56 | extern /* Subroutine */ int dgemv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:46: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`! *, |
| 57 | 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`! *, 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`! *, |
| 58 | 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`!), dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, |
| 59 | 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`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *), daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! |
| 60 | *, 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`! *, 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`! *) |
| 61 | , dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51: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`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *, |
| 62 | 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`! *, doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! *), dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, |
| 63 | 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`! *, 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`! *), |
| 64 | dlatdf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:102: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`! *, 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`! |
| 65 | *, 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`! *); |
| 66 | doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! scaloc; |
| 67 | 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`!); |
| 68 | logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! notran; |
| 69 | (void)trans_len; |
| 70 | |
| 71 | /* -- LAPACK auxiliary routine (version 3.0) -- */ |
| 72 | /* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., */ |
| 73 | /* Courant Institute, Argonne National Lab, and Rice University */ |
| 74 | /* June 30, 1999 */ |
| 75 | |
| 76 | /* .. Scalar Arguments .. */ |
| 77 | /*< CHARACTER TRANS >*/ |
| 78 | /*< >*/ |
| 79 | /*< DOUBLE PRECISION RDSCAL, RDSUM, SCALE >*/ |
| 80 | /* .. */ |
| 81 | /* .. Array Arguments .. */ |
| 82 | /*< INTEGER IWORK( * ) >*/ |
| 83 | /*< >*/ |
| 84 | /* .. */ |
| 85 | |
| 86 | /* Purpose */ |
| 87 | /* ======= */ |
| 88 | |
| 89 | /* DTGSY2 solves the generalized Sylvester equation: */ |
| 90 | |
| 91 | /* A * R - L * B = scale * C (1) */ |
| 92 | /* D * R - L * E = scale * F, */ |
| 93 | |
| 94 | /* using Level 1 and 2 BLAS. where R and L are unknown M-by-N matrices, */ |
| 95 | /* (A, D), (B, E) and (C, F) are given matrix pairs of size M-by-M, */ |
| 96 | /* N-by-N and M-by-N, respectively, with real entries. (A, D) and (B, E) */ |
| 97 | /* must be in generalized Schur canonical form, i.e. A, B are upper */ |
| 98 | /* quasi triangular and D, E are upper triangular. The solution (R, L) */ |
| 99 | /* overwrites (C, F). 0 <= SCALE <= 1 is an output scaling factor */ |
| 100 | /* chosen to avoid overflow. */ |
| 101 | |
| 102 | /* In matrix notation solving equation (1) corresponds to solve */ |
| 103 | /* Z*x = scale*b, where Z is defined as */ |
| 104 | |
| 105 | /* Z = [ kron(In, A) -kron(B', Im) ] (2) */ |
| 106 | /* [ kron(In, D) -kron(E', Im) ], */ |
| 107 | |
| 108 | /* Ik is the identity matrix of size k and X' is the transpose of X. */ |
| 109 | /* kron(X, Y) is the Kronecker product between the matrices X and Y. */ |
| 110 | /* In the process of solving (1), we solve a number of such systems */ |
| 111 | /* where Dim(In), Dim(In) = 1 or 2. */ |
| 112 | |
| 113 | /* If TRANS = 'T', solve the transposed system Z'*y = scale*b for y, */ |
| 114 | /* which is equivalent to solve for R and L in */ |
| 115 | |
| 116 | /* A' * R + D' * L = scale * C (3) */ |
| 117 | /* R * B' + L * E' = scale * -F */ |
| 118 | |
| 119 | /* This case is used to compute an estimate of Dif[(A, D), (B, E)] = */ |
| 120 | /* sigma_min(Z) using reverse communicaton with DLACON. */ |
| 121 | |
| 122 | /* DTGSY2 also (IJOB >= 1) contributes to the computation in STGSYL */ |
| 123 | /* of an upper bound on the separation between to matrix pairs. Then */ |
| 124 | /* the input (A, D), (B, E) are sub-pencils of the matrix pair in */ |
| 125 | /* DTGSYL. See STGSYL for details. */ |
| 126 | |
| 127 | /* Arguments */ |
| 128 | /* ========= */ |
| 129 | |
| 130 | /* TRANS (input) CHARACTER */ |
| 131 | /* = 'N', solve the generalized Sylvester equation (1). */ |
| 132 | /* = 'T': solve the 'transposed' system (3). */ |
| 133 | |
| 134 | /* IJOB (input) INTEGER */ |
| 135 | /* Specifies what kind of functionality to be performed. */ |
| 136 | /* = 0: solve (1) only. */ |
| 137 | /* = 1: A contribution from this subsystem to a Frobenius */ |
| 138 | /* norm-based estimate of the separation between two matrix */ |
| 139 | /* pairs is computed. (look ahead strategy is used). */ |
| 140 | /* = 2: A contribution from this subsystem to a Frobenius */ |
| 141 | /* norm-based estimate of the separation between two matrix */ |
| 142 | /* pairs is computed. (DGECON on sub-systems is used.) */ |
| 143 | /* Not referenced if TRANS = 'T'. */ |
| 144 | |
| 145 | /* M (input) INTEGER */ |
| 146 | /* On entry, M specifies the order of A and D, and the row */ |
| 147 | /* dimension of C, F, R and L. */ |
| 148 | |
| 149 | /* N (input) INTEGER */ |
| 150 | /* On entry, N specifies the order of B and E, and the column */ |
| 151 | /* dimension of C, F, R and L. */ |
| 152 | |
| 153 | /* A (input) DOUBLE PRECISION array, dimension (LDA, M) */ |
| 154 | /* On entry, A contains an upper quasi triangular matrix. */ |
| 155 | |
| 156 | /* LDA (input) INTEGER */ |
| 157 | /* The leading dimension of the matrix A. LDA >= max(1, M). */ |
| 158 | |
| 159 | /* B (input) DOUBLE PRECISION array, dimension (LDB, N) */ |
| 160 | /* On entry, B contains an upper quasi triangular matrix. */ |
| 161 | |
| 162 | /* LDB (input) INTEGER */ |
| 163 | /* The leading dimension of the matrix B. LDB >= max(1, N). */ |
| 164 | |
| 165 | /* C (input/ output) DOUBLE PRECISION array, dimension (LDC, N) */ |
| 166 | /* On entry, C contains the right-hand-side of the first matrix */ |
| 167 | /* equation in (1). */ |
| 168 | /* On exit, if IJOB = 0, C has been overwritten by the */ |
| 169 | /* solution R. */ |
| 170 | |
| 171 | /* LDC (input) INTEGER */ |
| 172 | /* The leading dimension of the matrix C. LDC >= max(1, M). */ |
| 173 | |
| 174 | /* D (input) DOUBLE PRECISION array, dimension (LDD, M) */ |
| 175 | /* On entry, D contains an upper triangular matrix. */ |
| 176 | |
| 177 | /* LDD (input) INTEGER */ |
| 178 | /* The leading dimension of the matrix D. LDD >= max(1, M). */ |
| 179 | |
| 180 | /* E (input) DOUBLE PRECISION array, dimension (LDE, N) */ |
| 181 | /* On entry, E contains an upper triangular matrix. */ |
| 182 | |
| 183 | /* LDE (input) INTEGER */ |
| 184 | /* The leading dimension of the matrix E. LDE >= max(1, N). */ |
| 185 | |
| 186 | /* F (input/ output) DOUBLE PRECISION array, dimension (LDF, N) */ |
| 187 | /* On entry, F contains the right-hand-side of the second matrix */ |
| 188 | /* equation in (1). */ |
| 189 | /* On exit, if IJOB = 0, F has been overwritten by the */ |
| 190 | /* solution L. */ |
| 191 | |
| 192 | /* LDF (input) INTEGER */ |
| 193 | /* The leading dimension of the matrix F. LDF >= max(1, M). */ |
| 194 | |
| 195 | /* SCALE (output) DOUBLE PRECISION */ |
| 196 | /* On exit, 0 <= SCALE <= 1. If 0 < SCALE < 1, the solutions */ |
| 197 | /* R and L (C and F on entry) will hold the solutions to a */ |
| 198 | /* slightly perturbed system but the input matrices A, B, D and */ |
| 199 | /* E have not been changed. If SCALE = 0, R and L will hold the */ |
| 200 | /* solutions to the homogeneous system with C = F = 0. Normally, */ |
| 201 | /* SCALE = 1. */ |
| 202 | |
| 203 | /* RDSUM (input/output) DOUBLE PRECISION */ |
| 204 | /* On entry, the sum of squares of computed contributions to */ |
| 205 | /* the Dif-estimate under computation by DTGSYL, where the */ |
| 206 | /* scaling factor RDSCAL (see below) has been factored out. */ |
| 207 | /* On exit, the corresponding sum of squares updated with the */ |
| 208 | /* contributions from the current sub-system. */ |
| 209 | /* If TRANS = 'T' RDSUM is not touched. */ |
| 210 | /* NOTE: RDSUM only makes sense when DTGSY2 is called by STGSYL. */ |
| 211 | |
| 212 | /* RDSCAL (input/output) DOUBLE PRECISION */ |
| 213 | /* On entry, scaling factor used to prevent overflow in RDSUM. */ |
| 214 | /* On exit, RDSCAL is updated w.r.t. the current contributions */ |
| 215 | /* in RDSUM. */ |
| 216 | /* If TRANS = 'T', RDSCAL is not touched. */ |
| 217 | /* NOTE: RDSCAL only makes sense when DTGSY2 is called by */ |
| 218 | /* DTGSYL. */ |
| 219 | |
| 220 | /* IWORK (workspace) INTEGER array, dimension (M+N+2) */ |
| 221 | |
| 222 | /* PQ (output) INTEGER */ |
| 223 | /* On exit, the number of subsystems (of size 2-by-2, 4-by-4 and */ |
| 224 | /* 8-by-8) solved by this routine. */ |
| 225 | |
| 226 | /* INFO (output) INTEGER */ |
| 227 | /* On exit, if INFO is set to */ |
| 228 | /* =0: Successful exit */ |
| 229 | /* <0: If INFO = -i, the i-th argument had an illegal value. */ |
| 230 | /* >0: The matrix pairs (A, D) and (B, E) have common or very */ |
| 231 | /* close eigenvalues. */ |
| 232 | |
| 233 | /* Further Details */ |
| 234 | /* =============== */ |
| 235 | |
| 236 | /* Based on contributions by */ |
| 237 | /* Bo Kagstrom and Peter Poromaa, Department of Computing Science, */ |
| 238 | /* Umea University, S-901 87 Umea, Sweden. */ |
| 239 | |
| 240 | /* ===================================================================== */ |
| 241 | |
| 242 | /* .. Parameters .. */ |
| 243 | /*< INTEGER LDZ >*/ |
| 244 | /*< PARAMETER ( LDZ = 8 ) >*/ |
| 245 | /*< DOUBLE PRECISION ZERO, ONE >*/ |
| 246 | /*< PARAMETER ( ZERO = 0.0D+0, ONE = 1.0D+0 ) >*/ |
| 247 | /* .. */ |
| 248 | /* .. Local Scalars .. */ |
| 249 | /*< LOGICAL NOTRAN >*/ |
| 250 | /*< >*/ |
| 251 | /*< DOUBLE PRECISION ALPHA, SCALOC >*/ |
| 252 | /* .. */ |
| 253 | /* .. Local Arrays .. */ |
| 254 | /*< INTEGER IPIV( LDZ ), JPIV( LDZ ) >*/ |
| 255 | /*< DOUBLE PRECISION RHS( LDZ ), Z( LDZ, LDZ ) >*/ |
| 256 | /* .. */ |
| 257 | /* .. External Functions .. */ |
| 258 | /*< LOGICAL LSAME >*/ |
| 259 | /*< EXTERNAL LSAME >*/ |
| 260 | /* .. */ |
| 261 | /* .. External Subroutines .. */ |
| 262 | /*< >*/ |
| 263 | /* .. */ |
| 264 | /* .. Intrinsic Functions .. */ |
| 265 | /*< INTRINSIC MAX >*/ |
| 266 | /* .. */ |
| 267 | /* .. Executable Statements .. */ |
| 268 | |
| 269 | /* Decode and test input parameters */ |
| 270 | |
| 271 | /*< INFO = 0 >*/ |
| 272 | /* Parameter adjustments */ |
| 273 | a_dim1 = *lda; |
| 274 | a_offset = 1 + a_dim1; |
| 275 | a -= a_offset; |
| 276 | b_dim1 = *ldb; |
| 277 | b_offset = 1 + b_dim1; |
| 278 | b -= b_offset; |
| 279 | c_dim1 = *ldc; |
| 280 | c_offset = 1 + c_dim1; |
| 281 | c__ -= c_offset; |
| 282 | d_dim1 = *ldd; |
| 283 | d_offset = 1 + d_dim1; |
| 284 | d__ -= d_offset; |
| 285 | e_dim1 = *lde; |
| 286 | e_offset = 1 + e_dim1; |
| 287 | e -= e_offset; |
| 288 | f_dim1 = *ldf; |
| 289 | f_offset = 1 + f_dim1; |
| 290 | f -= f_offset; |
| 291 | --iwork; |
| 292 | |
| 293 | /* Function Body */ |
| 294 | *info = 0; |
| 295 | /*< IERR = 0 >*/ |
| 296 | ierr = 0; |
| 297 | /*< NOTRAN = LSAME( TRANS, 'N' ) >*/ |
| 298 | 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); |
| 299 | /*< IF( .NOT.NOTRAN .AND. .NOT.LSAME( TRANS, 'T' ) ) THEN >*/ |
| 300 | if (! notran && ! lsame_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:194:9`!(trans, "T", (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)) { |
| 301 | /*< INFO = -1 >*/ |
| 302 | *info = -1; |
| 303 | /*< ELSE IF( ( IJOB.LT.0 ) .OR. ( IJOB.GT.2 ) ) THEN >*/ |
| 304 | } else if (*ijob < 0 || *ijob > 2) { |
| 305 | /*< INFO = -2 >*/ |
| 306 | *info = -2; |
| 307 | /*< ELSE IF( M.LE.0 ) THEN >*/ |
| 308 | } else if (*m <= 0) { |
| 309 | /*< INFO = -3 >*/ |
| 310 | *info = -3; |
| 311 | /*< ELSE IF( N.LE.0 ) THEN >*/ |
| 312 | } else if (*n <= 0) { |
| 313 | /*< INFO = -4 >*/ |
| 314 | *info = -4; |
| 315 | /*< ELSE IF( LDA.LT.MAX( 1, M ) ) THEN >*/ |
| 316 | } else if (*lda < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 317 | /*< INFO = -5 >*/ |
| 318 | *info = -5; |
| 319 | /*< ELSE IF( LDB.LT.MAX( 1, N ) ) THEN >*/ |
| 320 | } else if (*ldb < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 321 | /*< INFO = -8 >*/ |
| 322 | *info = -8; |
| 323 | /*< ELSE IF( LDC.LT.MAX( 1, M ) ) THEN >*/ |
| 324 | } else if (*ldc < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 325 | /*< INFO = -10 >*/ |
| 326 | *info = -10; |
| 327 | /*< ELSE IF( LDD.LT.MAX( 1, M ) ) THEN >*/ |
| 328 | } else if (*ldd < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 329 | /*< INFO = -12 >*/ |
| 330 | *info = -12; |
| 331 | /*< ELSE IF( LDE.LT.MAX( 1, N ) ) THEN >*/ |
| 332 | } else if (*lde < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 333 | /*< INFO = -14 >*/ |
| 334 | *info = -14; |
| 335 | /*< ELSE IF( LDF.LT.MAX( 1, M ) ) THEN >*/ |
| 336 | } else if (*ldf < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*m)) { |
| 337 | /*< INFO = -16 >*/ |
| 338 | *info = -16; |
| 339 | /*< END IF >*/ |
| 340 | } |
| 341 | /*< IF( INFO.NE.0 ) THEN >*/ |
| 342 | if (*info != 0) { |
| 343 | /*< CALL XERBLA( 'DTGSY2', -INFO ) >*/ |
| 344 | i__1 = -(*info); |
| 345 | xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!("DTGSY2", &i__1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6); |
| 346 | /*< RETURN >*/ |
| 347 | return 0; |
| 348 | /*< END IF >*/ |
| 349 | } |
| 350 | |
| 351 | /* Determine block structure of A */ |
| 352 | |
| 353 | /*< PQ = 0 >*/ |
| 354 | *pq = 0; |
| 355 | /*< P = 0 >*/ |
| 356 | p = 0; |
| 357 | /*< I = 1 >*/ |
| 358 | i__ = 1; |
| 359 | /*< 10 CONTINUE >*/ |
| 360 | L10: |
| 361 | /*< >*/ |
| 362 | if (i__ > *m) { |
| 363 | goto L20; |
| 364 | } |
| 365 | /*< P = P + 1 >*/ |
| 366 | ++p; |
| 367 | /*< IWORK( P ) = I >*/ |
| 368 | iwork[p] = i__; |
| 369 | /*< >*/ |
| 370 | if (i__ == *m) { |
| 371 | goto L20; |
| 372 | } |
| 373 | /*< IF( A( I+1, I ).NE.ZERO ) THEN >*/ |
| 374 | if (a[i__ + 1 + i__ * a_dim1] != 0.) { |
| 375 | /*< I = I + 2 >*/ |
| 376 | i__ += 2; |
| 377 | /*< ELSE >*/ |
| 378 | } else { |
| 379 | /*< I = I + 1 >*/ |
| 380 | ++i__; |
| 381 | /*< END IF >*/ |
| 382 | } |
| 383 | /*< GO TO 10 >*/ |
| 384 | goto L10; |
| 385 | /*< 20 CONTINUE >*/ |
| 386 | L20: |
| 387 | /*< IWORK( P+1 ) = M + 1 >*/ |
| 388 | iwork[p + 1] = *m + 1; |
| 389 | |
| 390 | /* Determine block structure of B */ |
| 391 | |
| 392 | /*< Q = P + 1 >*/ |
| 393 | q = p + 1; |
| 394 | /*< J = 1 >*/ |
| 395 | j = 1; |
| 396 | /*< 30 CONTINUE >*/ |
| 397 | L30: |
| 398 | /*< >*/ |
| 399 | if (j > *n) { |
| 400 | goto L40; |
| 401 | } |
| 402 | /*< Q = Q + 1 >*/ |
| 403 | ++q; |
| 404 | /*< IWORK( Q ) = J >*/ |
| 405 | iwork[q] = j; |
| 406 | /*< >*/ |
| 407 | if (j == *n) { |
| 408 | goto L40; |
| 409 | } |
| 410 | /*< IF( B( J+1, J ).NE.ZERO ) THEN >*/ |
| 411 | if (b[j + 1 + j * b_dim1] != 0.) { |
| 412 | /*< J = J + 2 >*/ |
| 413 | j += 2; |
| 414 | /*< ELSE >*/ |
| 415 | } else { |
| 416 | /*< J = J + 1 >*/ |
| 417 | ++j; |
| 418 | /*< END IF >*/ |
| 419 | } |
| 420 | /*< GO TO 30 >*/ |
| 421 | goto L30; |
| 422 | /*< 40 CONTINUE >*/ |
| 423 | L40: |
| 424 | /*< IWORK( Q+1 ) = N + 1 >*/ |
| 425 | iwork[q + 1] = *n + 1; |
| 426 | /*< PQ = P*( Q-P-1 ) >*/ |
| 427 | *pq = p * (q - p - 1); |
| 428 | |
| 429 | /*< IF( NOTRAN ) THEN >*/ |
| 430 | if (notran) { |
| 431 | |
| 432 | /* Solve (I, J) - subsystem */ |
| 433 | /* A(I, I) * R(I, J) - L(I, J) * B(J, J) = C(I, J) */ |
| 434 | /* D(I, I) * R(I, J) - L(I, J) * E(J, J) = F(I, J) */ |
| 435 | /* for I = P, P - 1, ..., 1; J = 1, 2, ..., Q */ |
| 436 | |
| 437 | /*< SCALE = ONE >*/ |
| 438 | *scale = 1.; |
| 439 | /*< SCALOC = ONE >*/ |
| 440 | scaloc = 1.; |
| 441 | /*< DO 120 J = P + 2, Q >*/ |
| 442 | i__1 = q; |
| 443 | for (j = p + 2; j <= i__1; ++j) { |
| 444 | /*< JS = IWORK( J ) >*/ |
| 445 | js = iwork[j]; |
| 446 | /*< JSP1 = JS + 1 >*/ |
| 447 | jsp1 = js + 1; |
| 448 | /*< JE = IWORK( J+1 ) - 1 >*/ |
| 449 | je = iwork[j + 1] - 1; |
| 450 | /*< NB = JE - JS + 1 >*/ |
| 451 | nb = je - js + 1; |
| 452 | /*< DO 110 I = P, 1, -1 >*/ |
| 453 | for (i__ = p; i__ >= 1; --i__) { |
| 454 | |
| 455 | /*< IS = IWORK( I ) >*/ |
| 456 | is = iwork[i__]; |
| 457 | /*< ISP1 = IS + 1 >*/ |
| 458 | isp1 = is + 1; |
| 459 | /*< IE = IWORK( I+1 ) - 1 >*/ |
| 460 | ie = iwork[i__ + 1] - 1; |
| 461 | /*< MB = IE - IS + 1 >*/ |
| 462 | mb = ie - is + 1; |
| 463 | /*< ZDIM = MB*NB*2 >*/ |
| 464 | zdim = mb * nb << 1; |
| 465 | |
| 466 | /*< IF( ( MB.EQ.1 ) .AND. ( NB.EQ.1 ) ) THEN >*/ |
| 467 | if (mb == 1 && nb == 1) { |
| 468 | |
| 469 | /* Build a 2-by-2 system Z * x = RHS */ |
| 470 | |
| 471 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 472 | z__[0] = a[is + is * a_dim1]; |
| 473 | /*< Z( 2, 1 ) = D( IS, IS ) >*/ |
| 474 | z__[1] = d__[is + is * d_dim1]; |
| 475 | /*< Z( 1, 2 ) = -B( JS, JS ) >*/ |
| 476 | z__[8] = -b[js + js * b_dim1]; |
| 477 | /*< Z( 2, 2 ) = -E( JS, JS ) >*/ |
| 478 | z__[9] = -e[js + js * e_dim1]; |
| 479 | |
| 480 | /* Set up right hand side(s) */ |
| 481 | |
| 482 | /*< RHS( 1 ) = C( IS, JS ) >*/ |
| 483 | rhs[0] = c__[is + js * c_dim1]; |
| 484 | /*< RHS( 2 ) = F( IS, JS ) >*/ |
| 485 | rhs[1] = f[is + js * f_dim1]; |
| 486 | |
| 487 | /* Solve Z * x = RHS */ |
| 488 | |
| 489 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 490 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 491 | /*< >*/ |
| 492 | if (ierr > 0) { |
| 493 | *info = ierr; |
| 494 | } |
| 495 | |
| 496 | /*< IF( IJOB.EQ.0 ) THEN >*/ |
| 497 | if (*ijob == 0) { |
| 498 | /*< >*/ |
| 499 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 500 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 501 | if (scaloc != 1.) { |
| 502 | /*< DO 50 K = 1, N >*/ |
| 503 | i__2 = *n; |
| 504 | for (k = 1; k <= i__2; ++k) { |
| 505 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 506 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], & |
| 507 | c__1cxx . . $ c__1.); |
| 508 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 509 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 510 | /*< 50 CONTINUE >*/ |
| 511 | /* L50: */ |
| 512 | } |
| 513 | /*< SCALE = SCALE*SCALOC >*/ |
| 514 | *scale *= scaloc; |
| 515 | /*< END IF >*/ |
| 516 | } |
| 517 | /*< ELSE >*/ |
| 518 | } else { |
| 519 | /*< >*/ |
| 520 | dlatdf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:102:9`!(ijob, &zdim, z__, &c__8cxx . . $ c__8., rhs, rdsum, rdscal, |
| 521 | ipiv, jpiv); |
| 522 | /*< END IF >*/ |
| 523 | } |
| 524 | |
| 525 | /* Unpack solution vector(s) */ |
| 526 | |
| 527 | /*< C( IS, JS ) = RHS( 1 ) >*/ |
| 528 | c__[is + js * c_dim1] = rhs[0]; |
| 529 | /*< F( IS, JS ) = RHS( 2 ) >*/ |
| 530 | f[is + js * f_dim1] = rhs[1]; |
| 531 | |
| 532 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 533 | /* equation. */ |
| 534 | |
| 535 | /*< IF( I.GT.1 ) THEN >*/ |
| 536 | if (i__ > 1) { |
| 537 | /*< ALPHA = -RHS( 1 ) >*/ |
| 538 | alpha = -rhs[0]; |
| 539 | /*< >*/ |
| 540 | i__2 = is - 1; |
| 541 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &alpha, &a[is * a_dim1 + 1], &c__1cxx . . $ c__1., & |
| 542 | c__[js * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 543 | /*< >*/ |
| 544 | i__2 = is - 1; |
| 545 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &alpha, &d__[is * d_dim1 + 1], &c__1cxx . . $ c__1., & |
| 546 | f[js * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 547 | /*< END IF >*/ |
| 548 | } |
| 549 | /*< IF( J.LT.Q ) THEN >*/ |
| 550 | if (j < q) { |
| 551 | /*< >*/ |
| 552 | i__2 = *n - je; |
| 553 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &rhs[1], &b[js + (je + 1) * b_dim1], |
| 554 | ldb, &c__[is + (je + 1) * c_dim1], ldc); |
| 555 | /*< >*/ |
| 556 | i__2 = *n - je; |
| 557 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &rhs[1], &e[js + (je + 1) * e_dim1], |
| 558 | lde, &f[is + (je + 1) * f_dim1], ldf); |
| 559 | /*< END IF >*/ |
| 560 | } |
| 561 | |
| 562 | /*< ELSE IF( ( MB.EQ.1 ) .AND. ( NB.EQ.2 ) ) THEN >*/ |
| 563 | } else if (mb == 1 && nb == 2) { |
| 564 | |
| 565 | /* Build a 4-by-4 system Z * x = RHS */ |
| 566 | |
| 567 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 568 | z__[0] = a[is + is * a_dim1]; |
| 569 | /*< Z( 2, 1 ) = ZERO >*/ |
| 570 | z__[1] = 0.; |
| 571 | /*< Z( 3, 1 ) = D( IS, IS ) >*/ |
| 572 | z__[2] = d__[is + is * d_dim1]; |
| 573 | /*< Z( 4, 1 ) = ZERO >*/ |
| 574 | z__[3] = 0.; |
| 575 | |
| 576 | /*< Z( 1, 2 ) = ZERO >*/ |
| 577 | z__[8] = 0.; |
| 578 | /*< Z( 2, 2 ) = A( IS, IS ) >*/ |
| 579 | z__[9] = a[is + is * a_dim1]; |
| 580 | /*< Z( 3, 2 ) = ZERO >*/ |
| 581 | z__[10] = 0.; |
| 582 | /*< Z( 4, 2 ) = D( IS, IS ) >*/ |
| 583 | z__[11] = d__[is + is * d_dim1]; |
| 584 | |
| 585 | /*< Z( 1, 3 ) = -B( JS, JS ) >*/ |
| 586 | z__[16] = -b[js + js * b_dim1]; |
| 587 | /*< Z( 2, 3 ) = -B( JS, JSP1 ) >*/ |
| 588 | z__[17] = -b[js + jsp1 * b_dim1]; |
| 589 | /*< Z( 3, 3 ) = -E( JS, JS ) >*/ |
| 590 | z__[18] = -e[js + js * e_dim1]; |
| 591 | /*< Z( 4, 3 ) = -E( JS, JSP1 ) >*/ |
| 592 | z__[19] = -e[js + jsp1 * e_dim1]; |
| 593 | |
| 594 | /*< Z( 1, 4 ) = -B( JSP1, JS ) >*/ |
| 595 | z__[24] = -b[jsp1 + js * b_dim1]; |
| 596 | /*< Z( 2, 4 ) = -B( JSP1, JSP1 ) >*/ |
| 597 | z__[25] = -b[jsp1 + jsp1 * b_dim1]; |
| 598 | /*< Z( 3, 4 ) = ZERO >*/ |
| 599 | z__[26] = 0.; |
| 600 | /*< Z( 4, 4 ) = -E( JSP1, JSP1 ) >*/ |
| 601 | z__[27] = -e[jsp1 + jsp1 * e_dim1]; |
| 602 | |
| 603 | /* Set up right hand side(s) */ |
| 604 | |
| 605 | /*< RHS( 1 ) = C( IS, JS ) >*/ |
| 606 | rhs[0] = c__[is + js * c_dim1]; |
| 607 | /*< RHS( 2 ) = C( IS, JSP1 ) >*/ |
| 608 | rhs[1] = c__[is + jsp1 * c_dim1]; |
| 609 | /*< RHS( 3 ) = F( IS, JS ) >*/ |
| 610 | rhs[2] = f[is + js * f_dim1]; |
| 611 | /*< RHS( 4 ) = F( IS, JSP1 ) >*/ |
| 612 | rhs[3] = f[is + jsp1 * f_dim1]; |
| 613 | |
| 614 | /* Solve Z * x = RHS */ |
| 615 | |
| 616 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 617 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 618 | /*< >*/ |
| 619 | if (ierr > 0) { |
| 620 | *info = ierr; |
| 621 | } |
| 622 | |
| 623 | /*< IF( IJOB.EQ.0 ) THEN >*/ |
| 624 | if (*ijob == 0) { |
| 625 | /*< >*/ |
| 626 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 627 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 628 | if (scaloc != 1.) { |
| 629 | /*< DO 60 K = 1, N >*/ |
| 630 | i__2 = *n; |
| 631 | for (k = 1; k <= i__2; ++k) { |
| 632 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 633 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], & |
| 634 | c__1cxx . . $ c__1.); |
| 635 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 636 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 637 | /*< 60 CONTINUE >*/ |
| 638 | /* L60: */ |
| 639 | } |
| 640 | /*< SCALE = SCALE*SCALOC >*/ |
| 641 | *scale *= scaloc; |
| 642 | /*< END IF >*/ |
| 643 | } |
| 644 | /*< ELSE >*/ |
| 645 | } else { |
| 646 | /*< >*/ |
| 647 | dlatdf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:102:9`!(ijob, &zdim, z__, &c__8cxx . . $ c__8., rhs, rdsum, rdscal, |
| 648 | ipiv, jpiv); |
| 649 | /*< END IF >*/ |
| 650 | } |
| 651 | |
| 652 | /* Unpack solution vector(s) */ |
| 653 | |
| 654 | /*< C( IS, JS ) = RHS( 1 ) >*/ |
| 655 | c__[is + js * c_dim1] = rhs[0]; |
| 656 | /*< C( IS, JSP1 ) = RHS( 2 ) >*/ |
| 657 | c__[is + jsp1 * c_dim1] = rhs[1]; |
| 658 | /*< F( IS, JS ) = RHS( 3 ) >*/ |
| 659 | f[is + js * f_dim1] = rhs[2]; |
| 660 | /*< F( IS, JSP1 ) = RHS( 4 ) >*/ |
| 661 | f[is + jsp1 * f_dim1] = rhs[3]; |
| 662 | |
| 663 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 664 | /* equation. */ |
| 665 | |
| 666 | /*< IF( I.GT.1 ) THEN >*/ |
| 667 | if (i__ > 1) { |
| 668 | /*< >*/ |
| 669 | i__2 = is - 1; |
| 670 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&i__2, &nb, &c_b27cxx . . $ c_b27., &a[is * a_dim1 + 1], &c__1cxx . . $ c__1., |
| 671 | rhs, &c__1cxx . . $ c__1., &c__[js * c_dim1 + 1], ldc); |
| 672 | /*< >*/ |
| 673 | i__2 = is - 1; |
| 674 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&i__2, &nb, &c_b27cxx . . $ c_b27., &d__[is * d_dim1 + 1], & |
| 675 | c__1cxx . . $ c__1., rhs, &c__1cxx . . $ c__1., &f[js * f_dim1 + 1], ldf); |
| 676 | /*< END IF >*/ |
| 677 | } |
| 678 | /*< IF( J.LT.Q ) THEN >*/ |
| 679 | if (j < q) { |
| 680 | /*< >*/ |
| 681 | i__2 = *n - je; |
| 682 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &rhs[2], &b[js + (je + 1) * b_dim1], |
| 683 | ldb, &c__[is + (je + 1) * c_dim1], ldc); |
| 684 | /*< >*/ |
| 685 | i__2 = *n - je; |
| 686 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &rhs[2], &e[js + (je + 1) * e_dim1], |
| 687 | lde, &f[is + (je + 1) * f_dim1], ldf); |
| 688 | /*< >*/ |
| 689 | i__2 = *n - je; |
| 690 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &rhs[3], &b[jsp1 + (je + 1) * b_dim1], |
| 691 | ldb, &c__[is + (je + 1) * c_dim1], ldc); |
| 692 | /*< >*/ |
| 693 | i__2 = *n - je; |
| 694 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__2, &rhs[3], &e[jsp1 + (je + 1) * e_dim1], |
| 695 | lde, &f[is + (je + 1) * f_dim1], ldf); |
| 696 | /*< END IF >*/ |
| 697 | } |
| 698 | |
| 699 | /*< ELSE IF( ( MB.EQ.2 ) .AND. ( NB.EQ.1 ) ) THEN >*/ |
| 700 | } else if (mb == 2 && nb == 1) { |
| 701 | |
| 702 | /* Build a 4-by-4 system Z * x = RHS */ |
| 703 | |
| 704 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 705 | z__[0] = a[is + is * a_dim1]; |
| 706 | /*< Z( 2, 1 ) = A( ISP1, IS ) >*/ |
| 707 | z__[1] = a[isp1 + is * a_dim1]; |
| 708 | /*< Z( 3, 1 ) = D( IS, IS ) >*/ |
| 709 | z__[2] = d__[is + is * d_dim1]; |
| 710 | /*< Z( 4, 1 ) = ZERO >*/ |
| 711 | z__[3] = 0.; |
| 712 | |
| 713 | /*< Z( 1, 2 ) = A( IS, ISP1 ) >*/ |
| 714 | z__[8] = a[is + isp1 * a_dim1]; |
| 715 | /*< Z( 2, 2 ) = A( ISP1, ISP1 ) >*/ |
| 716 | z__[9] = a[isp1 + isp1 * a_dim1]; |
| 717 | /*< Z( 3, 2 ) = D( IS, ISP1 ) >*/ |
| 718 | z__[10] = d__[is + isp1 * d_dim1]; |
| 719 | /*< Z( 4, 2 ) = D( ISP1, ISP1 ) >*/ |
| 720 | z__[11] = d__[isp1 + isp1 * d_dim1]; |
| 721 | |
| 722 | /*< Z( 1, 3 ) = -B( JS, JS ) >*/ |
| 723 | z__[16] = -b[js + js * b_dim1]; |
| 724 | /*< Z( 2, 3 ) = ZERO >*/ |
| 725 | z__[17] = 0.; |
| 726 | /*< Z( 3, 3 ) = -E( JS, JS ) >*/ |
| 727 | z__[18] = -e[js + js * e_dim1]; |
| 728 | /*< Z( 4, 3 ) = ZERO >*/ |
| 729 | z__[19] = 0.; |
| 730 | |
| 731 | /*< Z( 1, 4 ) = ZERO >*/ |
| 732 | z__[24] = 0.; |
| 733 | /*< Z( 2, 4 ) = -B( JS, JS ) >*/ |
| 734 | z__[25] = -b[js + js * b_dim1]; |
| 735 | /*< Z( 3, 4 ) = ZERO >*/ |
| 736 | z__[26] = 0.; |
| 737 | /*< Z( 4, 4 ) = -E( JS, JS ) >*/ |
| 738 | z__[27] = -e[js + js * e_dim1]; |
| 739 | |
| 740 | /* Set up right hand side(s) */ |
| 741 | |
| 742 | /*< RHS( 1 ) = C( IS, JS ) >*/ |
| 743 | rhs[0] = c__[is + js * c_dim1]; |
| 744 | /*< RHS( 2 ) = C( ISP1, JS ) >*/ |
| 745 | rhs[1] = c__[isp1 + js * c_dim1]; |
| 746 | /*< RHS( 3 ) = F( IS, JS ) >*/ |
| 747 | rhs[2] = f[is + js * f_dim1]; |
| 748 | /*< RHS( 4 ) = F( ISP1, JS ) >*/ |
| 749 | rhs[3] = f[isp1 + js * f_dim1]; |
| 750 | |
| 751 | /* Solve Z * x = RHS */ |
| 752 | |
| 753 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 754 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 755 | /*< >*/ |
| 756 | if (ierr > 0) { |
| 757 | *info = ierr; |
| 758 | } |
| 759 | /*< IF( IJOB.EQ.0 ) THEN >*/ |
| 760 | if (*ijob == 0) { |
| 761 | /*< >*/ |
| 762 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 763 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 764 | if (scaloc != 1.) { |
| 765 | /*< DO 70 K = 1, N >*/ |
| 766 | i__2 = *n; |
| 767 | for (k = 1; k <= i__2; ++k) { |
| 768 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 769 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], & |
| 770 | c__1cxx . . $ c__1.); |
| 771 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 772 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 773 | /*< 70 CONTINUE >*/ |
| 774 | /* L70: */ |
| 775 | } |
| 776 | /*< SCALE = SCALE*SCALOC >*/ |
| 777 | *scale *= scaloc; |
| 778 | /*< END IF >*/ |
| 779 | } |
| 780 | /*< ELSE >*/ |
| 781 | } else { |
| 782 | /*< >*/ |
| 783 | dlatdf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:102:9`!(ijob, &zdim, z__, &c__8cxx . . $ c__8., rhs, rdsum, rdscal, |
| 784 | ipiv, jpiv); |
| 785 | /*< END IF >*/ |
| 786 | } |
| 787 | |
| 788 | /* Unpack solution vector(s) */ |
| 789 | |
| 790 | /*< C( IS, JS ) = RHS( 1 ) >*/ |
| 791 | c__[is + js * c_dim1] = rhs[0]; |
| 792 | /*< C( ISP1, JS ) = RHS( 2 ) >*/ |
| 793 | c__[isp1 + js * c_dim1] = rhs[1]; |
| 794 | /*< F( IS, JS ) = RHS( 3 ) >*/ |
| 795 | f[is + js * f_dim1] = rhs[2]; |
| 796 | /*< F( ISP1, JS ) = RHS( 4 ) >*/ |
| 797 | f[isp1 + js * f_dim1] = rhs[3]; |
| 798 | |
| 799 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 800 | /* equation. */ |
| 801 | |
| 802 | /*< IF( I.GT.1 ) THEN >*/ |
| 803 | if (i__ > 1) { |
| 804 | /*< >*/ |
| 805 | i__2 = is - 1; |
| 806 | dgemv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:46:9`!("N", &i__2, &mb, &c_b27cxx . . $ c_b27., &a[is * a_dim1 + 1], |
| 807 | lda, rhs, &c__1cxx . . $ c__1., &c_b42cxx . . $ c_b42., &c__[js * c_dim1 + 1] |
| 808 | , &c__1cxx . . $ c__1., (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 809 | /*< >*/ |
| 810 | i__2 = is - 1; |
| 811 | dgemv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:46:9`!("N", &i__2, &mb, &c_b27cxx . . $ c_b27., &d__[is * d_dim1 + 1], |
| 812 | ldd, rhs, &c__1cxx . . $ c__1., &c_b42cxx . . $ c_b42., &f[js * f_dim1 + 1], |
| 813 | &c__1cxx . . $ c__1., (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 814 | /*< END IF >*/ |
| 815 | } |
| 816 | /*< IF( J.LT.Q ) THEN >*/ |
| 817 | if (j < q) { |
| 818 | /*< >*/ |
| 819 | i__2 = *n - je; |
| 820 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&mb, &i__2, &c_b42cxx . . $ c_b42., &rhs[2], &c__1cxx . . $ c__1., &b[js + (je |
| 821 | + 1) * b_dim1], ldb, &c__[is + (je + 1) * |
| 822 | c_dim1], ldc); |
| 823 | /*< >*/ |
| 824 | i__2 = *n - je; |
| 825 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&mb, &i__2, &c_b42cxx . . $ c_b42., &rhs[2], &c__1cxx . . $ c__1., &e[js + (je |
| 826 | + 1) * e_dim1], ldb, &f[is + (je + 1) * |
| 827 | f_dim1], ldc); |
| 828 | /*< END IF >*/ |
| 829 | } |
| 830 | |
| 831 | /*< ELSE IF( ( MB.EQ.2 ) .AND. ( NB.EQ.2 ) ) THEN >*/ |
| 832 | } else if (mb == 2 && nb == 2) { |
| 833 | |
| 834 | /* Build an 8-by-8 system Z * x = RHS */ |
| 835 | |
| 836 | /*< CALL DCOPY( LDZ*LDZ, ZERO, 0, Z, 1 ) >*/ |
| 837 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&c__64cxx . . $ c__64., &c_b54cxx . . $ c_b54., &c__0cxx . . $ c__0., z__, &c__1cxx . . $ c__1.); |
| 838 | |
| 839 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 840 | z__[0] = a[is + is * a_dim1]; |
| 841 | /*< Z( 2, 1 ) = A( ISP1, IS ) >*/ |
| 842 | z__[1] = a[isp1 + is * a_dim1]; |
| 843 | /*< Z( 5, 1 ) = D( IS, IS ) >*/ |
| 844 | z__[4] = d__[is + is * d_dim1]; |
| 845 | |
| 846 | /*< Z( 1, 2 ) = A( IS, ISP1 ) >*/ |
| 847 | z__[8] = a[is + isp1 * a_dim1]; |
| 848 | /*< Z( 2, 2 ) = A( ISP1, ISP1 ) >*/ |
| 849 | z__[9] = a[isp1 + isp1 * a_dim1]; |
| 850 | /*< Z( 5, 2 ) = D( IS, ISP1 ) >*/ |
| 851 | z__[12] = d__[is + isp1 * d_dim1]; |
| 852 | /*< Z( 6, 2 ) = D( ISP1, ISP1 ) >*/ |
| 853 | z__[13] = d__[isp1 + isp1 * d_dim1]; |
| 854 | |
| 855 | /*< Z( 3, 3 ) = A( IS, IS ) >*/ |
| 856 | z__[18] = a[is + is * a_dim1]; |
| 857 | /*< Z( 4, 3 ) = A( ISP1, IS ) >*/ |
| 858 | z__[19] = a[isp1 + is * a_dim1]; |
| 859 | /*< Z( 7, 3 ) = D( IS, IS ) >*/ |
| 860 | z__[22] = d__[is + is * d_dim1]; |
| 861 | |
| 862 | /*< Z( 3, 4 ) = A( IS, ISP1 ) >*/ |
| 863 | z__[26] = a[is + isp1 * a_dim1]; |
| 864 | /*< Z( 4, 4 ) = A( ISP1, ISP1 ) >*/ |
| 865 | z__[27] = a[isp1 + isp1 * a_dim1]; |
| 866 | /*< Z( 7, 4 ) = D( IS, ISP1 ) >*/ |
| 867 | z__[30] = d__[is + isp1 * d_dim1]; |
| 868 | /*< Z( 8, 4 ) = D( ISP1, ISP1 ) >*/ |
| 869 | z__[31] = d__[isp1 + isp1 * d_dim1]; |
| 870 | |
| 871 | /*< Z( 1, 5 ) = -B( JS, JS ) >*/ |
| 872 | z__[32] = -b[js + js * b_dim1]; |
| 873 | /*< Z( 3, 5 ) = -B( JS, JSP1 ) >*/ |
| 874 | z__[34] = -b[js + jsp1 * b_dim1]; |
| 875 | /*< Z( 5, 5 ) = -E( JS, JS ) >*/ |
| 876 | z__[36] = -e[js + js * e_dim1]; |
| 877 | /*< Z( 7, 5 ) = -E( JS, JSP1 ) >*/ |
| 878 | z__[38] = -e[js + jsp1 * e_dim1]; |
| 879 | |
| 880 | /*< Z( 2, 6 ) = -B( JS, JS ) >*/ |
| 881 | z__[41] = -b[js + js * b_dim1]; |
| 882 | /*< Z( 4, 6 ) = -B( JS, JSP1 ) >*/ |
| 883 | z__[43] = -b[js + jsp1 * b_dim1]; |
| 884 | /*< Z( 6, 6 ) = -E( JS, JS ) >*/ |
| 885 | z__[45] = -e[js + js * e_dim1]; |
| 886 | /*< Z( 8, 6 ) = -E( JS, JSP1 ) >*/ |
| 887 | z__[47] = -e[js + jsp1 * e_dim1]; |
| 888 | |
| 889 | /*< Z( 1, 7 ) = -B( JSP1, JS ) >*/ |
| 890 | z__[48] = -b[jsp1 + js * b_dim1]; |
| 891 | /*< Z( 3, 7 ) = -B( JSP1, JSP1 ) >*/ |
| 892 | z__[50] = -b[jsp1 + jsp1 * b_dim1]; |
| 893 | /*< Z( 7, 7 ) = -E( JSP1, JSP1 ) >*/ |
| 894 | z__[54] = -e[jsp1 + jsp1 * e_dim1]; |
| 895 | |
| 896 | /*< Z( 2, 8 ) = -B( JSP1, JS ) >*/ |
| 897 | z__[57] = -b[jsp1 + js * b_dim1]; |
| 898 | /*< Z( 4, 8 ) = -B( JSP1, JSP1 ) >*/ |
| 899 | z__[59] = -b[jsp1 + jsp1 * b_dim1]; |
| 900 | /*< Z( 8, 8 ) = -E( JSP1, JSP1 ) >*/ |
| 901 | z__[63] = -e[jsp1 + jsp1 * e_dim1]; |
| 902 | |
| 903 | /* Set up right hand side(s) */ |
| 904 | |
| 905 | /*< K = 1 >*/ |
| 906 | k = 1; |
| 907 | /*< II = MB*NB + 1 >*/ |
| 908 | ii = mb * nb + 1; |
| 909 | /*< DO 80 JJ = 0, NB - 1 >*/ |
| 910 | i__2 = nb - 1; |
| 911 | for (jj = 0; jj <= i__2; ++jj) { |
| 912 | /*< CALL DCOPY( MB, C( IS, JS+JJ ), 1, RHS( K ), 1 ) >*/ |
| 913 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &c__[is + (js + jj) * c_dim1], &c__1cxx . . $ c__1., & |
| 914 | rhs[k - 1], &c__1cxx . . $ c__1.); |
| 915 | /*< CALL DCOPY( MB, F( IS, JS+JJ ), 1, RHS( II ), 1 ) >*/ |
| 916 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &f[is + (js + jj) * f_dim1], &c__1cxx . . $ c__1., &rhs[ |
| 917 | ii - 1], &c__1cxx . . $ c__1.); |
| 918 | /*< K = K + MB >*/ |
| 919 | k += mb; |
| 920 | /*< II = II + MB >*/ |
| 921 | ii += mb; |
| 922 | /*< 80 CONTINUE >*/ |
| 923 | /* L80: */ |
| 924 | } |
| 925 | |
| 926 | /* Solve Z * x = RHS */ |
| 927 | |
| 928 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 929 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 930 | /*< >*/ |
| 931 | if (ierr > 0) { |
| 932 | *info = ierr; |
| 933 | } |
| 934 | /*< IF( IJOB.EQ.0 ) THEN >*/ |
| 935 | if (*ijob == 0) { |
| 936 | /*< >*/ |
| 937 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 938 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 939 | if (scaloc != 1.) { |
| 940 | /*< DO 90 K = 1, N >*/ |
| 941 | i__2 = *n; |
| 942 | for (k = 1; k <= i__2; ++k) { |
| 943 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 944 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], & |
| 945 | c__1cxx . . $ c__1.); |
| 946 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 947 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 948 | /*< 90 CONTINUE >*/ |
| 949 | /* L90: */ |
| 950 | } |
| 951 | /*< SCALE = SCALE*SCALOC >*/ |
| 952 | *scale *= scaloc; |
| 953 | /*< END IF >*/ |
| 954 | } |
| 955 | /*< ELSE >*/ |
| 956 | } else { |
| 957 | /*< >*/ |
| 958 | dlatdf_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:102:9`!(ijob, &zdim, z__, &c__8cxx . . $ c__8., rhs, rdsum, rdscal, |
| 959 | ipiv, jpiv); |
| 960 | /*< END IF >*/ |
| 961 | } |
| 962 | |
| 963 | /* Unpack solution vector(s) */ |
| 964 | |
| 965 | /*< K = 1 >*/ |
| 966 | k = 1; |
| 967 | /*< II = MB*NB + 1 >*/ |
| 968 | ii = mb * nb + 1; |
| 969 | /*< DO 100 JJ = 0, NB - 1 >*/ |
| 970 | i__2 = nb - 1; |
| 971 | for (jj = 0; jj <= i__2; ++jj) { |
| 972 | /*< CALL DCOPY( MB, RHS( K ), 1, C( IS, JS+JJ ), 1 ) >*/ |
| 973 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &rhs[k - 1], &c__1cxx . . $ c__1., &c__[is + (js + jj) * |
| 974 | c_dim1], &c__1cxx . . $ c__1.); |
| 975 | /*< CALL DCOPY( MB, RHS( II ), 1, F( IS, JS+JJ ), 1 ) >*/ |
| 976 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &rhs[ii - 1], &c__1cxx . . $ c__1., &f[is + (js + jj) * |
| 977 | f_dim1], &c__1cxx . . $ c__1.); |
| 978 | /*< K = K + MB >*/ |
| 979 | k += mb; |
| 980 | /*< II = II + MB >*/ |
| 981 | ii += mb; |
| 982 | /*< 100 CONTINUE >*/ |
| 983 | /* L100: */ |
| 984 | } |
| 985 | |
| 986 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 987 | /* equation. */ |
| 988 | |
| 989 | /*< IF( I.GT.1 ) THEN >*/ |
| 990 | if (i__ > 1) { |
| 991 | /*< >*/ |
| 992 | i__2 = is - 1; |
| 993 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("N", "N", &i__2, &nb, &mb, &c_b27cxx . . $ c_b27., &a[is * |
| 994 | a_dim1 + 1], lda, rhs, &mb, &c_b42cxx . . $ c_b42., &c__[js * |
| 995 | c_dim1 + 1], ldc, (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); |
| 996 | /*< >*/ |
| 997 | i__2 = is - 1; |
| 998 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("N", "N", &i__2, &nb, &mb, &c_b27cxx . . $ c_b27., &d__[is * |
| 999 | d_dim1 + 1], ldd, rhs, &mb, &c_b42cxx . . $ c_b42., &f[js * |
| 1000 | f_dim1 + 1], ldf, (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); |
| 1001 | /*< END IF >*/ |
| 1002 | } |
| 1003 | /*< IF( J.LT.Q ) THEN >*/ |
| 1004 | if (j < q) { |
| 1005 | /*< K = MB*NB + 1 >*/ |
| 1006 | k = mb * nb + 1; |
| 1007 | /*< >*/ |
| 1008 | i__2 = *n - je; |
| 1009 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("N", "N", &mb, &i__2, &nb, &c_b42cxx . . $ c_b42., &rhs[k - 1], |
| 1010 | &mb, &b[js + (je + 1) * b_dim1], ldb, &c_b42cxx . . $ c_b42., |
| 1011 | &c__[is + (je + 1) * c_dim1], ldc, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, |
| 1012 | (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 1013 | /*< >*/ |
| 1014 | i__2 = *n - je; |
| 1015 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("N", "N", &mb, &i__2, &nb, &c_b42cxx . . $ c_b42., &rhs[k - 1], |
| 1016 | &mb, &e[js + (je + 1) * e_dim1], lde, &c_b42cxx . . $ c_b42., |
| 1017 | &f[is + (je + 1) * f_dim1], ldf, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, ( |
| 1018 | ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 1019 | /*< END IF >*/ |
| 1020 | } |
| 1021 | |
| 1022 | /*< END IF >*/ |
| 1023 | } |
| 1024 | |
| 1025 | /*< 110 CONTINUE >*/ |
| 1026 | /* L110: */ |
| 1027 | } |
| 1028 | /*< 120 CONTINUE >*/ |
| 1029 | /* L120: */ |
| 1030 | } |
| 1031 | /*< ELSE >*/ |
| 1032 | } else { |
| 1033 | |
| 1034 | /* Solve (I, J) - subsystem */ |
| 1035 | /* A(I, I)' * R(I, J) + D(I, I)' * L(J, J) = C(I, J) */ |
| 1036 | /* R(I, I) * B(J, J) + L(I, J) * E(J, J) = -F(I, J) */ |
| 1037 | /* for I = 1, 2, ..., P, J = Q, Q - 1, ..., 1 */ |
| 1038 | |
| 1039 | /*< SCALE = ONE >*/ |
| 1040 | *scale = 1.; |
| 1041 | /*< SCALOC = ONE >*/ |
| 1042 | scaloc = 1.; |
| 1043 | /*< DO 200 I = 1, P >*/ |
| 1044 | i__1 = p; |
| 1045 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 1046 | |
| 1047 | /*< IS = IWORK( I ) >*/ |
| 1048 | is = iwork[i__]; |
| 1049 | /*< ISP1 = IS + 1 >*/ |
| 1050 | isp1 = is + 1; |
| 1051 | /*< IE = IWORK( I+1 ) - 1 >*/ |
| 1052 | ie = iwork[i__ + 1] - 1; |
| 1053 | /*< MB = IE - IS + 1 >*/ |
| 1054 | mb = ie - is + 1; |
| 1055 | /*< DO 190 J = Q, P + 2, -1 >*/ |
| 1056 | i__2 = p + 2; |
| 1057 | for (j = q; j >= i__2; --j) { |
| 1058 | |
| 1059 | /*< JS = IWORK( J ) >*/ |
| 1060 | js = iwork[j]; |
| 1061 | /*< JSP1 = JS + 1 >*/ |
| 1062 | jsp1 = js + 1; |
| 1063 | /*< JE = IWORK( J+1 ) - 1 >*/ |
| 1064 | je = iwork[j + 1] - 1; |
| 1065 | /*< NB = JE - JS + 1 >*/ |
| 1066 | nb = je - js + 1; |
| 1067 | /*< ZDIM = MB*NB*2 >*/ |
| 1068 | zdim = mb * nb << 1; |
| 1069 | /*< IF( ( MB.EQ.1 ) .AND. ( NB.EQ.1 ) ) THEN >*/ |
| 1070 | if (mb == 1 && nb == 1) { |
| 1071 | |
| 1072 | /* Build a 2-by-2 system Z' * x = RHS */ |
| 1073 | |
| 1074 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 1075 | z__[0] = a[is + is * a_dim1]; |
| 1076 | /*< Z( 2, 1 ) = -B( JS, JS ) >*/ |
| 1077 | z__[1] = -b[js + js * b_dim1]; |
| 1078 | /*< Z( 1, 2 ) = D( IS, IS ) >*/ |
| 1079 | z__[8] = d__[is + is * d_dim1]; |
| 1080 | /*< Z( 2, 2 ) = -E( JS, JS ) >*/ |
| 1081 | z__[9] = -e[js + js * e_dim1]; |
| 1082 | |
| 1083 | /* Set up right hand side(s) */ |
| 1084 | |
| 1085 | /*< RHS( 1 ) = C( IS, JS ) >*/ |
| 1086 | rhs[0] = c__[is + js * c_dim1]; |
| 1087 | /*< RHS( 2 ) = F( IS, JS ) >*/ |
| 1088 | rhs[1] = f[is + js * f_dim1]; |
| 1089 | |
| 1090 | /* Solve Z' * x = RHS */ |
| 1091 | |
| 1092 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 1093 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 1094 | /*< >*/ |
| 1095 | if (ierr > 0) { |
| 1096 | *info = ierr; |
| 1097 | } |
| 1098 | |
| 1099 | /*< CALL DGESC2( ZDIM, Z, LDZ, RHS, IPIV, JPIV, SCALOC ) >*/ |
| 1100 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 1101 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 1102 | if (scaloc != 1.) { |
| 1103 | /*< DO 130 K = 1, N >*/ |
| 1104 | i__3 = *n; |
| 1105 | for (k = 1; k <= i__3; ++k) { |
| 1106 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 1107 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1108 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 1109 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1110 | /*< 130 CONTINUE >*/ |
| 1111 | /* L130: */ |
| 1112 | } |
| 1113 | /*< SCALE = SCALE*SCALOC >*/ |
| 1114 | *scale *= scaloc; |
| 1115 | /*< END IF >*/ |
| 1116 | } |
| 1117 | |
| 1118 | /* Unpack solution vector(s) */ |
| 1119 | |
| 1120 | /*< C( IS, JS ) = RHS( 1 ) >*/ |
| 1121 | c__[is + js * c_dim1] = rhs[0]; |
| 1122 | /*< F( IS, JS ) = RHS( 2 ) >*/ |
| 1123 | f[is + js * f_dim1] = rhs[1]; |
| 1124 | |
| 1125 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 1126 | /* equation. */ |
| 1127 | |
| 1128 | /*< IF( J.GT.P+2 ) THEN >*/ |
| 1129 | if (j > p + 2) { |
| 1130 | /*< ALPHA = RHS( 1 ) >*/ |
| 1131 | alpha = rhs[0]; |
| 1132 | /*< >*/ |
| 1133 | i__3 = js - 1; |
| 1134 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, &alpha, &b[js * b_dim1 + 1], &c__1cxx . . $ c__1., &f[ |
| 1135 | is + f_dim1], ldf); |
| 1136 | /*< ALPHA = RHS( 2 ) >*/ |
| 1137 | alpha = rhs[1]; |
| 1138 | /*< >*/ |
| 1139 | i__3 = js - 1; |
| 1140 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, &alpha, &e[js * e_dim1 + 1], &c__1cxx . . $ c__1., &f[ |
| 1141 | is + f_dim1], ldf); |
| 1142 | /*< END IF >*/ |
| 1143 | } |
| 1144 | /*< IF( I.LT.P ) THEN >*/ |
| 1145 | if (i__ < p) { |
| 1146 | /*< ALPHA = -RHS( 1 ) >*/ |
| 1147 | alpha = -rhs[0]; |
| 1148 | /*< >*/ |
| 1149 | i__3 = *m - ie; |
| 1150 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, &alpha, &a[is + (ie + 1) * a_dim1], lda, |
| 1151 | &c__[ie + 1 + js * c_dim1], &c__1cxx . . $ c__1.); |
| 1152 | /*< ALPHA = -RHS( 2 ) >*/ |
| 1153 | alpha = -rhs[1]; |
| 1154 | /*< >*/ |
| 1155 | i__3 = *m - ie; |
| 1156 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, &alpha, &d__[is + (ie + 1) * d_dim1], |
| 1157 | ldd, &c__[ie + 1 + js * c_dim1], &c__1cxx . . $ c__1.); |
| 1158 | /*< END IF >*/ |
| 1159 | } |
| 1160 | |
| 1161 | /*< ELSE IF( ( MB.EQ.1 ) .AND. ( NB.EQ.2 ) ) THEN >*/ |
| 1162 | } else if (mb == 1 && nb == 2) { |
| 1163 | |
| 1164 | /* Build a 4-by-4 system Z' * x = RHS */ |
| 1165 | |
| 1166 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 1167 | z__[0] = a[is + is * a_dim1]; |
| 1168 | /*< Z( 2, 1 ) = ZERO >*/ |
| 1169 | z__[1] = 0.; |
| 1170 | /*< Z( 3, 1 ) = -B( JS, JS ) >*/ |
| 1171 | z__[2] = -b[js + js * b_dim1]; |
| 1172 | /*< Z( 4, 1 ) = -B( JSP1, JS ) >*/ |
| 1173 | z__[3] = -b[jsp1 + js * b_dim1]; |
| 1174 | |
| 1175 | /*< Z( 1, 2 ) = ZERO >*/ |
| 1176 | z__[8] = 0.; |
| 1177 | /*< Z( 2, 2 ) = A( IS, IS ) >*/ |
| 1178 | z__[9] = a[is + is * a_dim1]; |
| 1179 | /*< Z( 3, 2 ) = -B( JS, JSP1 ) >*/ |
| 1180 | z__[10] = -b[js + jsp1 * b_dim1]; |
| 1181 | /*< Z( 4, 2 ) = -B( JSP1, JSP1 ) >*/ |
| 1182 | z__[11] = -b[jsp1 + jsp1 * b_dim1]; |
| 1183 | |
| 1184 | /*< Z( 1, 3 ) = D( IS, IS ) >*/ |
| 1185 | z__[16] = d__[is + is * d_dim1]; |
| 1186 | /*< Z( 2, 3 ) = ZERO >*/ |
| 1187 | z__[17] = 0.; |
| 1188 | /*< Z( 3, 3 ) = -E( JS, JS ) >*/ |
| 1189 | z__[18] = -e[js + js * e_dim1]; |
| 1190 | /*< Z( 4, 3 ) = ZERO >*/ |
| 1191 | z__[19] = 0.; |
| 1192 | |
| 1193 | /*< Z( 1, 4 ) = ZERO >*/ |
| 1194 | z__[24] = 0.; |
| 1195 | /*< Z( 2, 4 ) = D( IS, IS ) >*/ |
| 1196 | z__[25] = d__[is + is * d_dim1]; |
| 1197 | /*< Z( 3, 4 ) = -E( JS, JSP1 ) >*/ |
| 1198 | z__[26] = -e[js + jsp1 * e_dim1]; |
| 1199 | /*< Z( 4, 4 ) = -E( JSP1, JSP1 ) >*/ |
| 1200 | z__[27] = -e[jsp1 + jsp1 * e_dim1]; |
| 1201 | |
| 1202 | /* Set up right hand side(s) */ |
| 1203 | |
| 1204 | /*< RHS( 1 ) = C( IS, JS ) >*/ |
| 1205 | rhs[0] = c__[is + js * c_dim1]; |
| 1206 | /*< RHS( 2 ) = C( IS, JSP1 ) >*/ |
| 1207 | rhs[1] = c__[is + jsp1 * c_dim1]; |
| 1208 | /*< RHS( 3 ) = F( IS, JS ) >*/ |
| 1209 | rhs[2] = f[is + js * f_dim1]; |
| 1210 | /*< RHS( 4 ) = F( IS, JSP1 ) >*/ |
| 1211 | rhs[3] = f[is + jsp1 * f_dim1]; |
| 1212 | |
| 1213 | /* Solve Z' * x = RHS */ |
| 1214 | |
| 1215 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 1216 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 1217 | /*< >*/ |
| 1218 | if (ierr > 0) { |
| 1219 | *info = ierr; |
| 1220 | } |
| 1221 | /*< CALL DGESC2( ZDIM, Z, LDZ, RHS, IPIV, JPIV, SCALOC ) >*/ |
| 1222 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 1223 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 1224 | if (scaloc != 1.) { |
| 1225 | /*< DO 140 K = 1, N >*/ |
| 1226 | i__3 = *n; |
| 1227 | for (k = 1; k <= i__3; ++k) { |
| 1228 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 1229 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1230 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 1231 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1232 | /*< 140 CONTINUE >*/ |
| 1233 | /* L140: */ |
| 1234 | } |
| 1235 | /*< SCALE = SCALE*SCALOC >*/ |
| 1236 | *scale *= scaloc; |
| 1237 | /*< END IF >*/ |
| 1238 | } |
| 1239 | |
| 1240 | /* Unpack solution vector(s) */ |
| 1241 | |
| 1242 | /*< C( IS, JS ) = RHS( 1 ) >*/ |
| 1243 | c__[is + js * c_dim1] = rhs[0]; |
| 1244 | /*< C( IS, JSP1 ) = RHS( 2 ) >*/ |
| 1245 | c__[is + jsp1 * c_dim1] = rhs[1]; |
| 1246 | /*< F( IS, JS ) = RHS( 3 ) >*/ |
| 1247 | f[is + js * f_dim1] = rhs[2]; |
| 1248 | /*< F( IS, JSP1 ) = RHS( 4 ) >*/ |
| 1249 | f[is + jsp1 * f_dim1] = rhs[3]; |
| 1250 | |
| 1251 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 1252 | /* equation. */ |
| 1253 | |
| 1254 | /*< IF( J.GT.P+2 ) THEN >*/ |
| 1255 | if (j > p + 2) { |
| 1256 | /*< >*/ |
| 1257 | i__3 = js - 1; |
| 1258 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, rhs, &b[js * b_dim1 + 1], &c__1cxx . . $ c__1., &f[is |
| 1259 | + f_dim1], ldf); |
| 1260 | /*< >*/ |
| 1261 | i__3 = js - 1; |
| 1262 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, &rhs[1], &b[jsp1 * b_dim1 + 1], &c__1cxx . . $ c__1., & |
| 1263 | f[is + f_dim1], ldf); |
| 1264 | /*< >*/ |
| 1265 | i__3 = js - 1; |
| 1266 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, &rhs[2], &e[js * e_dim1 + 1], &c__1cxx . . $ c__1., &f[ |
| 1267 | is + f_dim1], ldf); |
| 1268 | /*< >*/ |
| 1269 | i__3 = js - 1; |
| 1270 | daxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:37:9`!(&i__3, &rhs[3], &e[jsp1 * e_dim1 + 1], &c__1cxx . . $ c__1., & |
| 1271 | f[is + f_dim1], ldf); |
| 1272 | /*< END IF >*/ |
| 1273 | } |
| 1274 | /*< IF( I.LT.P ) THEN >*/ |
| 1275 | if (i__ < p) { |
| 1276 | /*< >*/ |
| 1277 | i__3 = *m - ie; |
| 1278 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&i__3, &nb, &c_b27cxx . . $ c_b27., &a[is + (ie + 1) * a_dim1], |
| 1279 | lda, rhs, &c__1cxx . . $ c__1., &c__[ie + 1 + js * c_dim1], |
| 1280 | ldc); |
| 1281 | /*< >*/ |
| 1282 | i__3 = *m - ie; |
| 1283 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&i__3, &nb, &c_b27cxx . . $ c_b27., &d__[is + (ie + 1) * d_dim1] |
| 1284 | , ldd, &rhs[2], &c__1cxx . . $ c__1., &c__[ie + 1 + js * |
| 1285 | c_dim1], ldc); |
| 1286 | /*< END IF >*/ |
| 1287 | } |
| 1288 | |
| 1289 | /*< ELSE IF( ( MB.EQ.2 ) .AND. ( NB.EQ.1 ) ) THEN >*/ |
| 1290 | } else if (mb == 2 && nb == 1) { |
| 1291 | |
| 1292 | /* Build a 4-by-4 system Z' * x = RHS */ |
| 1293 | |
| 1294 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 1295 | z__[0] = a[is + is * a_dim1]; |
| 1296 | /*< Z( 2, 1 ) = A( IS, ISP1 ) >*/ |
| 1297 | z__[1] = a[is + isp1 * a_dim1]; |
| 1298 | /*< Z( 3, 1 ) = -B( JS, JS ) >*/ |
| 1299 | z__[2] = -b[js + js * b_dim1]; |
| 1300 | /*< Z( 4, 1 ) = ZERO >*/ |
| 1301 | z__[3] = 0.; |
| 1302 | |
| 1303 | /*< Z( 1, 2 ) = A( ISP1, IS ) >*/ |
| 1304 | z__[8] = a[isp1 + is * a_dim1]; |
| 1305 | /*< Z( 2, 2 ) = A( ISP1, ISP1 ) >*/ |
| 1306 | z__[9] = a[isp1 + isp1 * a_dim1]; |
| 1307 | /*< Z( 3, 2 ) = ZERO >*/ |
| 1308 | z__[10] = 0.; |
| 1309 | /*< Z( 4, 2 ) = -B( JS, JS ) >*/ |
| 1310 | z__[11] = -b[js + js * b_dim1]; |
| 1311 | |
| 1312 | /*< Z( 1, 3 ) = D( IS, IS ) >*/ |
| 1313 | z__[16] = d__[is + is * d_dim1]; |
| 1314 | /*< Z( 2, 3 ) = D( IS, ISP1 ) >*/ |
| 1315 | z__[17] = d__[is + isp1 * d_dim1]; |
| 1316 | /*< Z( 3, 3 ) = -E( JS, JS ) >*/ |
| 1317 | z__[18] = -e[js + js * e_dim1]; |
| 1318 | /*< Z( 4, 3 ) = ZERO >*/ |
| 1319 | z__[19] = 0.; |
| 1320 | |
| 1321 | /*< Z( 1, 4 ) = ZERO >*/ |
| 1322 | z__[24] = 0.; |
| 1323 | /*< Z( 2, 4 ) = D( ISP1, ISP1 ) >*/ |
| 1324 | z__[25] = d__[isp1 + isp1 * d_dim1]; |
| 1325 | /*< Z( 3, 4 ) = ZERO >*/ |
| 1326 | z__[26] = 0.; |
| 1327 | /*< Z( 4, 4 ) = -E( JS, JS ) >*/ |
| 1328 | z__[27] = -e[js + js * e_dim1]; |
| 1329 | |
| 1330 | /* Set up right hand side(s) */ |
| 1331 | |
| 1332 | /*< RHS( 1 ) = C( IS, JS ) >*/ |
| 1333 | rhs[0] = c__[is + js * c_dim1]; |
| 1334 | /*< RHS( 2 ) = C( ISP1, JS ) >*/ |
| 1335 | rhs[1] = c__[isp1 + js * c_dim1]; |
| 1336 | /*< RHS( 3 ) = F( IS, JS ) >*/ |
| 1337 | rhs[2] = f[is + js * f_dim1]; |
| 1338 | /*< RHS( 4 ) = F( ISP1, JS ) >*/ |
| 1339 | rhs[3] = f[isp1 + js * f_dim1]; |
| 1340 | |
| 1341 | /* Solve Z' * x = RHS */ |
| 1342 | |
| 1343 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 1344 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 1345 | /*< >*/ |
| 1346 | if (ierr > 0) { |
| 1347 | *info = ierr; |
| 1348 | } |
| 1349 | |
| 1350 | /*< CALL DGESC2( ZDIM, Z, LDZ, RHS, IPIV, JPIV, SCALOC ) >*/ |
| 1351 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 1352 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 1353 | if (scaloc != 1.) { |
| 1354 | /*< DO 150 K = 1, N >*/ |
| 1355 | i__3 = *n; |
| 1356 | for (k = 1; k <= i__3; ++k) { |
| 1357 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 1358 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1359 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 1360 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1361 | /*< 150 CONTINUE >*/ |
| 1362 | /* L150: */ |
| 1363 | } |
| 1364 | /*< SCALE = SCALE*SCALOC >*/ |
| 1365 | *scale *= scaloc; |
| 1366 | /*< END IF >*/ |
| 1367 | } |
| 1368 | |
| 1369 | /* Unpack solution vector(s) */ |
| 1370 | |
| 1371 | /*< C( IS, JS ) = RHS( 1 ) >*/ |
| 1372 | c__[is + js * c_dim1] = rhs[0]; |
| 1373 | /*< C( ISP1, JS ) = RHS( 2 ) >*/ |
| 1374 | c__[isp1 + js * c_dim1] = rhs[1]; |
| 1375 | /*< F( IS, JS ) = RHS( 3 ) >*/ |
| 1376 | f[is + js * f_dim1] = rhs[2]; |
| 1377 | /*< F( ISP1, JS ) = RHS( 4 ) >*/ |
| 1378 | f[isp1 + js * f_dim1] = rhs[3]; |
| 1379 | |
| 1380 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 1381 | /* equation. */ |
| 1382 | |
| 1383 | /*< IF( J.GT.P+2 ) THEN >*/ |
| 1384 | if (j > p + 2) { |
| 1385 | /*< >*/ |
| 1386 | i__3 = js - 1; |
| 1387 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&mb, &i__3, &c_b42cxx . . $ c_b42., rhs, &c__1cxx . . $ c__1., &b[js * b_dim1 |
| 1388 | + 1], &c__1cxx . . $ c__1., &f[is + f_dim1], ldf); |
| 1389 | /*< >*/ |
| 1390 | i__3 = js - 1; |
| 1391 | dger_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:49:9`!(&mb, &i__3, &c_b42cxx . . $ c_b42., &rhs[2], &c__1cxx . . $ c__1., &e[js * |
| 1392 | e_dim1 + 1], &c__1cxx . . $ c__1., &f[is + f_dim1], ldf); |
| 1393 | /*< END IF >*/ |
| 1394 | } |
| 1395 | /*< IF( I.LT.P ) THEN >*/ |
| 1396 | if (i__ < p) { |
| 1397 | /*< >*/ |
| 1398 | i__3 = *m - ie; |
| 1399 | dgemv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:46:9`!("T", &mb, &i__3, &c_b27cxx . . $ c_b27., &a[is + (ie + 1) * |
| 1400 | a_dim1], lda, rhs, &c__1cxx . . $ c__1., &c_b42cxx . . $ c_b42., &c__[ie + 1 |
| 1401 | + js * c_dim1], &c__1cxx . . $ c__1., (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 1402 | /*< >*/ |
| 1403 | i__3 = *m - ie; |
| 1404 | dgemv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:46:9`!("T", &mb, &i__3, &c_b27cxx . . $ c_b27., &d__[is + (ie + 1) * |
| 1405 | d_dim1], ldd, &rhs[2], &c__1cxx . . $ c__1., &c_b42cxx . . $ c_b42., &c__[ie |
| 1406 | + 1 + js * c_dim1], &c__1cxx . . $ c__1., (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 1407 | /*< END IF >*/ |
| 1408 | } |
| 1409 | |
| 1410 | /*< ELSE IF( ( MB.EQ.2 ) .AND. ( NB.EQ.2 ) ) THEN >*/ |
| 1411 | } else if (mb == 2 && nb == 2) { |
| 1412 | |
| 1413 | /* Build an 8-by-8 system Z' * x = RHS */ |
| 1414 | |
| 1415 | /*< CALL DCOPY( LDZ*LDZ, ZERO, 0, Z, 1 ) >*/ |
| 1416 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&c__64cxx . . $ c__64., &c_b54cxx . . $ c_b54., &c__0cxx . . $ c__0., z__, &c__1cxx . . $ c__1.); |
| 1417 | |
| 1418 | /*< Z( 1, 1 ) = A( IS, IS ) >*/ |
| 1419 | z__[0] = a[is + is * a_dim1]; |
| 1420 | /*< Z( 2, 1 ) = A( IS, ISP1 ) >*/ |
| 1421 | z__[1] = a[is + isp1 * a_dim1]; |
| 1422 | /*< Z( 5, 1 ) = -B( JS, JS ) >*/ |
| 1423 | z__[4] = -b[js + js * b_dim1]; |
| 1424 | /*< Z( 7, 1 ) = -B( JSP1, JS ) >*/ |
| 1425 | z__[6] = -b[jsp1 + js * b_dim1]; |
| 1426 | |
| 1427 | /*< Z( 1, 2 ) = A( ISP1, IS ) >*/ |
| 1428 | z__[8] = a[isp1 + is * a_dim1]; |
| 1429 | /*< Z( 2, 2 ) = A( ISP1, ISP1 ) >*/ |
| 1430 | z__[9] = a[isp1 + isp1 * a_dim1]; |
| 1431 | /*< Z( 6, 2 ) = -B( JS, JS ) >*/ |
| 1432 | z__[13] = -b[js + js * b_dim1]; |
| 1433 | /*< Z( 8, 2 ) = -B( JSP1, JS ) >*/ |
| 1434 | z__[15] = -b[jsp1 + js * b_dim1]; |
| 1435 | |
| 1436 | /*< Z( 3, 3 ) = A( IS, IS ) >*/ |
| 1437 | z__[18] = a[is + is * a_dim1]; |
| 1438 | /*< Z( 4, 3 ) = A( IS, ISP1 ) >*/ |
| 1439 | z__[19] = a[is + isp1 * a_dim1]; |
| 1440 | /*< Z( 5, 3 ) = -B( JS, JSP1 ) >*/ |
| 1441 | z__[20] = -b[js + jsp1 * b_dim1]; |
| 1442 | /*< Z( 7, 3 ) = -B( JSP1, JSP1 ) >*/ |
| 1443 | z__[22] = -b[jsp1 + jsp1 * b_dim1]; |
| 1444 | |
| 1445 | /*< Z( 3, 4 ) = A( ISP1, IS ) >*/ |
| 1446 | z__[26] = a[isp1 + is * a_dim1]; |
| 1447 | /*< Z( 4, 4 ) = A( ISP1, ISP1 ) >*/ |
| 1448 | z__[27] = a[isp1 + isp1 * a_dim1]; |
| 1449 | /*< Z( 6, 4 ) = -B( JS, JSP1 ) >*/ |
| 1450 | z__[29] = -b[js + jsp1 * b_dim1]; |
| 1451 | /*< Z( 8, 4 ) = -B( JSP1, JSP1 ) >*/ |
| 1452 | z__[31] = -b[jsp1 + jsp1 * b_dim1]; |
| 1453 | |
| 1454 | /*< Z( 1, 5 ) = D( IS, IS ) >*/ |
| 1455 | z__[32] = d__[is + is * d_dim1]; |
| 1456 | /*< Z( 2, 5 ) = D( IS, ISP1 ) >*/ |
| 1457 | z__[33] = d__[is + isp1 * d_dim1]; |
| 1458 | /*< Z( 5, 5 ) = -E( JS, JS ) >*/ |
| 1459 | z__[36] = -e[js + js * e_dim1]; |
| 1460 | |
| 1461 | /*< Z( 2, 6 ) = D( ISP1, ISP1 ) >*/ |
| 1462 | z__[41] = d__[isp1 + isp1 * d_dim1]; |
| 1463 | /*< Z( 6, 6 ) = -E( JS, JS ) >*/ |
| 1464 | z__[45] = -e[js + js * e_dim1]; |
| 1465 | |
| 1466 | /*< Z( 3, 7 ) = D( IS, IS ) >*/ |
| 1467 | z__[50] = d__[is + is * d_dim1]; |
| 1468 | /*< Z( 4, 7 ) = D( IS, ISP1 ) >*/ |
| 1469 | z__[51] = d__[is + isp1 * d_dim1]; |
| 1470 | /*< Z( 5, 7 ) = -E( JS, JSP1 ) >*/ |
| 1471 | z__[52] = -e[js + jsp1 * e_dim1]; |
| 1472 | /*< Z( 7, 7 ) = -E( JSP1, JSP1 ) >*/ |
| 1473 | z__[54] = -e[jsp1 + jsp1 * e_dim1]; |
| 1474 | |
| 1475 | /*< Z( 4, 8 ) = D( ISP1, ISP1 ) >*/ |
| 1476 | z__[59] = d__[isp1 + isp1 * d_dim1]; |
| 1477 | /*< Z( 6, 8 ) = -E( JS, JSP1 ) >*/ |
| 1478 | z__[61] = -e[js + jsp1 * e_dim1]; |
| 1479 | /*< Z( 8, 8 ) = -E( JSP1, JSP1 ) >*/ |
| 1480 | z__[63] = -e[jsp1 + jsp1 * e_dim1]; |
| 1481 | |
| 1482 | /* Set up right hand side(s) */ |
| 1483 | |
| 1484 | /*< K = 1 >*/ |
| 1485 | k = 1; |
| 1486 | /*< II = MB*NB + 1 >*/ |
| 1487 | ii = mb * nb + 1; |
| 1488 | /*< DO 160 JJ = 0, NB - 1 >*/ |
| 1489 | i__3 = nb - 1; |
| 1490 | for (jj = 0; jj <= i__3; ++jj) { |
| 1491 | /*< CALL DCOPY( MB, C( IS, JS+JJ ), 1, RHS( K ), 1 ) >*/ |
| 1492 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &c__[is + (js + jj) * c_dim1], &c__1cxx . . $ c__1., & |
| 1493 | rhs[k - 1], &c__1cxx . . $ c__1.); |
| 1494 | /*< CALL DCOPY( MB, F( IS, JS+JJ ), 1, RHS( II ), 1 ) >*/ |
| 1495 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &f[is + (js + jj) * f_dim1], &c__1cxx . . $ c__1., &rhs[ |
| 1496 | ii - 1], &c__1cxx . . $ c__1.); |
| 1497 | /*< K = K + MB >*/ |
| 1498 | k += mb; |
| 1499 | /*< II = II + MB >*/ |
| 1500 | ii += mb; |
| 1501 | /*< 160 CONTINUE >*/ |
| 1502 | /* L160: */ |
| 1503 | } |
| 1504 | |
| 1505 | |
| 1506 | /* Solve Z' * x = RHS */ |
| 1507 | |
| 1508 | /*< CALL DGETC2( ZDIM, Z, LDZ, IPIV, JPIV, IERR ) >*/ |
| 1509 | dgetc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:52:9`!(&zdim, z__, &c__8cxx . . $ c__8., ipiv, jpiv, &ierr); |
| 1510 | /*< >*/ |
| 1511 | if (ierr > 0) { |
| 1512 | *info = ierr; |
| 1513 | } |
| 1514 | |
| 1515 | /*< CALL DGESC2( ZDIM, Z, LDZ, RHS, IPIV, JPIV, SCALOC ) >*/ |
| 1516 | dgesc2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:51:9`!(&zdim, z__, &c__8cxx . . $ c__8., rhs, ipiv, jpiv, &scaloc); |
| 1517 | /*< IF( SCALOC.NE.ONE ) THEN >*/ |
| 1518 | if (scaloc != 1.) { |
| 1519 | /*< DO 170 K = 1, N >*/ |
| 1520 | i__3 = *n; |
| 1521 | for (k = 1; k <= i__3; ++k) { |
| 1522 | /*< CALL DSCAL( M, SCALOC, C( 1, K ), 1 ) >*/ |
| 1523 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &c__[k * c_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1524 | /*< CALL DSCAL( M, SCALOC, F( 1, K ), 1 ) >*/ |
| 1525 | dscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:132:9`!(m, &scaloc, &f[k * f_dim1 + 1], &c__1cxx . . $ c__1.); |
| 1526 | /*< 170 CONTINUE >*/ |
| 1527 | /* L170: */ |
| 1528 | } |
| 1529 | /*< SCALE = SCALE*SCALOC >*/ |
| 1530 | *scale *= scaloc; |
| 1531 | /*< END IF >*/ |
| 1532 | } |
| 1533 | |
| 1534 | /* Unpack solution vector(s) */ |
| 1535 | |
| 1536 | /*< K = 1 >*/ |
| 1537 | k = 1; |
| 1538 | /*< II = MB*NB + 1 >*/ |
| 1539 | ii = mb * nb + 1; |
| 1540 | /*< DO 180 JJ = 0, NB - 1 >*/ |
| 1541 | i__3 = nb - 1; |
| 1542 | for (jj = 0; jj <= i__3; ++jj) { |
| 1543 | /*< CALL DCOPY( MB, RHS( K ), 1, C( IS, JS+JJ ), 1 ) >*/ |
| 1544 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &rhs[k - 1], &c__1cxx . . $ c__1., &c__[is + (js + jj) * |
| 1545 | c_dim1], &c__1cxx . . $ c__1.); |
| 1546 | /*< CALL DCOPY( MB, RHS( II ), 1, F( IS, JS+JJ ), 1 ) >*/ |
| 1547 | dcopy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:40:9`!(&mb, &rhs[ii - 1], &c__1cxx . . $ c__1., &f[is + (js + jj) * |
| 1548 | f_dim1], &c__1cxx . . $ c__1.); |
| 1549 | /*< K = K + MB >*/ |
| 1550 | k += mb; |
| 1551 | /*< II = II + MB >*/ |
| 1552 | ii += mb; |
| 1553 | /*< 180 CONTINUE >*/ |
| 1554 | /* L180: */ |
| 1555 | } |
| 1556 | |
| 1557 | /* Substitute R(I, J) and L(I, J) into remaining */ |
| 1558 | /* equation. */ |
| 1559 | |
| 1560 | /*< IF( J.GT.P+2 ) THEN >*/ |
| 1561 | if (j > p + 2) { |
| 1562 | /*< >*/ |
| 1563 | i__3 = js - 1; |
| 1564 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("N", "T", &mb, &i__3, &nb, &c_b42cxx . . $ c_b42., &c__[is + |
| 1565 | js * c_dim1], ldc, &b[js * b_dim1 + 1], ldb, & |
| 1566 | c_b42cxx . . $ c_b42., &f[is + f_dim1], ldf, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, ( |
| 1567 | ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 1568 | /*< >*/ |
| 1569 | i__3 = js - 1; |
| 1570 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("N", "T", &mb, &i__3, &nb, &c_b42cxx . . $ c_b42., &f[is + js * |
| 1571 | f_dim1], ldf, &e[js * e_dim1 + 1], lde, & |
| 1572 | c_b42cxx . . $ c_b42., &f[is + f_dim1], ldf, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1, ( |
| 1573 | ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 1574 | /*< END IF >*/ |
| 1575 | } |
| 1576 | /*< IF( I.LT.P ) THEN >*/ |
| 1577 | if (i__ < p) { |
| 1578 | /*< >*/ |
| 1579 | i__3 = *m - ie; |
| 1580 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("T", "N", &i__3, &nb, &mb, &c_b27cxx . . $ c_b27., &a[is + (ie |
| 1581 | + 1) * a_dim1], lda, &c__[is + js * c_dim1], |
| 1582 | ldc, &c_b42cxx . . $ c_b42., &c__[ie + 1 + js * c_dim1], ldc, |
| 1583 | (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); |
| 1584 | /*< >*/ |
| 1585 | i__3 = *m - ie; |
| 1586 | dgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:45:9`!("T", "N", &i__3, &nb, &mb, &c_b27cxx . . $ c_b27., &d__[is + ( |
| 1587 | ie + 1) * d_dim1], ldd, &f[is + js * f_dim1], |
| 1588 | ldf, &c_b42cxx . . $ c_b42., &c__[ie + 1 + js * c_dim1], ldc, |
| 1589 | (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); |
| 1590 | /*< END IF >*/ |
| 1591 | } |
| 1592 | |
| 1593 | /*< END IF >*/ |
| 1594 | } |
| 1595 | |
| 1596 | /*< 190 CONTINUE >*/ |
| 1597 | /* L190: */ |
| 1598 | } |
| 1599 | /*< 200 CONTINUE >*/ |
| 1600 | /* L200: */ |
| 1601 | } |
| 1602 | |
| 1603 | /*< END IF >*/ |
| 1604 | } |
| 1605 | /*< RETURN >*/ |
| 1606 | return 0; |
| 1607 | |
| 1608 | /* End of DTGSY2 */ |
| 1609 | |
| 1610 | /*< END >*/ |
| 1611 | } /* dtgsy2_ */ |
| 1612 | |
| 1613 | #ifdef __cplusplus |
| 1614 | } |
| 1615 | #endif |