forked from jan/opencl_fdfd
add half-precision to type_to_C
This commit is contained in:
parent
b8ea859106
commit
c42ce49983
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user