Vic Kelson wrote: > Hello all, > > A few months ago, I got some code working (with the help of a poster > here -- thanks!) that used the gcc double complex type. Recently, I > recall a discussion on here that suggested that a simpler built-in > syntax is now in place for using 'cdef' complex types in C functions > and methods. Is that true?
Yep. cdef double complex z = 3 + 1.3j print z.imag # -1.3 If you include any C header files which uses the gcc (that is, C99) complex type, then this will automatically use C99 complex. Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
