Try to debug error

This commit is contained in:
Guilhem Lavaux 2014-06-13 17:38:49 +02:00
parent 00f4f0a00a
commit 60a477a4c0
2 changed files with 45 additions and 42 deletions

22
python/copy.pxd Normal file
View file

@ -0,0 +1,22 @@
cimport cython
cimport numpy as npx
ctypedef fused sum_type:
cython.int
cython.float
npx.uint64_t
npx.uint32_t
@cython.boundscheck(False)
cdef inline sum_type _mysum(sum_type[:] jobs) nogil:
cdef sum_type s
cdef npx.uint64_t N
cdef int i
s = 0
N = jobs.shape[0]
for i in xrange(N):
s += jobs[i]
return s