diff --git a/opencl_fdfd/ops.py b/opencl_fdfd/ops.py index 32f2400..b0e4108 100644 --- a/opencl_fdfd/ops.py +++ b/opencl_fdfd/ops.py @@ -42,6 +42,7 @@ def type_to_C( string containing the corresponding C type (eg. 'double') """ types = { + numpy.float16: 'half', numpy.float32: 'float', numpy.float64: 'double', numpy.complex64: 'cfloat_t',