Debian Codegraph @

Modules/ThirdParty/VNL/src/vxl/v3p/netlib/blas/zaxpy.c

raw symbols SCIP
1 /* blas/zaxpy.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 zaxpy(n,za,zx,incx,zy,incy) >*/
19 /* Subroutine */ int zaxpy_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:306: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, 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, i__4;
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 extern doublerealcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:57:9`! dcabs1_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:38:9`!(doublecomplexcxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_f2c_mangle.h:56:9`! *);
29
30
31 /* constant times a vector plus a vector. */
32 /* jack dongarra, 3/11/78. */
33 /* modified 12/3/93, array(1) declarations changed to array(*) */
34
35 /*< double complex zx(*),zy(*),za >*/
36 /*< integer i,incx,incy,ix,iy,n >*/
37 /*< double precision dcabs1 >*/
38 /*< if(n.le.0)return >*/
39 /* Parameter adjustments */
40 --zy;
41 --zx;
42
43 /* Function Body */
44 if (*n <= 0) {
45 return 0;
46 }
47 /*< if (dcabs1(za) .eq. 0.0d0) return >*/
48 if (dcabs1_cxx . . $ `Modules/ThirdParty/VNL/src/vxl/v3p/netlib/v3p_netlib_mangle.h:38:9`!(za) == 0.) {
49 return 0;
50 }
51 /*< if (incx.eq.1.and.incy.eq.1)go to 20 >*/
52 if (*incx == 1 && *incy == 1) {
53 goto L20;
54 }
55
56 /* code for unequal increments or equal increments */
57 /* not equal to 1 */
58
59 /*< ix = 1 >*/
60 ix = 1;
61 /*< iy = 1 >*/
62 iy = 1;
63 /*< if(incx.lt.0)ix = (-n+1)*incx + 1 >*/
64 if (*incx < 0) {
65 ix = (-(*n) + 1) * *incx + 1;
66 }
67 /*< if(incy.lt.0)iy = (-n+1)*incy + 1 >*/
68 if (*incy < 0) {
69 iy = (-(*n) + 1) * *incy + 1;
70 }
71 /*< do 10 i = 1,n >*/
72 i__1 = *n;
73 for (i__ = 1; i__ <= i__1; ++i__) {
74 /*< zy(iy) = zy(iy) + za*zx(ix) >*/
75 i__2 = iy;
76 i__3 = iy;
77 i__4 = ix;
78 z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[
79 i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.;
80 z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = zy[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. + z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = zy[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.;
81 zy[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., zy[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.;
82 /*< ix = ix + incx >*/
83 ix += *incx;
84 /*< iy = iy + incy >*/
85 iy += *incy;
86 /*< 10 continue >*/
87 /* L10: */
88 }
89 /*< return >*/
90 return 0;
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 /*< zy(i) = zy(i) + za*zx(i) >*/
99 i__2 = i__;
100 i__3 = i__;
101 i__4 = i__;
102 z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. - za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i., z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = za->rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. * zx[
103 i__4].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + za->icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. * zx[i__4].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r.;
104 z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = zy[i__3].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. + z__2.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = zy[i__3].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. + z__2.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.;
105 zy[i__2].rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r. = z__1.rcxx . . $ $anonymous_type_ec17f80a666933f6_1#r., zy[i__2].icxx . . $ $anonymous_type_ec17f80a666933f6_1#i. = z__1.icxx . . $ $anonymous_type_ec17f80a666933f6_1#i.;
106 /*< 30 continue >*/
107 /* L30: */
108 }
109 /*< return >*/
110 return 0;
111 /*< end >*/
112 } /* zaxpy_ */
113
114 #ifdef __cplusplus
115 }
116 #endif