From c42ce49983565592d1a4fd00a8f44e8d77a06d36 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 24 Nov 2022 22:33:10 -0800 Subject: [PATCH] add half-precision to type_to_C --- opencl_fdfd/ops.py | 1 + 1 file changed, 1 insertion(+) 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',