Re: [Numpy-discussion] Fwd: numpy.i and std::complex

2014-12-14 Thread Tom Krauss
Also see https://code.google.com/p/upfirdn/source/browse/upfirdn/Resampler.i On Sun, Dec 14, 2014 at 12:52 PM, Tom Krauss wrote: > > I know this is a month old at this point, but I wanted to state that I use > std::complex with swig all the time and it works great. I have very > similar code i

Re: [Numpy-discussion] Fwd: numpy.i and std::complex

2014-12-14 Thread Tom Krauss
I know this is a month old at this point, but I wanted to state that I use std::complex with swig all the time and it works great. I have very similar code in each of my project's ".i" files, so I am happy to see you are adding support to numpy.i. E.g. %numpy_typemaps(std::complex, NPY_CDOUBLE, in

Re: [Numpy-discussion] Fwd: numpy.i and std::complex

2014-11-14 Thread Glen Mabey
Hello, Ok, here's my attempt -- https://github.com/gmabey/numpy/compare/swig-std-complex Glen On Oct 27, 2014, at 11:13 AM, Bill Spotz wrote: > Supporting std::complex<> was just low enough priority for me that I decided > to wait until someone expressed interest ... and now, many years lat

[Numpy-discussion] Fwd: numpy.i and std::complex

2014-10-27 Thread Glen Mabey
Hello, I was very excited to learn about numpy.i for easy numpy+swigification of C code -- it's really handy. Knowing that swig wraps C code, I wasn't too surprised that there was the issue with complex data types (as described at http://docs.scipy.org/doc/numpy/reference/swig.interface-file.h