add half-precision to type_to_C

master
jan 1 year ago
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…
Cancel
Save