Intel® oneAPI Math Kernel Library Developer Reference - Fortran
Multiplies a vector by the reciprocal of a real scalar.
call srscl( n, sa, sx, incx )
call drscl( n, sa, sx, incx )
call csrscl( n, sa, sx, incx )
call zdrscl( n, sa, sx, incx )
The routine ?rscl multiplies an n-element real/complex vector x by the real scalar 1/a. This is done without overflow or underflow as long as the final result x/a does not overflow or underflow.
INTEGER. The number of components of the vector x.
REAL for srscl/csrscl
DOUBLE PRECISION for drscl/zdrscl.
The scalar a which is used to divide each component of the vector x. sa must be ≥ 0, or the subroutine will divide by zero.
REAL for srscl
DOUBLE PRECISION for drscl
COMPLEX for csrscl
DOUBLE COMPLEX for zdrscl.
Array, DIMENSION(1+(n-1)*|incx|).
The n-element vector x.
INTEGER. The increment between successive values of the vector sx.
If incx > 0, sx(1)=x(1), and sx(1+(i-1)*incx)=x(i), 1<i≤n.
On exit, the result x/a.