Visible to Intel only — GUID: GUID-748A576A-55D8-47FF-B947-F4D68BAAE434
Visible to Intel only — GUID: GUID-748A576A-55D8-47FF-B947-F4D68BAAE434
?scal
Computes the product of a vector by a scalar.
call sscal(n, a, x, incx)
call dscal(n, a, x, incx)
call cscal(n, a, x, incx)
call zscal(n, a, x, incx)
call csscal(n, a, x, incx)
call zdscal(n, a, x, incx)
call scal(x, a)
- mkl.fi, blas.f90
The ?scal routines perform a vector operation defined as
x = a*x
where:
a is a scalar, x is an n-element vector.
- n
-
INTEGER. Specifies the number of elements in vector x.
- a
-
REAL for sscal and csscal
DOUBLE PRECISION for dscal and zdscal
COMPLEX for cscal
DOUBLE COMPLEX for zscal
Specifies the scalar a.
- x
-
REAL for sscal
DOUBLE PRECISION for dscal
COMPLEX for cscal and csscal
DOUBLE COMPLEX for zscal and zdscal
Array, size at least (1 + (n -1)*abs(incx)).
- incx
-
INTEGER. Specifies the increment for the elements of x.
- x
-
Updated vector x.
Routines in Fortran 95 interface have fewer arguments in the calling sequence than their FORTRAN 77 counterparts. For general conventions applied to skip redundant or reconstructible arguments, see BLAS 95 Interface Conventions.
Specific details for the routine scal interface are the following:
- x
-
Holds the vector with the number of elements n.