summaryrefslogtreecommitdiffstats
path: root/contrib/python/pythran/pythran/pythonic/include/numpy/complex64.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/pythran/pythran/pythonic/include/numpy/complex64.hpp')
-rw-r--r--contrib/python/pythran/pythran/pythonic/include/numpy/complex64.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/python/pythran/pythran/pythonic/include/numpy/complex64.hpp b/contrib/python/pythran/pythran/pythonic/include/numpy/complex64.hpp
index f09026f40d7..a4f46f2f6da 100644
--- a/contrib/python/pythran/pythran/pythonic/include/numpy/complex64.hpp
+++ b/contrib/python/pythran/pythran/pythonic/include/numpy/complex64.hpp
@@ -26,5 +26,23 @@ namespace numpy
#include "pythonic/include/types/numpy_nary_expr.hpp"
} // namespace numpy
PYTHONIC_NS_END
+#ifdef ENABLE_PYTHON_MODULE
+
+#include "pythonic/python/core.hpp"
+
+PYTHONIC_NS_BEGIN
+
+template <>
+struct to_python<numpy::functor::complex64> {
+ static PyObject *convert(numpy::functor::complex64 const &c);
+};
+
+template <>
+struct from_python<numpy::functor::complex64> {
+ static bool is_convertible(PyObject *obj);
+ static numpy::functor::complex64 convert(PyObject *obj);
+};
+PYTHONIC_NS_END
+#endif
#endif