| 1 | /* blas/cscal.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 cscal(n,ca,cx,incx) >*/ |
| 19 | /* Subroutine */ int cscal_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:31:9`!(integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! *n, complexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:55:9`! *ca, complexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:55:9`! *cx, integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! * |
| 20 | 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, i__4; |
| 24 | complexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:55:9`! q__1; |
| 25 | |
| 26 | /* Local variables */ |
| 27 | integercxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:63:9`! i__, nincx; |
| 28 | |
| 29 | |
| 30 | /* scales a vector by a constant. */ |
| 31 | /* jack dongarra, linpack, 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 | /*< complex ca,cx(*) >*/ |
| 36 | /*< integer i,incx,n,nincx >*/ |
| 37 | |
| 38 | /*< if( n.le.0 .or. incx.le.0 )return >*/ |
| 39 | /* Parameter adjustments */ |
| 40 | --cx; |
| 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 | /*< nincx = n*incx >*/ |
| 54 | nincx = *n * *incx; |
| 55 | /*< do 10 i = 1,nincx,incx >*/ |
| 56 | i__1 = nincx; |
| 57 | i__2 = *incx; |
| 58 | for (i__ = 1; i__2 < 0 ? i__ >= i__1 : i__ <= i__1; i__ += i__2) { |
| 59 | /*< cx(i) = ca*cx(i) >*/ |
| 60 | i__3 = i__; |
| 61 | i__4 = i__; |
| 62 | q__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. = ca->rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. * cx[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. - ca->icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. * cx[i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_0#i., q__1.icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. = ca->rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. * cx[ |
| 63 | i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. + ca->icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. * cx[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r.; |
| 64 | cx[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. = q__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r., cx[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. = q__1.icxx . . $ $anonymous_type_ec17f80a666933f6_0#i.; |
| 65 | /*< 10 continue >*/ |
| 66 | /* L10: */ |
| 67 | } |
| 68 | /*< return >*/ |
| 69 | return 0; |
| 70 | |
| 71 | /* code for increment equal to 1 */ |
| 72 | |
| 73 | /*< 20 do 30 i = 1,n >*/ |
| 74 | L20: |
| 75 | i__2 = *n; |
| 76 | for (i__ = 1; i__ <= i__2; ++i__) { |
| 77 | /*< cx(i) = ca*cx(i) >*/ |
| 78 | i__1 = i__; |
| 79 | i__3 = i__; |
| 80 | q__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. = ca->rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. * cx[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. - ca->icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. * cx[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_0#i., q__1.icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. = ca->rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. * cx[ |
| 81 | i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. + ca->icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. * cx[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r.; |
| 82 | cx[i__1].rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r. = q__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_0#r., cx[i__1].icxx . . $ $anonymous_type_ec17f80a666933f6_0#i. = q__1.icxx . . $ $anonymous_type_ec17f80a666933f6_0#i.; |
| 83 | /*< 30 continue >*/ |
| 84 | /* L30: */ |
| 85 | } |
| 86 | /*< return >*/ |
| 87 | return 0; |
| 88 | /*< end >*/ |
| 89 | } /* cscal_ */ |
| 90 | |
| 91 | #ifdef __cplusplus |
| 92 | } |
| 93 | #endif |