1 subroutine dcopy
(n
,dx
,incx
,dy
,incy
)
3 c copies a vector, x, to a vector, y.
4 c uses unrolled loops for increments equal to one.
5 c jack dongarra, linpack, 3/11/78.
6 c modified 12/3/93, array(1) declarations changed to array(*)
8 double precision dx
(*),dy
(*)
9 integer i
,incx
,incy
,ix
,iy
,m
,mp1
,n
12 if(incx
.eq
.1.and
.incy
.eq
.1)go to 20
14 c code for unequal increments or equal increments
19 if(incx
.lt
.0)ix
= (-n
+1)*incx
+ 1
20 if(incy
.lt
.0)iy
= (-n
+1)*incy
+ 1
28 c code for both increments equal to 1
34 if( m
.eq
. 0 ) go to 40