File tree Expand file tree Collapse file tree 3 files changed +233
-0
lines changed Expand file tree Collapse file tree 3 files changed +233
-0
lines changed Original file line number Diff line number Diff line change 11require (' arrayfire.lib' )
2+ require (' arrayfire.defines' )
23require (' arrayfire.util' )
34require (' arrayfire.array' )
45require (' arrayfire.device' )
Original file line number Diff line number Diff line change 1+ require (' arrayfire.lib' )
2+
3+ af .err = {
4+ none = 0 ,
5+
6+ no_mem = 101 ,
7+ driver = 102 ,
8+ runtime = 103 ,
9+
10+ invalid_array = 201 ,
11+ arg = 202 ,
12+ size = 203 ,
13+ type = 204 ,
14+ diff_type = 205 ,
15+ batch = 207 ,
16+ device = 208 ,
17+
18+ not_supported = 301 ,
19+ not_configured = 302 ,
20+ nonfree = 303 ,
21+
22+ no_dbl = 401 ,
23+ no_gfx = 402 ,
24+
25+ load_lib = 501 ,
26+ load_sym = 502 ,
27+ arr_bknd_mismatch = 503 ,
28+
29+ internal = 998 ,
30+ unknown = 999
31+ }
32+
33+ af .dtype = {
34+ f32 = 0 ,
35+ c32 = 1 ,
36+ f64 = 2 ,
37+ c64 = 3 ,
38+ b8 = 4 ,
39+ s32 = 5 ,
40+ u32 = 6 ,
41+ u8 = 7 ,
42+ s64 = 8 ,
43+ u64 = 9 ,
44+ s16 = 10 ,
45+ u16 = 11
46+ }
47+
48+ af .source = {
49+ device = 0 ,
50+ host = 1 ,
51+ }
52+
53+ af .interp_type = {
54+ nearest = 0 ,
55+ linear = 1 ,
56+ bilinear = 2 ,
57+ cubic = 3 ,
58+ lower = 4 ,
59+ linear_cosine = 5 ,
60+ bilinear_cosine = 6 ,
61+ bicubic = 7 ,
62+ cubic_spline = 8 ,
63+ bicubic_spline = 9 ,
64+ }
65+
66+ af .border_type = {
67+ zero = 0 ,
68+ symmetric = 1
69+ }
70+
71+ af .connectivity = {}
72+ af .connectivity [4 ] = 4
73+ af .connectivity [8 ] = 8
74+
75+ af .conv_mode = {
76+ default = 0 ,
77+ expand = 1
78+ }
79+
80+ af .conv_domain = {
81+ auto = 0 ,
82+ spatial = 1 ,
83+ frequency = 2 ,
84+ }
85+
86+ af .match_type = {
87+ sad = 0 ,
88+ zsad = 1 ,
89+ lsad = 2 ,
90+ ssd = 3 ,
91+ zssd = 4 ,
92+ lssd = 5 ,
93+ ncc = 6 ,
94+ zncc = 7 ,
95+ shd = 8
96+ }
97+
98+ af .ycc_std = {}
99+ af .ycc_std [601 ] = 601
100+ af .ycc_std [709 ] = 709
101+ af .ycc_std [2020 ] = 2020
102+
103+ af .cspace = {
104+ gray = 0 ,
105+ rgb = 1 ,
106+ hsv = 2 ,
107+ ycbcr = 3
108+ }
109+
110+ af .mat_prop = {
111+ none = 0 ,
112+ trans = 1 ,
113+ ctrans = 2 ,
114+ conj = 4 ,
115+ upper = 32 ,
116+ lower = 64 ,
117+ diag_unit = 128 ,
118+ sym = 512 ,
119+ posdef = 1024 ,
120+ orthog = 2048 ,
121+ tri_diag = 4096 ,
122+ block_diag = 8192
123+ }
124+
125+ af .norm_type = {
126+ vector_1 = 0 ,
127+ vector_inf = 1 ,
128+ vector_2 = 2 ,
129+ vector_p = 3 ,
130+ matrix_1 = 4 ,
131+ matrix_inf = 5 ,
132+ matrix_2 = 6 ,
133+ matrix_l_pq = 7 ,
134+ euclid = 2
135+ }
136+
137+ af .image_format = {
138+ bmp = 0 ,
139+ ico = 1 ,
140+ jpeg = 2 ,
141+ jng = 3 ,
142+ png = 13 ,
143+ ppm = 14 ,
144+ ppmraw = 15 ,
145+ tiff = 18 ,
146+ psd = 20 ,
147+ hdr = 26 ,
148+ exr = 29 ,
149+ jp2 = 31 ,
150+ raw = 34
151+ }
152+
153+ af .moment_type = {
154+ m00 = 1 ,
155+ m01 = 2 ,
156+ m10 = 4 ,
157+ m11 = 8 ,
158+ first_order = 15
159+ }
160+
161+ af .homography_type = {
162+ ransac = 0 ,
163+ lmeds = 1
164+ }
165+
166+ af .backend = {
167+ default = 0 ,
168+ cpu = 1 ,
169+ cuda = 2 ,
170+ opencl = 4 ,
171+ }
172+
173+ af .binary_op = {
174+ add = 0 ,
175+ mul = 1 ,
176+ min = 2 ,
177+ max = 3
178+ }
179+
180+ af .random_engine_type = {
181+ philox_4x32_10 = 100 ,
182+ threefry_2x32_16 = 200 ,
183+ mersenne_gp11213 = 300 ,
184+ }
185+ af .random_engine_type .philox = af .random_engine_type .philox_4x32_10
186+ af .random_engine_type .threefry = af .random_engine_type .threefry_2x32_16
187+ af .random_engine_type .mersenne = af .random_engine_type .mersenne_gp11213
188+ af .random_engine_type .default = af .random_engine_type .philox
189+
190+ af .colormap = {
191+ default = 0 ,
192+ spectrum = 1 ,
193+ colors = 2 ,
194+ red = 3 ,
195+ mood = 4 ,
196+ heat = 5 ,
197+ blue = 6
198+ }
199+
200+ af .marker_type = {
201+ none = 0 ,
202+ point = 1 ,
203+ circle = 2 ,
204+ square = 3 ,
205+ triangle = 4 ,
206+ cross = 5 ,
207+ plus = 6 ,
208+ star = 7
209+ }
210+
211+ af .storage = {
212+ dense = 0 ,
213+ csr = 1 ,
214+ csc = 2 ,
215+ coo = 3 ,
216+ }
217+
218+ af .dtype_names = {
219+ ' float' ,
220+ ' af_cfloat' ,
221+ ' double' ,
222+ ' af_cdouble' ,
223+ ' char' ,
224+ ' int' ,
225+ ' unsigned int' ,
226+ ' unsigned char' ,
227+ ' unsigned long long' ,
228+ ' long long' ,
229+ ' short' ,
230+ ' unsigned shhort'
231+ }
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ build = {
2020 [" arrayfire.lib" ] = " arrayfire/lib.lua" ,
2121 [" arrayfire.util" ] = " arrayfire/util.lua" ,
2222 [" arrayfire.array" ] = " arrayfire/array.lua" ,
23+ [" arrayfire.defines" ] = " arrayfire/defines.lua" ,
2324 [" arrayfire.device" ] = " arrayfire/device.lua" ,
2425 },
2526}
You can’t perform that action at this time.
0 commit comments