when I compile some code containing this snippet: (np = numpy)

COMPLEX = np.complex128
ctypedef np.complex128_t COMPLEX_T

class Riemann_Map():
    def __init__(self,fs,fprimes,a1,N,int ncorners = 4,opp = False):
        cdef COMPLEX_T a = np.complex128(a1)

I get these errors (among others):
c:1316: error: incompatible types in assignment
and
c:1316: error: previous implicit declaration of
‘__pyx_PyObject_As___pyx_t_double_complex’ was here

where c:1316 is the line corresponding to, cdef COMPLEX_T a ...

I am compiling this using Cython 0.11.2.beta in the sage -b environment.

What am I doing wrong?

Thanks for any help you can give,

Ethan Van Andel
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to