From 2bd6cb8619f579f1685931659a38df5f676b140d Mon Sep 17 00:00:00 2001
From: Your Name <stephan.seitz@fau.de>
Date: Wed, 28 Aug 2019 10:41:03 +0200
Subject: [PATCH] Add numpy_to_c mapping for complex types

---
 pystencils/data_types.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pystencils/data_types.py b/pystencils/data_types.py
index 3880edbc..a0c6efc2 100644
--- a/pystencils/data_types.py
+++ b/pystencils/data_types.py
@@ -493,6 +493,10 @@ class BasicType(Type):
             return 'double'
         elif name == 'float32':
             return 'float'
+        elif name == 'complex64':
+            return 'std::complex<float>'
+        elif name == 'complex128':
+            return 'std::complex<double>'
         elif name.startswith('int'):
             width = int(name[len("int"):])
             return "int%d_t" % (width,)
-- 
GitLab