| 1 | /* blas/zdotu.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 | /*< double complex function zdotu(n,zx,incx,zy,incy) >*/ |
| 19 | /* Double Complex */ VOIDcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_original.h:125:9`! zdotu_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:309:9`!(doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! * ret_val, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, |
| 20 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *zx, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *incx, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *zy, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *incy) |
| 21 | { |
| 22 | /* System generated locals */ |
| 23 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__1, i__2, i__3; |
| 24 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! z__1, z__2; |
| 25 | |
| 26 | /* Local variables */ |
| 27 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__, ix, iy; |
| 28 | doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! ztemp; |
| 29 | |
| 30 | |
| 31 | /* forms the dot product of two vectors. */ |
| 32 | /* jack dongarra, 3/11/78. */ |
| 33 | /* modified 12/3/93, array(1) declarations changed to array(*) */ |
| 34 | |
| 35 | /*< double complex zx(*),zy(*),ztemp >*/ |
| 36 | /*< integer i,incx,incy,ix,iy,n >*/ |
| 37 | /*< ztemp = (0.0d0,0.0d0) >*/ |
| 38 | /* Parameter adjustments */ |
| 39 | --zy; |
| 40 | --zx; |
| 41 | |
| 42 | /* Function Body */ |
| 43 | ztemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 0., ztemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 44 | /*< zdotu = (0.0d0,0.0d0) >*/ |
| 45 | ret_val->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = 0., ret_val->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = 0.; |
| 46 | /*< if(n.le.0)return >*/ |
| 47 | if (*n <= 0) { |
| 48 | return ; |
| 49 | } |
| 50 | /*< if(incx.eq.1.and.incy.eq.1)go to 20 >*/ |
| 51 | if (*incx == 1 && *incy == 1) { |
| 52 | goto L20; |
| 53 | } |
| 54 | |
| 55 | /* code for unequal increments or equal increments */ |
| 56 | /* not equal to 1 */ |
| 57 | |
| 58 | /*< ix = 1 >*/ |
| 59 | ix = 1; |
| 60 | /*< iy = 1 >*/ |
| 61 | iy = 1; |
| 62 | /*< if(incx.lt.0)ix = (-n+1)*incx + 1 >*/ |
| 63 | if (*incx < 0) { |
| 64 | ix = (-(*n) + 1) * *incx + 1; |
| 65 | } |
| 66 | /*< if(incy.lt.0)iy = (-n+1)*incy + 1 >*/ |
| 67 | if (*incy < 0) { |
| 68 | iy = (-(*n) + 1) * *incy + 1; |
| 69 | } |
| 70 | /*< do 10 i = 1,n >*/ |
| 71 | i__1 = *n; |
| 72 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 73 | /*< ztemp = ztemp + zx(ix)*zy(iy) >*/ |
| 74 | i__2 = ix; |
| 75 | i__3 = iy; |
| 76 | z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = zx[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zy[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - zx[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zy[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = |
| 77 | zx[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zy[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + zx[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zy[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 78 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = ztemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. + z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = ztemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 79 | ztemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., ztemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 80 | /*< ix = ix + incx >*/ |
| 81 | ix += *incx; |
| 82 | /*< iy = iy + incy >*/ |
| 83 | iy += *incy; |
| 84 | /*< 10 continue >*/ |
| 85 | /* L10: */ |
| 86 | } |
| 87 | /*< zdotu = ztemp >*/ |
| 88 | ret_val->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = ztemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., ret_val->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = ztemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 89 | /*< return >*/ |
| 90 | return ; |
| 91 | |
| 92 | /* code for both increments equal to 1 */ |
| 93 | |
| 94 | /*< 20 do 30 i = 1,n >*/ |
| 95 | L20: |
| 96 | i__1 = *n; |
| 97 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 98 | /*< ztemp = ztemp + zx(i)*zy(i) >*/ |
| 99 | i__2 = i__; |
| 100 | i__3 = i__; |
| 101 | z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = zx[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zy[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - zx[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zy[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = |
| 102 | zx[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zy[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + zx[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zy[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 103 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = ztemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. + z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = ztemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 104 | ztemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., ztemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 105 | /*< 30 continue >*/ |
| 106 | /* L30: */ |
| 107 | } |
| 108 | /*< zdotu = ztemp >*/ |
| 109 | ret_val->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = ztemp.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., ret_val->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = ztemp.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 110 | /*< return >*/ |
| 111 | return ; |
| 112 | /*< end >*/ |
| 113 | } /* zdotu_ */ |
| 114 | |
| 115 | #ifdef __cplusplus |
| 116 | } |
| 117 | #endif |