| 1 | /* lapack/complex16/zgehrd.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 doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! c_b2cxx . . $ c_b2. = {1.,0.}; |
| 21 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__1cxx . . $ c__1. = 1; |
| 22 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c_n1cxx . . $ c_n1. = -1; |
| 23 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__3cxx . . $ c__3. = 3; |
| 24 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__2cxx . . $ c__2. = 2; |
| 25 | static integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! c__65cxx . . $ c__65. = 65; |
| 26 | |
| 27 | /*< SUBROUTINE ZGEHRD( N, ILO, IHI, A, LDA, TAU, WORK, LWORK, INFO ) >*/ |
| 28 | /* Subroutine */ int zgehrd_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:316:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ilo, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *ihi, |
| 29 | 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`! *tau, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! * |
| 30 | work, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *lwork, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *info) |
| 31 | { |
| 32 | /* System generated locals */ |
| 33 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! a_dim1, a_offset, i__1, i__2, i__3, i__4; |
| 34 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! z__1; |
| 35 | |
| 36 | /* Local variables */ |
| 37 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__; |
| 38 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! t[4160] /* was [65][64] */; |
| 39 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! ib; |
| 40 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! ei; |
| 41 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! nb, nh, nx=0, iws, nbmin, iinfo; |
| 42 | extern /* Subroutine */ int zgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:317: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`! *, |
| 43 | 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`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, |
| 44 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, 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`! *, |
| 45 | 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`!), zgehd2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:315: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`! |
| 46 | *, 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`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, |
| 47 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *), xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!(char *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!); |
| 48 | extern integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! ilaenv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:181:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63: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`! *, |
| 49 | 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`! *, 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`!); |
| 50 | extern /* Subroutine */ int zlarfb_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:329:9`!(char *, char *, char *, char *, |
| 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`! *, 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`! *, |
| 52 | 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`! *, |
| 53 | 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`! *, 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`!, 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`!), |
| 54 | zlahrd_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:325: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`! *, 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`! |
| 55 | *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *, |
| 56 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *); |
| 57 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! ldwork, lwkopt; |
| 58 | logicalcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:65:9`! lquery; |
| 59 | |
| 60 | |
| 61 | /* -- LAPACK routine (version 3.0) -- */ |
| 62 | /* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., */ |
| 63 | /* Courant Institute, Argonne National Lab, and Rice University */ |
| 64 | /* June 30, 1999 */ |
| 65 | |
| 66 | /* .. Scalar Arguments .. */ |
| 67 | /*< INTEGER IHI, ILO, INFO, LDA, LWORK, N >*/ |
| 68 | /* .. */ |
| 69 | /* .. Array Arguments .. */ |
| 70 | /*< COMPLEX*16 A( LDA, * ), TAU( * ), WORK( * ) >*/ |
| 71 | /* .. */ |
| 72 | |
| 73 | /* Purpose */ |
| 74 | /* ======= */ |
| 75 | |
| 76 | /* ZGEHRD reduces a complex general matrix A to upper Hessenberg form H */ |
| 77 | /* by a unitary similarity transformation: Q' * A * Q = H . */ |
| 78 | |
| 79 | /* Arguments */ |
| 80 | /* ========= */ |
| 81 | |
| 82 | /* N (input) INTEGER */ |
| 83 | /* The order of the matrix A. N >= 0. */ |
| 84 | |
| 85 | /* ILO (input) INTEGER */ |
| 86 | /* IHI (input) INTEGER */ |
| 87 | /* It is assumed that A is already upper triangular in rows */ |
| 88 | /* and columns 1:ILO-1 and IHI+1:N. ILO and IHI are normally */ |
| 89 | /* set by a previous call to ZGEBAL; otherwise they should be */ |
| 90 | /* set to 1 and N respectively. See Further Details. */ |
| 91 | /* 1 <= ILO <= IHI <= N, if N > 0; ILO=1 and IHI=0, if N=0. */ |
| 92 | |
| 93 | /* A (input/output) COMPLEX*16 array, dimension (LDA,N) */ |
| 94 | /* On entry, the N-by-N general matrix to be reduced. */ |
| 95 | /* On exit, the upper triangle and the first subdiagonal of A */ |
| 96 | /* are overwritten with the upper Hessenberg matrix H, and the */ |
| 97 | /* elements below the first subdiagonal, with the array TAU, */ |
| 98 | /* represent the unitary matrix Q as a product of elementary */ |
| 99 | /* reflectors. See Further Details. */ |
| 100 | |
| 101 | /* LDA (input) INTEGER */ |
| 102 | /* The leading dimension of the array A. LDA >= max(1,N). */ |
| 103 | |
| 104 | /* TAU (output) COMPLEX*16 array, dimension (N-1) */ |
| 105 | /* The scalar factors of the elementary reflectors (see Further */ |
| 106 | /* Details). Elements 1:ILO-1 and IHI:N-1 of TAU are set to */ |
| 107 | /* zero. */ |
| 108 | |
| 109 | /* WORK (workspace/output) COMPLEX*16 array, dimension (LWORK) */ |
| 110 | /* On exit, if INFO = 0, WORK(1) returns the optimal LWORK. */ |
| 111 | |
| 112 | /* LWORK (input) INTEGER */ |
| 113 | /* The length of the array WORK. LWORK >= max(1,N). */ |
| 114 | /* For optimum performance LWORK >= N*NB, where NB is the */ |
| 115 | /* optimal blocksize. */ |
| 116 | |
| 117 | /* If LWORK = -1, then a workspace query is assumed; the routine */ |
| 118 | /* only calculates the optimal size of the WORK array, returns */ |
| 119 | /* this value as the first entry of the WORK array, and no error */ |
| 120 | /* message related to LWORK is issued by XERBLA. */ |
| 121 | |
| 122 | /* INFO (output) INTEGER */ |
| 123 | /* = 0: successful exit */ |
| 124 | /* < 0: if INFO = -i, the i-th argument had an illegal value. */ |
| 125 | |
| 126 | /* Further Details */ |
| 127 | /* =============== */ |
| 128 | |
| 129 | /* The matrix Q is represented as a product of (ihi-ilo) elementary */ |
| 130 | /* reflectors */ |
| 131 | |
| 132 | /* Q = H(ilo) H(ilo+1) . . . H(ihi-1). */ |
| 133 | |
| 134 | /* Each H(i) has the form */ |
| 135 | |
| 136 | /* H(i) = I - tau * v * v' */ |
| 137 | |
| 138 | /* where tau is a complex scalar, and v is a complex vector with */ |
| 139 | /* v(1:i) = 0, v(i+1) = 1 and v(ihi+1:n) = 0; v(i+2:ihi) is stored on */ |
| 140 | /* exit in A(i+2:ihi,i), and tau in TAU(i). */ |
| 141 | |
| 142 | /* The contents of A are illustrated by the following example, with */ |
| 143 | /* n = 7, ilo = 2 and ihi = 6: */ |
| 144 | |
| 145 | /* on entry, on exit, */ |
| 146 | |
| 147 | /* ( a a a a a a a ) ( a a h h h h a ) */ |
| 148 | /* ( a a a a a a ) ( a h h h h a ) */ |
| 149 | /* ( a a a a a a ) ( h h h h h h ) */ |
| 150 | /* ( a a a a a a ) ( v2 h h h h h ) */ |
| 151 | /* ( a a a a a a ) ( v2 v3 h h h h ) */ |
| 152 | /* ( a a a a a a ) ( v2 v3 v4 h h h ) */ |
| 153 | /* ( a ) ( a ) */ |
| 154 | |
| 155 | /* where a denotes an element of the original matrix A, h denotes a */ |
| 156 | /* modified element of the upper Hessenberg matrix H, and vi denotes an */ |
| 157 | /* element of the vector defining H(i). */ |
| 158 | |
| 159 | /* ===================================================================== */ |
| 160 | |
| 161 | /* .. Parameters .. */ |
| 162 | /*< INTEGER NBMAX, LDT >*/ |
| 163 | /*< PARAMETER ( NBMAX = 64, LDT = NBMAX+1 ) >*/ |
| 164 | /*< COMPLEX*16 ZERO, ONE >*/ |
| 165 | /*< >*/ |
| 166 | /* .. */ |
| 167 | /* .. Local Scalars .. */ |
| 168 | /*< LOGICAL LQUERY >*/ |
| 169 | /*< >*/ |
| 170 | /*< COMPLEX*16 EI >*/ |
| 171 | /* .. */ |
| 172 | /* .. Local Arrays .. */ |
| 173 | /*< COMPLEX*16 T( LDT, NBMAX ) >*/ |
| 174 | /* .. */ |
| 175 | /* .. External Subroutines .. */ |
| 176 | /*< EXTERNAL XERBLA, ZGEHD2, ZGEMM, ZLAHRD, ZLARFB >*/ |
| 177 | /* .. */ |
| 178 | /* .. Intrinsic Functions .. */ |
| 179 | /*< INTRINSIC MAX, MIN >*/ |
| 180 | /* .. */ |
| 181 | /* .. External Functions .. */ |
| 182 | /*< INTEGER ILAENV >*/ |
| 183 | /*< EXTERNAL ILAENV >*/ |
| 184 | /* .. */ |
| 185 | /* .. Executable Statements .. */ |
| 186 | |
| 187 | /* Test the input parameters */ |
| 188 | |
| 189 | /*< INFO = 0 >*/ |
| 190 | /* Parameter adjustments */ |
| 191 | a_dim1 = *lda; |
| 192 | a_offset = 1 + a_dim1; |
| 193 | a -= a_offset; |
| 194 | --tau; |
| 195 | --work; |
| 196 | |
| 197 | /* Function Body */ |
| 198 | *info = 0; |
| 199 | /*< NB = MIN( NBMAX, ILAENV( 1, 'ZGEHRD', ' ', N, ILO, IHI, -1 ) ) >*/ |
| 200 | /* Computing MIN */ |
| 201 | i__1 = 64, i__2 = ilaenv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:181:9`!(&c__1cxx . . $ c__1., "ZGEHRD", " ", n, ilo, ihi, &c_n1cxx . . $ c_n1., ( |
| 202 | ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 203 | nb = mincxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:159:9`!(i__1,i__2); |
| 204 | /*< LWKOPT = N*NB >*/ |
| 205 | lwkopt = *n * nb; |
| 206 | /*< WORK( 1 ) = LWKOPT >*/ |
| 207 | work[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = (doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`!) lwkopt, work[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 208 | /*< LQUERY = ( LWORK.EQ.-1 ) >*/ |
| 209 | lquery = *lwork == -1; |
| 210 | /*< IF( N.LT.0 ) THEN >*/ |
| 211 | if (*n < 0) { |
| 212 | /*< INFO = -1 >*/ |
| 213 | *info = -1; |
| 214 | /*< ELSE IF( ILO.LT.1 .OR. ILO.GT.MAX( 1, N ) ) THEN >*/ |
| 215 | } else if (*ilo < 1 || *ilo > maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 216 | /*< INFO = -2 >*/ |
| 217 | *info = -2; |
| 218 | /*< ELSE IF( IHI.LT.MIN( ILO, N ) .OR. IHI.GT.N ) THEN >*/ |
| 219 | } else if (*ihi < mincxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:159:9`!(*ilo,*n) || *ihi > *n) { |
| 220 | /*< INFO = -3 >*/ |
| 221 | *info = -3; |
| 222 | /*< ELSE IF( LDA.LT.MAX( 1, N ) ) THEN >*/ |
| 223 | } else if (*lda < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n)) { |
| 224 | /*< INFO = -5 >*/ |
| 225 | *info = -5; |
| 226 | /*< ELSE IF( LWORK.LT.MAX( 1, N ) .AND. .NOT.LQUERY ) THEN >*/ |
| 227 | } else if (*lwork < maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*n) && ! lquery) { |
| 228 | /*< INFO = -8 >*/ |
| 229 | *info = -8; |
| 230 | /*< END IF >*/ |
| 231 | } |
| 232 | /*< IF( INFO.NE.0 ) THEN >*/ |
| 233 | if (*info != 0) { |
| 234 | /*< CALL XERBLA( 'ZGEHRD', -INFO ) >*/ |
| 235 | i__1 = -(*info); |
| 236 | xerbla_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:303:9`!("ZGEHRD", &i__1, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6); |
| 237 | /*< RETURN >*/ |
| 238 | return 0; |
| 239 | /*< ELSE IF( LQUERY ) THEN >*/ |
| 240 | } else if (lquery) { |
| 241 | /*< RETURN >*/ |
| 242 | return 0; |
| 243 | /*< END IF >*/ |
| 244 | } |
| 245 | |
| 246 | /* Set elements 1:ILO-1 and IHI:N-1 of TAU to zero */ |
| 247 | |
| 248 | /*< DO 10 I = 1, ILO - 1 >*/ |
| 249 | i__1 = *ilo - 1; |
| 250 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 251 | /*< TAU( I ) = ZERO >*/ |
| 252 | i__2 = i__; |
| 253 | tau[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 0., tau[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 254 | /*< 10 CONTINUE >*/ |
| 255 | /* L10: */ |
| 256 | } |
| 257 | /*< DO 20 I = MAX( 1, IHI ), N - 1 >*/ |
| 258 | i__1 = *n - 1; |
| 259 | for (i__ = maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(1,*ihi); i__ <= i__1; ++i__) { |
| 260 | /*< TAU( I ) = ZERO >*/ |
| 261 | i__2 = i__; |
| 262 | tau[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 0., tau[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 263 | /*< 20 CONTINUE >*/ |
| 264 | /* L20: */ |
| 265 | } |
| 266 | |
| 267 | /* Quick return if possible */ |
| 268 | |
| 269 | /*< NH = IHI - ILO + 1 >*/ |
| 270 | nh = *ihi - *ilo + 1; |
| 271 | /*< IF( NH.LE.1 ) THEN >*/ |
| 272 | if (nh <= 1) { |
| 273 | /*< WORK( 1 ) = 1 >*/ |
| 274 | work[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 1., work[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 275 | /*< RETURN >*/ |
| 276 | return 0; |
| 277 | /*< END IF >*/ |
| 278 | } |
| 279 | |
| 280 | /*< NBMIN = 2 >*/ |
| 281 | nbmin = 2; |
| 282 | /*< IWS = 1 >*/ |
| 283 | iws = 1; |
| 284 | /*< IF( NB.GT.1 .AND. NB.LT.NH ) THEN >*/ |
| 285 | if (nb > 1 && nb < nh) { |
| 286 | |
| 287 | /* Determine when to cross over from blocked to unblocked code */ |
| 288 | /* (last block is always handled by unblocked code). */ |
| 289 | |
| 290 | /*< NX = MAX( NB, ILAENV( 3, 'ZGEHRD', ' ', N, ILO, IHI, -1 ) ) >*/ |
| 291 | /* Computing MAX */ |
| 292 | i__1 = nb, i__2 = ilaenv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:181:9`!(&c__3cxx . . $ c__3., "ZGEHRD", " ", n, ilo, ihi, &c_n1cxx . . $ c_n1., ( |
| 293 | ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 294 | nx = maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(i__1,i__2); |
| 295 | /*< IF( NX.LT.NH ) THEN >*/ |
| 296 | if (nx < nh) { |
| 297 | |
| 298 | /* Determine if workspace is large enough for blocked code. */ |
| 299 | |
| 300 | /*< IWS = N*NB >*/ |
| 301 | iws = *n * nb; |
| 302 | /*< IF( LWORK.LT.IWS ) THEN >*/ |
| 303 | if (*lwork < iws) { |
| 304 | |
| 305 | /* Not enough workspace to use optimal NB: determine the */ |
| 306 | /* minimum value of NB, and reduce NB or force use of */ |
| 307 | /* unblocked code. */ |
| 308 | |
| 309 | /*< >*/ |
| 310 | /* Computing MAX */ |
| 311 | i__1 = 2, i__2 = ilaenv_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:181:9`!(&c__2cxx . . $ c__2., "ZGEHRD", " ", n, ilo, ihi, & |
| 312 | c_n1cxx . . $ c_n1., (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)6, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)1); |
| 313 | nbmin = maxcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:160:9`!(i__1,i__2); |
| 314 | /*< IF( LWORK.GE.N*NBMIN ) THEN >*/ |
| 315 | if (*lwork >= *n * nbmin) { |
| 316 | /*< NB = LWORK / N >*/ |
| 317 | nb = *lwork / *n; |
| 318 | /*< ELSE >*/ |
| 319 | } else { |
| 320 | /*< NB = 1 >*/ |
| 321 | nb = 1; |
| 322 | /*< END IF >*/ |
| 323 | } |
| 324 | /*< END IF >*/ |
| 325 | } |
| 326 | /*< END IF >*/ |
| 327 | } |
| 328 | /*< END IF >*/ |
| 329 | } |
| 330 | /*< LDWORK = N >*/ |
| 331 | ldwork = *n; |
| 332 | |
| 333 | /*< IF( NB.LT.NBMIN .OR. NB.GE.NH ) THEN >*/ |
| 334 | if (nb < nbmin || nb >= nh) { |
| 335 | |
| 336 | /* Use unblocked code below */ |
| 337 | |
| 338 | /*< I = ILO >*/ |
| 339 | i__ = *ilo; |
| 340 | |
| 341 | /*< ELSE >*/ |
| 342 | } else { |
| 343 | |
| 344 | /* Use blocked code */ |
| 345 | |
| 346 | /*< DO 30 I = ILO, IHI - 1 - NX, NB >*/ |
| 347 | i__1 = *ihi - 1 - nx; |
| 348 | i__2 = nb; |
| 349 | for (i__ = *ilo; i__2 < 0 ? i__ >= i__1 : i__ <= i__1; i__ += i__2) { |
| 350 | /*< IB = MIN( NB, IHI-I ) >*/ |
| 351 | /* Computing MIN */ |
| 352 | i__3 = nb, i__4 = *ihi - i__; |
| 353 | ib = mincxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:159:9`!(i__3,i__4); |
| 354 | |
| 355 | /* Reduce columns i:i+ib-1 to Hessenberg form, returning the */ |
| 356 | /* matrices V and T of the block reflector H = I - V*T*V' */ |
| 357 | /* which performs the reduction, and also the matrix Y = A*V*T */ |
| 358 | |
| 359 | /*< >*/ |
| 360 | zlahrd_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:325:9`!(ihi, &i__, &ib, &a[i__ * a_dim1 + 1], lda, &tau[i__], t, & |
| 361 | c__65cxx . . $ c__65., &work[1], &ldwork); |
| 362 | |
| 363 | /* Apply the block reflector H to A(1:ihi,i+ib:ihi) from the */ |
| 364 | /* right, computing A := A - Y * V'. V(i+ib,ib-1) must be set */ |
| 365 | /* to 1. */ |
| 366 | |
| 367 | /*< EI = A( I+IB, I+IB-1 ) >*/ |
| 368 | i__3 = i__ + ib + (i__ + ib - 1) * a_dim1; |
| 369 | ei.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = a[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., ei.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = a[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 370 | /*< A( I+IB, I+IB-1 ) = ONE >*/ |
| 371 | i__3 = i__ + ib + (i__ + ib - 1) * a_dim1; |
| 372 | a[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 1., a[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 373 | /*< >*/ |
| 374 | i__3 = *ihi - i__ - ib + 1; |
| 375 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = -1., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = -0.; |
| 376 | zgemm_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:317:9`!("No transpose", "Conjugate transpose", ihi, &i__3, &ib, & |
| 377 | z__1, &work[1], &ldwork, &a[i__ + ib + i__ * a_dim1], lda, |
| 378 | &c_b2cxx . . $ c_b2., &a[(i__ + ib) * a_dim1 + 1], lda, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)12, ( |
| 379 | ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)19); |
| 380 | /*< A( I+IB, I+IB-1 ) = EI >*/ |
| 381 | i__3 = i__ + ib + (i__ + ib - 1) * a_dim1; |
| 382 | a[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = ei.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., a[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = ei.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 383 | |
| 384 | /* Apply the block reflector H to A(i+1:ihi,i+ib:n) from the */ |
| 385 | /* left */ |
| 386 | |
| 387 | /*< >*/ |
| 388 | i__3 = *ihi - i__; |
| 389 | i__4 = *n - i__ - ib + 1; |
| 390 | zlarfb_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:329:9`!("Left", "Conjugate transpose", "Forward", "Columnwise", & |
| 391 | i__3, &i__4, &ib, &a[i__ + 1 + i__ * a_dim1], lda, t, & |
| 392 | c__65cxx . . $ c__65., &a[i__ + 1 + (i__ + ib) * a_dim1], lda, &work[1], & |
| 393 | ldwork, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)4, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)19, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)7, (ftnlencxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:60:9`!)10); |
| 394 | /*< 30 CONTINUE >*/ |
| 395 | /* L30: */ |
| 396 | } |
| 397 | /*< END IF >*/ |
| 398 | } |
| 399 | |
| 400 | /* Use unblocked code to reduce the rest of the matrix */ |
| 401 | |
| 402 | /*< CALL ZGEHD2( N, I, IHI, A, LDA, TAU, WORK, IINFO ) >*/ |
| 403 | zgehd2_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:315:9`!(n, &i__, ihi, &a[a_offset], lda, &tau[1], &work[1], &iinfo); |
| 404 | /*< WORK( 1 ) = IWS >*/ |
| 405 | work[1].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = (doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`!) iws, work[1].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 406 | |
| 407 | /*< RETURN >*/ |
| 408 | return 0; |
| 409 | |
| 410 | /* End of ZGEHRD */ |
| 411 | |
| 412 | /*< END >*/ |
| 413 | } /* zgehrd_ */ |
| 414 | |
| 415 | #ifdef __cplusplus |
| 416 | } |
| 417 | #endif |