#ifndef SWIG_STD_COMPLEX_I_ #define SWIG_STD_COMPLEX_I_ %include "complex_common.i" %{ #include %} /* defining the complex as/from converters */ %swig_cplxdbl_conv(std::complex, StdCplxDbl, std::complex, std::real, std::imag) %swig_cplxflt_conv(std::complex, StdCplxFlt, std::complex, std::real, std::imag) /* declaring the typemaps */ %typemap_stype(std::complex, CPLXDBL, StdCplxDbl); %typemap_stype(std::complex, CPLXFLT, StdCplxFlt); #endif //SWIG_STD_COMPLEX_I_