Re: [Numpy-discussion] Fwd: numpy.i and std::complex
![](https://secure.gravatar.com/avatar/2911b931255971a40b9308b41754d22d.jpg?s=120&d=mm&r=g)
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 <wfspotz@sandia.gov> wrote:
![](https://secure.gravatar.com/avatar/034c45818b28060dd0fce40e84781fa7.jpg?s=120&d=mm&r=g)
I know this is a month old at this point, but I wanted to state that I use std::complex<double> 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<double>, NPY_CDOUBLE, int) On Fri, Nov 14, 2014 at 1:06 PM, Glen Mabey <gmabey@swri.org> wrote:
![](https://secure.gravatar.com/avatar/034c45818b28060dd0fce40e84781fa7.jpg?s=120&d=mm&r=g)
Also see https://code.google.com/p/upfirdn/source/browse/upfirdn/Resampler.i On Sun, Dec 14, 2014 at 12:52 PM, Tom Krauss <thomas.p.krauss@gmail.com> wrote:
![](https://secure.gravatar.com/avatar/034c45818b28060dd0fce40e84781fa7.jpg?s=120&d=mm&r=g)
I know this is a month old at this point, but I wanted to state that I use std::complex<double> 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<double>, NPY_CDOUBLE, int) On Fri, Nov 14, 2014 at 1:06 PM, Glen Mabey <gmabey@swri.org> wrote:
![](https://secure.gravatar.com/avatar/034c45818b28060dd0fce40e84781fa7.jpg?s=120&d=mm&r=g)
Also see https://code.google.com/p/upfirdn/source/browse/upfirdn/Resampler.i On Sun, Dec 14, 2014 at 12:52 PM, Tom Krauss <thomas.p.krauss@gmail.com> wrote:
participants (2)
-
Glen Mabey
-
Tom Krauss