logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rscl - rscl: scale vector by reciprocal

Author

Generated automatically by Doxygen for LAPACK from the source code. Version 3.12.0 Sun Jul 20 2025 01:40:05 rscl(3)

Detailed Description

Function Documentation

subroutinecsrscl(integern,realsa,complex,dimension(*)sx,integerincx)CSRSCL multiplies a vector by the reciprocal of a real scalar. Purpose: CSRSCL multiplies an n-element 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. ParametersN N is INTEGER The number of components of the vector x. SA SA is REAL The scalar a which is used to divide each component of x. SA must be >= 0, or the subroutine will divide by zero. SX SX is COMPLEX array, dimension (1+(N-1)*abs(INCX)) The n-element vector x. INCX INCX is INTEGER The increment between successive values of the vector SX. > 0: SX(1) = X(1) and SX(1+(i-1)*INCX) = x(i), 1< i<= n Author Univ. of Tennessee Univ. of California Berkeley Univ. of Colorado Denver NAG Ltd. subroutinedrscl(integern,doubleprecisionsa,doubleprecision,dimension(*)sx,integerincx)DRSCL multiplies a vector by the reciprocal of a real scalar. Purpose: DRSCL multiplies an n-element real 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. ParametersN N is INTEGER The number of components of the vector x. SA SA is DOUBLE PRECISION The scalar a which is used to divide each component of x. SA must be >= 0, or the subroutine will divide by zero. SX SX is DOUBLE PRECISION array, dimension (1+(N-1)*abs(INCX)) The n-element vector x. INCX INCX is INTEGER The increment between successive values of the vector SX. > 0: SX(1) = X(1) and SX(1+(i-1)*INCX) = x(i), 1< i<= n Author Univ. of Tennessee Univ. of California Berkeley Univ. of Colorado Denver NAG Ltd. subroutinesrscl(integern,realsa,real,dimension(*)sx,integerincx)SRSCL multiplies a vector by the reciprocal of a real scalar. Purpose: SRSCL multiplies an n-element real 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. ParametersN N is INTEGER The number of components of the vector x. SA SA is REAL The scalar a which is used to divide each component of x. SA must be >= 0, or the subroutine will divide by zero. SX SX is REAL array, dimension (1+(N-1)*abs(INCX)) The n-element vector x. INCX INCX is INTEGER The increment between successive values of the vector SX. > 0: SX(1) = X(1) and SX(1+(i-1)*INCX) = x(i), 1< i<= n Author Univ. of Tennessee Univ. of California Berkeley Univ. of Colorado Denver NAG Ltd. subroutinezdrscl(integern,doubleprecisionsa,complex*16,dimension(*)sx,integerincx)ZDRSCL multiplies a vector by the reciprocal of a real scalar. Purpose: ZDRSCL multiplies an n-element 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. ParametersN N is INTEGER The number of components of the vector x. SA SA is DOUBLE PRECISION The scalar a which is used to divide each component of x. SA must be >= 0, or the subroutine will divide by zero. SX SX is COMPLEX*16 array, dimension (1+(N-1)*abs(INCX)) The n-element vector x. INCX INCX is INTEGER The increment between successive values of the vector SX. > 0: SX(1) = X(1) and SX(1+(i-1)*INCX) = x(i), 1< i<= n Author Univ. of Tennessee Univ. of California Berkeley Univ. of Colorado Denver NAG Ltd.

Name

rscl - rscl: scale vector by reciprocal

Synopsis

Functions subroutine csrscl (n, sa, sx, incx) CSRSCL multiplies a vector by the reciprocal of a real scalar. subroutine drscl (n, sa, sx, incx) DRSCL multiplies a vector by the reciprocal of a real scalar. subroutine srscl (n, sa, sx, incx) SRSCL multiplies a vector by the reciprocal of a real scalar. subroutine zdrscl (n, sa, sx, incx) ZDRSCL multiplies a vector by the reciprocal of a real scalar.

See Also