Hi,
Is there a way to generate simple C code from complex numbers with
cython. For example, something like
cdef complex foo(complex a, complex b):
return a - b
which would become in C:
complex foo(complex a, complex b)
{
return a - b;
}
And ideally, an easy way to handle complex/imaginary as members
(a.imag, etc...); assuming the C compiler supports complex.h, of
course.
David
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev