Add some basic letsimp tests based on bug #3950
[maxima.git] / share / lapack / blas / fortran / zscal.f
blob6fa857639248a5a06b87a00c9679dca837a98391
1 subroutine zscal(n,za,zx,incx)
3 c scales a vector by a constant.
4 c jack dongarra, 3/11/78.
5 c modified 3/93 to return if incx .le. 0.
6 c modified 12/3/93, array(1) declarations changed to array(*)
8 double complex za,zx(*)
9 integer i,incx,ix,n
11 if( n.le.0 .or. incx.le.0 )return
12 if(incx.eq.1)go to 20
14 c code for increment not equal to 1
16 ix = 1
17 do 10 i = 1,n
18 zx(ix) = za*zx(ix)
19 ix = ix + incx
20 10 continue
21 return
23 c code for increment equal to 1
25 20 do 30 i = 1,n
26 zx(i) = za*zx(i)
27 30 continue
28 return
29 end