Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2789_MathNetNumerics-Exploration/HeuristicLab.Algorithms.DataAnalysis.Experimental/sbart/zcopy.f @ 16189

Last change on this file since 16189 was 15457, checked in by gkronber, 7 years ago

#2789 added Finbarr O'Sullivan smoothing spline code

File size: 933 bytes
Line 
1      SUBROUTINE ZCOPY(N,ZX,INCX,ZY,INCY)
2*     .. Scalar Arguments ..
3      INTEGER INCX,INCY,N
4*     ..
5*     .. Array Arguments ..
6      DOUBLE COMPLEX ZX(*),ZY(*)
7*     ..
8*
9*  Purpose
10*  =======
11*
12*     copies a vector, x, to a vector, y.
13*     jack dongarra, linpack, 4/11/78.
14*     modified 12/3/93, array(1) declarations changed to array(*)
15*
16*
17*     .. Local Scalars ..
18      INTEGER I,IX,IY
19*     ..
20      IF (N.LE.0) RETURN
21      IF (INCX.EQ.1 .AND. INCY.EQ.1) GO TO 20
22*
23*        code for unequal increments or equal increments
24*          not equal to 1
25*
26      IX = 1
27      IY = 1
28      IF (INCX.LT.0) IX = (-N+1)*INCX + 1
29      IF (INCY.LT.0) IY = (-N+1)*INCY + 1
30      DO 10 I = 1,N
31          ZY(IY) = ZX(IX)
32          IX = IX + INCX
33          IY = IY + INCY
34   10 CONTINUE
35      RETURN
36*
37*        code for both increments equal to 1
38*
39   20 DO 30 I = 1,N
40          ZY(I) = ZX(I)
41   30 CONTINUE
42      RETURN
43      END
Note: See TracBrowser for help on using the repository browser.