forked from jan/opencl_fdfd
add half-precision to type_to_C
This commit is contained in:
parent
b8ea859106
commit
c42ce49983
1 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ def type_to_C(
|
||||||
string containing the corresponding C type (eg. 'double')
|
string containing the corresponding C type (eg. 'double')
|
||||||
"""
|
"""
|
||||||
types = {
|
types = {
|
||||||
|
numpy.float16: 'half',
|
||||||
numpy.float32: 'float',
|
numpy.float32: 'float',
|
||||||
numpy.float64: 'double',
|
numpy.float64: 'double',
|
||||||
numpy.complex64: 'cfloat_t',
|
numpy.complex64: 'cfloat_t',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue