Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer | :: | l | ||||
integer | :: | n | ||||
integer | :: | k |
subroutine ishift(l,n,k)
implicit double precision (a-h,o-z)
dimension l(*)
if (k>0) then
do i=1,n
l(i)=l(i+k)
end do
else if (k<0) then
do i=n,1,-1
l(i)=l(i+k)
end do
end if
end subroutine ishift