js8call/lib/graycode.f90
2018-02-08 21:28:33 -05:00

10 lines
139 B
Fortran

subroutine graycode(ia,n,idir,ib)
integer ia(n),ib(n)
do i=1,n
ib(i)=igray(ia(i),idir)
enddo
return
end subroutine graycode