01:       SUBROUTINE CSCAL(N,CA,CX,INCX)
02: *     .. Scalar Arguments ..
03:       COMPLEX CA
04:       INTEGER INCX,N
05: *     ..
06: *     .. Array Arguments ..
07:       COMPLEX CX(*)
08: *     ..
09: *
10: *  Purpose
11: *  =======
12: *
13: *     CSCAL scales a vector by a constant.
14: *
15: *  Further Details
16: *  ===============
17: *
18: *     jack dongarra, linpack,  3/11/78.
19: *     modified 3/93 to return if incx .le. 0.
20: *     modified 12/3/93, array(1) declarations changed to array(*)
21: *
22: *  =====================================================================
23: *
24: *     .. Local Scalars ..
25:       INTEGER I,NINCX
26: *     ..
27:       IF (N.LE.0 .OR. INCX.LE.0) RETURN
28:       IF (INCX.EQ.1) GO TO 20
29: *
30: *        code for increment not equal to 1
31: *
32:       NINCX = N*INCX
33:       DO 10 I = 1,NINCX,INCX
34:           CX(I) = CA*CX(I)
35:    10 CONTINUE
36:       RETURN
37: *
38: *        code for increment equal to 1
39: *
40:    20 DO 30 I = 1,N
41:           CX(I) = CA*CX(I)
42:    30 CONTINUE
43:       RETURN
44:       END
45: