Scales a vector by a constant.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ip), | intent(in) | :: | n |
the number of entries in the vector. |
||
real(kind=wp), | intent(in) | :: | sa |
the multiplier. |
||
real(kind=wp), | intent(inout) | :: | x(*) |
the vector to be scaled. |
||
integer(kind=ip), | intent(in) | :: | incx |
the increment between successive entries of X. |
subroutine dscal (n,sa,x,incx) implicit none integer, intent(in) :: n,incx double precision, intent(in) :: sa double precision, intent(inout) :: x(*) end subroutine dscal