Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 8fa1e4296360f3be1a3b549c79f675b4 > files > 1004

numpy-1.4.1-6.fc14.x86_64.rpm

      subroutine calculate(x,n)
cf2py intent(callback) func
      external func
c     The following lines define the signature of func for F2PY:
cf2py real*8 y
cf2py y = func(y)
c
cf2py intent(in,out,copy) x
      integer n,i
      real*8 x(n)
      do i=1,n
         x(i) = func(x(i))
      end do
      end