Discussion:
[Pyublas] revised patch to enable longdouble, std::complex<long double>
Neal Becker
2010-09-14 15:45:58 UTC
Permalink
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);
}
Andreas Kloeckner
2010-09-14 17:17:58 UTC
Permalink
Applied, thanks.

Andreas

-------------- next part --------------
Post by Neal Becker
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);
}
_______________________________________________
Pyublas mailing list
Pyublas at tiker.net
http://lists.tiker.net/listinfo/pyublas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyublas/attachments/20100914/f4b3e53e/attachment.pgp>
Loading...