Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer | :: | n | ||||
doubleprecision | :: | s | ||||
doubleprecision | :: | xr(*) | ||||
doubleprecision | :: | xi(*) | ||||
integer | :: | incx |
subroutine mat_wrscal(n,s,xr,xi,incx) integer :: n doubleprecision :: s doubleprecision :: xr(*) doubleprecision :: xi(*) integer :: incx integer :: ix integer :: i if (n .le. 0) return ix = 1 do i = 1, n xr(ix) = mat_flop(s*xr(ix)) if (xi(ix) .ne. 0.0d0) xi(ix) = mat_flop(s*xi(ix)) ix = ix + incx enddo end subroutine mat_wrscal