Dag Sverre Seljebotn wrote: [...] > >> Now the hard part. I really need complex, and I really need c++. But, >> IIRC >> gcc-4.4.1 will not allow c99 complex in c++ mode. Not sure what to do >> about that. > > If you do not need to pass complex numbers back and forth between Cython > code and C, just make sure that "complex.h" is never included through > your header files (which would be disallowed by the compiler anyways), > and C99 complex will not be used.
Mostly what I want to do is wrap c++ code with cython. Inputs/outputs on python/cython side are numpy complex arrays. I have a simple wrapper to allow numpy array to be passed to c++ algorithms expecting generic array inputs. Normally c++ algorithms are written with a generic interface using boost::range. I can adapt numpy array to boost::range. _______________________________________________ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev