Scales a vector by a constant.
SUBROUTINE SSCAL(N,A,X,INCX)
INTEGER INCX, N
REAL A
REAL X(*)
SUBROUTINE DSCAL(N,A,X,INCX) INTEGER INCX,N DOUBLE PRECISION A DOUBLE PRECISION X(*)
SUBROUTINE CSSCAL(N,A,X,INCX) INTEGER INCX,N REAL A COMPLEX X(*)
SUBROUTINE CSCAL INTEGER INCX,N COMPLEX A COMPLEX X(*)
SUBROUTINE ZDSCAL INTEGER INCX,N DOUBLE PRECISION A COMPLEX*16 X(*)
SUBROUTINE ZSCAL( INTEGER INCX,N COMPLEX*16 A COMPLEX*16 X(*)
The SSCAL, DSCAL, CSSCAL, CSCAL, ZDSCAL, or ZSCAL subroutine scales a vector by a constant:
X := X * A
For values of N <= 0, the subroutines return immediately.