We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cfdfd commit bff0ab5Copy full SHA for bff0ab5
arrayfire/util.py
@@ -59,7 +59,9 @@ def get_version():
59
'i' : s32,
60
'I' : u32,
61
'l' : s64,
62
- 'L' : u64}
+ 'L' : u64,
63
+ 'F' : c32,
64
+ 'D' : c64}
65
66
to_typecode = {f32.value : 'f',
67
f64.value : 'd',
@@ -68,7 +70,9 @@ def get_version():
68
70
s32.value : 'i',
69
71
u32.value : 'I',
72
s64.value : 'l',
- u64.value : 'L'}
73
+ u64.value : 'L',
74
+ c32.value : 'F',
75
+ c64.value : 'D'}
76
77
to_c_type = {f32.value : ct.c_float,
78
f64.value : ct.c_double,
@@ -77,4 +81,6 @@ def get_version():
81
s32.value : ct.c_int,
82
u32.value : ct.c_uint,
79
83
s64.value : ct.c_longlong,
80
- u64.value : ct.c_ulonglong}
84
+ u64.value : ct.c_ulonglong,
85
+ c32.value : ct.c_float * 2,
86
+ c64.value : ct.c_double * 2}
0 commit comments