Neal Becker
2010-09-14 15:45:58 UTC
diff --git a/src/wrapper/converters.cpp b/src/wrapper/converters.cpp
index 2d760f5..eea9d2a 100644
--- a/src/wrapper/converters.cpp
+++ b/src/wrapper/converters.cpp
@@ -471,6 +471,10 @@ void pyublas_expose_converters()
expose_converters<npy_double>();
expose_converters<std::complex<float> >();
expose_converters<std::complex<double> >();
+#if HAVE_LONG_DOUBLE // defined in pyconfig.h
+ expose_converters<npy_longdouble>();
+ expose_converters<std::complex<long double> >();
+#endif
py::def("set_trace", set_trace);
}
index 2d760f5..eea9d2a 100644
--- a/src/wrapper/converters.cpp
+++ b/src/wrapper/converters.cpp
@@ -471,6 +471,10 @@ void pyublas_expose_converters()
expose_converters<npy_double>();
expose_converters<std::complex<float> >();
expose_converters<std::complex<double> >();
+#if HAVE_LONG_DOUBLE // defined in pyconfig.h
+ expose_converters<npy_longdouble>();
+ expose_converters<std::complex<long double> >();
+#endif
py::def("set_trace", set_trace);
}