Support complex numbers
+ 12
− 8
@@ -4,14 +4,14 @@ from functools import partial
@@ -432,7 +432,9 @@ def peel_off_type(dtype, type_to_peel_off):
@@ -443,14 +445,14 @@ def collate_types(types,
@@ -549,7 +551,9 @@ def get_type_of_expression(expr,
Only down side in the moment is that complex<double>
and complex<float>
must never be mixed in a kernel (real scalars of the other type are mostly ok due to manually implemented templates).
Should work on CPU and GPU.
Another thing that this PR changes is that also the headers
attribute of SymPy Expression is checked to determine necessary headers.