scal(3F)
SSCAL, DSCAL, CSSCAL, ZDSCAL, CSCAL, ZSCAL - Scales a real or complex vector
As shipped in IRIX 6.5.7. Last changed in IRIX 6.5.5.
NAME SSCAL, DSCAL, CSSCAL, ZDSCAL, CSCAL, ZSCAL - Scales a real or complex vector SYNOPSIS Real CALL SSCAL (n, alpha, x, incx) Double precision CALL DSCAL (n, alpha, x, incx) Complex CALL CSSCAL (n, alpha, x, incx) CALL CSCAL (n, alpha, x, incx) Double complex CALL ZDSCAL (n, alpha, x, incx) CALL ZSCAL (n, alpha, x, incx) IMPLEMENTATION IRIX systems DESCRIPTION SSCAL/DSCAL scales a real vector with a real scalar. CSSCAL/ZDSCAL scales a complex vector with a real scalar. CSCAL/ZSCAL scales a complex vector with a complex scalar. These routines perform the following vector operation: x <- alpha x where alpha is a real or complex scalar, and x is a real or complex vector. These routines have the following arguments: n Integer. (input) Number of elements in the vector. If n <= 0, these routines return without any computation. alpha Scalar alpha. (input) SSCAL, CSSCAL: Real. DSCAL, ZDSCAL: Double precision. CSCAL: Complex. ZSCAL: Double complex. x Array of dimension (n-1) * |incx| + 1. (input and output) SSCAL: Real array. DSCAL: Double precision array. CSSCAL, CSCAL: Complex array. ZDSCAL, ZSCAL: Double complex array. Vector to be scaled. incx Integer. (input) Increment between elements of x. If incx = 0, the results will be unpredictable. NOTES These routines are Level 1 Basic Linear Algebra Subprograms (Level 1 BLAS). When working backward (incx < 0), each routine starts at the end of the vector and moves backward, as follows: x(1-incx * (n-1)), x(1-incx * (n-2)), ..., x(1) SEE ALSO This man page is available only online.