1 subroutine zcopy
(n
,zx
,incx
,zy
,incy
)
3 c copies a vector, x, to a vector, y.
4 c jack dongarra, linpack, 4/11/78.
5 c modified 12/3/93, array(1) declarations changed to array(*)
7 double complex zx
(*),zy
(*)
8 integer i
,incx
,incy
,ix
,iy
,n
11 if(incx
.eq
.1.and
.incy
.eq
.1)go to 20
13 c code for unequal increments or equal increments
18 if(incx
.lt
.0)ix
= (-n
+1)*incx
+ 1
19 if(incy
.lt
.0)iy
= (-n
+1)*incy
+ 1
27 c code for both increments equal to 1