File tree Expand file tree Collapse file tree 1 file changed +124
-0
lines changed Expand file tree Collapse file tree 1 file changed +124
-0
lines changed Original file line number Diff line number Diff line change 77# http://arrayfire.com/licenses/BSD-3-Clause
88########################################################
99
10+ """
11+ module containing enums and other constants from arrayfire library
12+ """
13+
1014import platform
1115import ctypes as ct
1216from enum import Enum
@@ -73,6 +77,10 @@ def lock(self):
7377
7478
7579class ERR (Enum ):
80+ """
81+ Error values. For internal use only.
82+ """
83+
7684 NONE = (0 )
7785
7886 #100-199 Errors in environment
@@ -101,6 +109,9 @@ class ERR(Enum):
101109 UNKNOWN = (999 )
102110
103111class Dtype (Enum ):
112+ """
113+ Error values. For internal use only.
114+ """
104115 f32 = (0 )
105116 c32 = (1 )
106117 f64 = (2 )
@@ -113,62 +124,172 @@ class Dtype(Enum):
113124 u64 = (9 )
114125
115126class Source (Enum ):
127+ """
128+ Source of the pointer
129+ """
116130 device = (0 )
117131 host = (1 )
118132
119133class INTERP (Enum ):
134+ """
135+ Interpolation method
136+ """
120137 NEAREST = (0 )
121138 LINEAR = (1 )
122139 BILINEAR = (2 )
123140 CUBIC = (3 )
124141
125142class PAD (Enum ):
143+ """
144+ Edge padding types
145+ """
126146 ZERO = (0 )
127147 SYM = (1 )
128148
129149class CONNECTIVITY (Enum ):
150+ """
151+ Neighborhood connectivity
152+ """
130153 FOUR = (4 )
131154 EIGHT = (8 )
132155
133156class CONV_MODE (Enum ):
157+ """
158+ Convolution mode
159+ """
134160 DEFAULT = (0 )
135161 EXPAND = (1 )
136162
137163class CONV_DOMAIN (Enum ):
164+ """
165+ Convolution domain
166+ """
138167 AUTO = (0 )
139168 SPATIAL = (1 )
140169 FREQ = (2 )
141170
142171class MATCH (Enum ):
172+ """
173+ Match type
174+ """
175+
176+ """
177+ Sum of absolute differences
178+ """
143179 SAD = (0 )
180+
181+ """
182+ Zero mean SAD
183+ """
144184 ZSAD = (1 )
185+
186+ """
187+ Locally scaled SAD
188+ """
145189 LSAD = (2 )
190+
191+ """
192+ Sum of squared differences
193+ """
146194 SSD = (3 )
195+
196+ """
197+ Zero mean SSD
198+ """
147199 ZSSD = (4 )
200+
201+ """
202+ Locally scaled SSD
203+ """
148204 LSSD = (5 )
205+
206+ """
207+ Normalized cross correlation
208+ """
149209 NCC = (6 )
210+
211+ """
212+ Zero mean NCC
213+ """
150214 ZNCC = (7 )
215+
216+ """
217+ Sum of hamming distances
218+ """
151219 SHD = (8 )
152220
153221class CSPACE (Enum ):
222+ """
223+ Colorspace formats
224+ """
154225 GRAY = (0 )
155226 RGB = (1 )
156227 HSV = (2 )
157228
158229class MATPROP (Enum ):
230+ """
231+ Matrix properties
232+ """
233+
234+ """
235+ None, general.
236+ """
159237 NONE = (0 )
238+
239+ """
240+ Transposed.
241+ """
160242 TRANS = (1 )
243+
244+ """
245+ Conjugate transposed.
246+ """
161247 CTRANS = (2 )
248+
249+ """
250+ Upper triangular matrix.
251+ """
162252 UPPER = (32 )
253+
254+ """
255+ Lower triangular matrix.
256+ """
163257 LOWER = (64 )
258+
259+ """
260+ Treat diagonal as units.
261+ """
164262 DIAG_UNIT = (128 )
263+
264+ """
265+ Symmetric matrix.
266+ """
165267 SYM = (512 )
268+
269+ """
270+ Positive definite matrix.
271+ """
166272 POSDEF = (1024 )
273+
274+ """
275+ Orthogonal matrix.
276+ """
167277 ORTHOG = (2048 )
278+
279+ """
280+ Tri diagonal matrix.
281+ """
168282 TRI_DIAG = (4096 )
283+
284+ """
285+ Block diagonal matrix.
286+ """
169287 BLOCK_DIAG = (8192 )
170288
171289class NORM (Enum ):
290+ """
291+ Norm types
292+ """
172293 VECTOR_1 = (0 )
173294 VECTOR_INF = (1 )
174295 VECTOR_2 = (2 )
@@ -180,6 +301,9 @@ class NORM(Enum):
180301 EUCLID = VECTOR_2
181302
182303class COLORMAP (Enum ):
304+ """
305+ Colormaps
306+ """
183307 DEFAULT = (0 )
184308 SPECTRUM = (1 )
185309 COLORS = (2 )
You can’t perform that action at this time.
0 commit comments