Debian Codegraph @

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

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