DSWAP interchanges two vectors. uses unrolled loops for increments equal to 1.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ip) | :: | n | ||||
| real(kind=wp) | :: | dx(*) | ||||
| integer(kind=ip) | :: | incx | ||||
| real(kind=wp) | :: | dy(*) | ||||
| integer(kind=ip) | :: | incy |
subroutine dswap(n, dx, incx, dy, incy) import implicit none integer(ip) :: incx, incy, n real(wp) :: dx(*), dy(*) end subroutine dswap