| 1 | /* blas/zscal.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 | /*< subroutine zscal(n,za,zx,incx) >*/ |
| 19 | /* Subroutine */ int zscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:339:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *za, doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *zx, |
| 20 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *incx) |
| 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; |
| 25 | |
| 26 | /* Local variables */ |
| 27 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__, ix; |
| 28 | |
| 29 | |
| 30 | /* scales a vector by a constant. */ |
| 31 | /* jack dongarra, 3/11/78. */ |
| 32 | /* modified 3/93 to return if incx .le. 0. */ |
| 33 | /* modified 12/3/93, array(1) declarations changed to array(*) */ |
| 34 | |
| 35 | /*< double complex za,zx(*) >*/ |
| 36 | /*< integer i,incx,ix,n >*/ |
| 37 | |
| 38 | /*< if( n.le.0 .or. incx.le.0 )return >*/ |
| 39 | /* Parameter adjustments */ |
| 40 | --zx; |
| 41 | |
| 42 | /* Function Body */ |
| 43 | if (*n <= 0 || *incx <= 0) { |
| 44 | return 0; |
| 45 | } |
| 46 | /*< if(incx.eq.1)go to 20 >*/ |
| 47 | if (*incx == 1) { |
| 48 | goto L20; |
| 49 | } |
| 50 | |
| 51 | /* code for increment not equal to 1 */ |
| 52 | |
| 53 | /*< ix = 1 >*/ |
| 54 | ix = 1; |
| 55 | /*< do 10 i = 1,n >*/ |
| 56 | i__1 = *n; |
| 57 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 58 | /*< zx(ix) = za*zx(ix) >*/ |
| 59 | i__2 = ix; |
| 60 | i__3 = ix; |
| 61 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[ |
| 62 | i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 63 | zx[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., zx[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 64 | /*< ix = ix + incx >*/ |
| 65 | ix += *incx; |
| 66 | /*< 10 continue >*/ |
| 67 | /* L10: */ |
| 68 | } |
| 69 | /*< return >*/ |
| 70 | return 0; |
| 71 | |
| 72 | /* code for increment equal to 1 */ |
| 73 | |
| 74 | /*< 20 do 30 i = 1,n >*/ |
| 75 | L20: |
| 76 | i__1 = *n; |
| 77 | for (i__ = 1; i__ <= i__1; ++i__) { |
| 78 | /*< zx(i) = za*zx(i) >*/ |
| 79 | i__2 = i__; |
| 80 | i__3 = i__; |
| 81 | z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[ |
| 82 | i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.; |
| 83 | zx[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., zx[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.; |
| 84 | /*< 30 continue >*/ |
| 85 | /* L30: */ |
| 86 | } |
| 87 | /*< return >*/ |
| 88 | return 0; |
| 89 | /*< end >*/ |
| 90 | } /* zscal_ */ |
| 91 | |
| 92 | #ifdef __cplusplus |
| 93 | } |
| 94 | #endif |