Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2789 added Finbarr O'Sullivan smoothing spline code

File size: 807 bytes
Line 
1      SUBROUTINE ZSCAL(N,ZA,ZX,INCX)
2*     .. Scalar Arguments ..
3      DOUBLE COMPLEX ZA
4      INTEGER INCX,N
5*     ..
6*     .. Array Arguments ..
7      DOUBLE COMPLEX ZX(*)
8*     ..
9*
10*  Purpose
11*  =======
12*
13*     scales a vector by a constant.
14*     jack dongarra, 3/11/78.
15*     modified 3/93 to return if incx .le. 0.
16*     modified 12/3/93, array(1) declarations changed to array(*)
17*
18*
19*     .. Local Scalars ..
20      INTEGER I,IX
21*     ..
22      IF (N.LE.0 .OR. INCX.LE.0) RETURN
23      IF (INCX.EQ.1) GO TO 20
24*
25*        code for increment not equal to 1
26*
27      IX = 1
28      DO 10 I = 1,N
29          ZX(IX) = ZA*ZX(IX)
30          IX = IX + INCX
31   10 CONTINUE
32      RETURN
33*
34*        code for increment equal to 1
35*
36   20 DO 30 I = 1,N
37          ZX(I) = ZA*ZX(I)
38   30 CONTINUE
39      RETURN
40      END
Note: See TracBrowser for help on using the repository browser.