defines.h Source File

defines.h
Go to the documentation of this file.
1 /*******************************************************
2 * Copyright (c) 2014, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10 #pragma once
11
12 #if defined(_WIN32) || defined(_MSC_VER)
13 // http://msdn.microsoft.com/en-us/library/b0084kay(v=VS.80).aspx
14 // http://msdn.microsoft.com/en-us/library/3y1sfaz2%28v=VS.80%29.aspx
15 #ifdef AFDLL // libaf
16 #define AFAPI __declspec(dllexport)
17 #else
18 #define AFAPI __declspec(dllimport)
19 #endif
20
21 // bool
22 #ifndef __cplusplus
23 #define bool unsigned char
24 #define false 0
25 #define true 1
26 #endif
27 #define __PRETTY_FUNCTION__ __FUNCSIG__
28 #define SIZE_T_FRMT_SPECIFIER "%Iu"
29 #define DEPRECATED(msg) __declspec(deprecated( msg ))
30 #else
31 #define AFAPI __attribute__((visibility("default")))
32 #include <stdbool.h>
33 #define SIZE_T_FRMT_SPECIFIER "%zu"
34 #if __GNUC__ >= 4 && __GNUC_MINOR > 4
35 #define DEPRECATED(msg) __attribute__((deprecated( msg )))
36 #else
37 #define DEPRECATED(msg) __attribute__((deprecated))
38 #endif
39
40 #endif
41
42 // Known 64-bit x86 and ARM architectures use long long
43 #if defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) || defined(__aarch64__) || defined(__LP64__) // 64-bit Architectures
44 typedef long long dim_t;
45 // Known 32-bit x86 and ARM architectures use int
46 #elif defined(__i386__) || defined(_M_IX86) || defined(__arm__) || defined(_M_ARM) // 32-bit x86 Architecture
47 typedef int dim_t;
48 // All other platforms use long long
49 #else
50 typedef long long dim_t;
51 #endif
52
53 #include <stdlib.h>
54
55 typedef long long intl;
56 typedef unsigned long long uintl;
57
58 #include <af/version.h>
59 #ifndef AF_API_VERSION
60 #define AF_API_VERSION AF_API_VERSION_CURRENT
61 #endif
62
63 typedef enum {
67 AF_SUCCESS = 0,
68
69 // 100-199 Errors in environment
70
74 AF_ERR_NO_MEM = 101,
75
79 AF_ERR_DRIVER = 102,
80
84 AF_ERR_RUNTIME = 103,
85
86 // 200-299 Errors in input parameters
87
91 AF_ERR_INVALID_ARRAY = 201,
92
96 AF_ERR_ARG = 202,
97
101 AF_ERR_SIZE = 203,
102
106 AF_ERR_TYPE = 204,
107
111 AF_ERR_DIFF_TYPE = 205,
112
116 AF_ERR_BATCH = 207,
117
118
119 #if AF_API_VERSION >= 33
120 AF_ERR_DEVICE = 208,
124 #endif
125
126 // 300-399 Errors for missing software features
127
131 AF_ERR_NOT_SUPPORTED = 301,
132
136 AF_ERR_NOT_CONFIGURED = 302,
137
138 #if AF_API_VERSION >= 32
139 AF_ERR_NONFREE = 303,
143 #endif
144
145 // 400-499 Errors for missing hardware features
146
150 AF_ERR_NO_DBL = 401,
151
156 AF_ERR_NO_GFX = 402,
157
158 // 500-599 Errors specific to heterogenous API
159
160 #if AF_API_VERSION >= 32
161 AF_ERR_LOAD_LIB = 501,
165 #endif
166
167 #if AF_API_VERSION >= 32
168 AF_ERR_LOAD_SYM = 502,
172 #endif
173
174 #if AF_API_VERSION >= 32
175 AF_ERR_ARR_BKND_MISMATCH = 503,
179 #endif
180
181 // 900-999 Errors from upstream libraries and runtimes
182
187 AF_ERR_INTERNAL = 998,
188
192 AF_ERR_UNKNOWN = 999
193 } af_err;
194
195 typedef enum {
196 f32,
197 c32,
198 f64,
199 c64,
200 b8 ,
201 s32,
202 u32,
203 u8 ,
204 s64,
205 u64,
206 #if AF_API_VERSION >= 32
207 s16,
208 #endif
209 #if AF_API_VERSION >= 32
210 u16,
211 #endif
212 } af_dtype;
213
214 typedef enum {
215 afDevice,
216 afHost,
217 } af_source;
218
219 #define AF_MAX_DIMS 4
220
221 // A handle for an internal array object
222 typedef void * af_array;
223
224 typedef enum {
225 AF_INTERP_NEAREST,
226 AF_INTERP_LINEAR,
227 AF_INTERP_BILINEAR,
228 AF_INTERP_CUBIC,
229 AF_INTERP_LOWER,
230 #if AF_API_VERSION >= 34
231 AF_INTERP_LINEAR_COSINE,
232 #endif
233 #if AF_API_VERSION >= 34
234 AF_INTERP_BILINEAR_COSINE,
235 #endif
236 #if AF_API_VERSION >= 34
237 AF_INTERP_BICUBIC,
238 #endif
239 #if AF_API_VERSION >= 34
240 AF_INTERP_CUBIC_SPLINE,
241 #endif
242 #if AF_API_VERSION >= 34
243 AF_INTERP_BICUBIC_SPLINE,
244 #endif
245
246 } af_interp_type;
247
248 typedef enum {
252 AF_PAD_ZERO = 0,
253
257 AF_PAD_SYM
258 } af_border_type;
259
260 typedef enum {
264 AF_CONNECTIVITY_4 = 4,
265
269 AF_CONNECTIVITY_8 = 8
270 } af_connectivity;
271
272 typedef enum {
273
277 AF_CONV_DEFAULT,
278
282 AF_CONV_EXPAND,
283 } af_conv_mode;
284
285 typedef enum {
286 AF_CONV_AUTO,
287 AF_CONV_SPATIAL,
288 AF_CONV_FREQ,
289 } af_conv_domain;
290
291 typedef enum {
292 AF_SAD = 0,
293 AF_ZSAD,
294 AF_LSAD,
295 AF_SSD,
296 AF_ZSSD,
297 AF_LSSD,
298 AF_NCC,
299 AF_ZNCC,
300 AF_SHD
301 } af_match_type;
302
303 #if AF_API_VERSION >= 31
304 typedef enum {
305 AF_YCC_601 = 601,
306 AF_YCC_709 = 709,
307 AF_YCC_2020 = 2020
308 } af_ycc_std;
309 #endif
310
311 typedef enum {
312 AF_GRAY = 0,
313 AF_RGB,
314 AF_HSV,
315 #if AF_API_VERSION >= 31
316 AF_YCbCr
317 #endif
318 } af_cspace_t;
319
320 typedef enum {
321 AF_MAT_NONE = 0,
322 AF_MAT_TRANS = 1,
323 AF_MAT_CTRANS = 2,
324 AF_MAT_CONJ = 4,
325 AF_MAT_UPPER = 32,
326 AF_MAT_LOWER = 64,
327 AF_MAT_DIAG_UNIT = 128,
328 AF_MAT_SYM = 512,
329 AF_MAT_POSDEF = 1024,
330 AF_MAT_ORTHOG = 2048,
331 AF_MAT_TRI_DIAG = 4096,
332 AF_MAT_BLOCK_DIAG = 8192
333 } af_mat_prop;
334
335 typedef enum {
336 AF_NORM_VECTOR_1,
337 AF_NORM_VECTOR_INF,
338 AF_NORM_VECTOR_2,
339 AF_NORM_VECTOR_P,
340 AF_NORM_MATRIX_1,
341 AF_NORM_MATRIX_INF,
342 AF_NORM_MATRIX_2,
343 AF_NORM_MATRIX_L_PQ,
344
345 AF_NORM_EUCLID = AF_NORM_VECTOR_2,
346 } af_norm_type;
347
348 #if AF_API_VERSION >= 31
349 typedef enum {
350 AF_FIF_BMP = 0,
351 AF_FIF_ICO = 1,
352 AF_FIF_JPEG = 2,
353 AF_FIF_JNG = 3,
354 AF_FIF_PNG = 13,
355 AF_FIF_PPM = 14,
356 AF_FIF_PPMRAW = 15,
357 AF_FIF_TIFF = 18,
358 AF_FIF_PSD = 20,
359 AF_FIF_HDR = 26,
360 AF_FIF_EXR = 29,
361 AF_FIF_JP2 = 31,
362 AF_FIF_RAW = 34
363 } af_image_format;
364 #endif
365
366 #if AF_API_VERSION >=34
367 typedef enum {
368 AF_MOMENT_M00 = 1,
369 AF_MOMENT_M01 = 2,
370 AF_MOMENT_M10 = 4,
371 AF_MOMENT_M11 = 8,
372 AF_MOMENT_FIRST_ORDER = AF_MOMENT_M00 | AF_MOMENT_M01 | AF_MOMENT_M10 | AF_MOMENT_M11
373 } af_moment_type;
374 #endif
375
376 #if AF_API_VERSION >= 32
377 typedef enum {
378 AF_HOMOGRAPHY_RANSAC = 0,
379 AF_HOMOGRAPHY_LMEDS = 1
380 } af_homography_type;
381 #endif
382
383 #if AF_API_VERSION >= 32
384 // These enums should be 2^x
385 typedef enum {
386 AF_BACKEND_DEFAULT = 0,
387 AF_BACKEND_CPU = 1,
388 AF_BACKEND_CUDA = 2,
389 AF_BACKEND_OPENCL = 4,
390 } af_backend;
391 #endif
392
393 // Below enum is purely added for example purposes
394 // it doesn't and shoudn't be used anywhere in the
395 // code. No Guarantee's provided if it is used.
396 typedef enum {
397 AF_ID = 0
398 } af_someenum_t;
399
400 #if AF_API_VERSION >=34
401 typedef enum {
402 AF_BINARY_ADD = 0,
403 AF_BINARY_MUL = 1,
404 AF_BINARY_MIN = 2,
405 AF_BINARY_MAX = 3
406 } af_binary_op;
407 #endif
408
409 #if AF_API_VERSION >=34
410 typedef enum {
411 AF_RANDOM_ENGINE_PHILOX_4X32_10 = 100, //Philox variant with N = 4, W = 32 and Rounds = 10
412 AF_RANDOM_ENGINE_THREEFRY_2X32_16 = 200, //Threefry variant with N = 2, W = 32 and Rounds = 16
413 AF_RANDOM_ENGINE_MERSENNE_GP11213 = 300, //Mersenne variant with MEXP = 11213
414 AF_RANDOM_ENGINE_PHILOX = AF_RANDOM_ENGINE_PHILOX_4X32_10, //Resolves to Philox 4x32_10
415 AF_RANDOM_ENGINE_THREEFRY = AF_RANDOM_ENGINE_THREEFRY_2X32_16, //Resolves to Threefry 2X32_16
416 AF_RANDOM_ENGINE_MERSENNE = AF_RANDOM_ENGINE_MERSENNE_GP11213, //Resolves to Mersenne GP 11213
417 AF_RANDOM_ENGINE_DEFAULT = AF_RANDOM_ENGINE_PHILOX //Resolves to Philox
418 } af_random_engine_type;
419 #endif
420
422 // FORGE / Graphics Related Enums
423 // These enums have values corresponsding to Forge enums in forge defines.h
425 typedef enum {
426 AF_COLORMAP_DEFAULT = 0,
427 AF_COLORMAP_SPECTRUM= 1,
428 AF_COLORMAP_COLORS = 2,
429 AF_COLORMAP_RED = 3,
430 AF_COLORMAP_MOOD = 4,
431 AF_COLORMAP_HEAT = 5,
432 AF_COLORMAP_BLUE = 6
433 } af_colormap;
434
435 #if AF_API_VERSION >= 32
436 typedef enum {
437 AF_MARKER_NONE = 0,
438 AF_MARKER_POINT = 1,
439 AF_MARKER_CIRCLE = 2,
440 AF_MARKER_SQUARE = 3,
441 AF_MARKER_TRIANGLE = 4,
442 AF_MARKER_CROSS = 5,
443 AF_MARKER_PLUS = 6,
444 AF_MARKER_STAR = 7
445 } af_marker_type;
446 #endif
447
449 #if AF_API_VERSION >= 34
450 typedef enum {
451 AF_STORAGE_DENSE = 0,
452 AF_STORAGE_CSR = 1,
453 AF_STORAGE_CSC = 2,
454 AF_STORAGE_COO = 3,
455 } af_storage;
456 #endif
457
458 #ifdef __cplusplus
459 namespace af
460 {
461 typedef af_dtype dtype;
462 typedef af_source source;
463 typedef af_interp_type interpType;
464 typedef af_border_type borderType;
465 typedef af_connectivity connectivity;
466 typedef af_match_type matchType;
467 typedef af_cspace_t CSpace;
468 typedef af_someenum_t SomeEnum; // Purpose of Addition: How to add Function example
469 typedef af_mat_prop trans;
470 typedef af_conv_mode convMode;
471 typedef af_conv_domain convDomain;
472 typedef af_mat_prop matProp;
473 typedef af_colormap ColorMap;
474 typedef af_norm_type normType;
475 #if AF_API_VERSION >= 31
476 typedef af_ycc_std YCCStd;
477 #endif
478 #if AF_API_VERSION >= 31
479 typedef af_image_format imageFormat;
480 #endif
481 #if AF_API_VERSION >= 32
482 typedef af_backend Backend;
483 #endif
484 #if AF_API_VERSION >= 32
485 typedef af_marker_type markerType;
486 #endif
487 #if AF_API_VERSION >= 34
488 typedef af_moment_type momentType;
489 #endif
490 #if AF_API_VERSION >= 34
491 typedef af_storage storage;
492 #endif
493 #if AF_API_VERSION >= 34
494 typedef af_binary_op binaryOp;
495 #endif
496 #if AF_API_VERSION >= 34
497 typedef af_random_engine_type randomEngineType;
498 #endif
499 }
500
501 #endif
AF_ERR_NO_MEM
The system or device ran out of memory.
Definition: defines.h:74
af::source
af_source source
Definition: defines.h:462
af_random_engine_type
af_random_engine_type
Definition: defines.h:410
af_ycc_std
af_ycc_std
Definition: defines.h:304
AF_MAT_SYM
Matrix is symmetric.
Definition: defines.h:328
AF_NORM_MATRIX_2
returns the max singular value). Currently NOT SUPPORTED
Definition: defines.h:342
AF_MOMENT_M10
Definition: defines.h:370
AF_SSD
Match based on Sum of Squared Differences (SSD)
Definition: defines.h:295
af::SomeEnum
af_someenum_t SomeEnum
Definition: defines.h:468
af_backend
af_backend
Definition: defines.h:385
af::ColorMap
af_colormap ColorMap
Definition: defines.h:473
AF_INTERP_CUBIC
Cubic Interpolation.
Definition: defines.h:228
AF_MAT_ORTHOG
Matrix is orthogonal.
Definition: defines.h:330
AF_INTERP_LINEAR
Linear Interpolation.
Definition: defines.h:226
af
Definition: algorithm.h:14
AF_ID
Definition: defines.h:397
afDevice
Device pointer.
Definition: defines.h:215
AF_FIF_RAW
FreeImage Enum for RAW Camera Image File.
Definition: defines.h:362
AF_FIF_JNG
FreeImage Enum for JPEG Network Graphics File.
Definition: defines.h:353
AF_BACKEND_CPU
CPU a.k.a sequential algorithms.
Definition: defines.h:387
AF_SUCCESS
The function returned successfully.
Definition: defines.h:67
af_norm_type
af_norm_type
Definition: defines.h:335
af_border_type
af_border_type
Definition: defines.h:248
AF_YCC_709
ITU-R BT.709 standard.
Definition: defines.h:306
AF_ERR_DIFF_TYPE
The type of the input arrays are not compatible.
Definition: defines.h:111
AF_CONV_EXPAND
Output of the convolution is signal_len + filter_len - 1.
Definition: defines.h:282
AF_FIF_BMP
FreeImage Enum for Bitmap File.
Definition: defines.h:350
AF_COLORMAP_BLUE
Blue hue map.
Definition: defines.h:432
AF_MAT_UPPER
Matrix is upper triangular.
Definition: defines.h:325
AF_INTERP_BILINEAR_COSINE
Bilinear Interpolation with cosine smoothing.
Definition: defines.h:234
AF_YCbCr
3-channel YCbCr
Definition: defines.h:316
AF_MAT_DIAG_UNIT
Matrix diagonal contains unitary values.
Definition: defines.h:327
AF_CONV_DEFAULT
Output of the convolution is the same size as input.
Definition: defines.h:277
AF_COLORMAP_MOOD
Mood map.
Definition: defines.h:430
s32
32-bit signed integral values
Definition: defines.h:201
AF_BINARY_MUL
Definition: defines.h:403
AF_ERR_BATCH
Function does not support GFOR / batch mode.
Definition: defines.h:116
af::YCCStd
af_ycc_std YCCStd
Definition: defines.h:476
AF_RANDOM_ENGINE_PHILOX
Definition: defines.h:414
AF_MAT_POSDEF
Matrix is positive definite.
Definition: defines.h:329
AF_ERR_NOT_SUPPORTED
The option is not supported.
Definition: defines.h:131
AF_FIF_ICO
FreeImage Enum for Windows Icon File.
Definition: defines.h:351
AF_BACKEND_DEFAULT
Default backend order: OpenCL -> CUDA -> CPU.
Definition: defines.h:386
AF_BACKEND_CUDA
CUDA Compute Backend.
Definition: defines.h:388
AF_ZSAD
Match based on Zero mean SAD.
Definition: defines.h:293
s64
64-bit signed integral values
Definition: defines.h:204
s16
16-bit signed integral values
Definition: defines.h:207
AF_ZSSD
Match based on Zero mean SSD.
Definition: defines.h:296
AF_RANDOM_ENGINE_THREEFRY_2X32_16
Definition: defines.h:412
AF_GRAY
Grayscale.
Definition: defines.h:312
AF_INTERP_BICUBIC_SPLINE
Bicubic Interpolation with Catmull-Rom splines.
Definition: defines.h:243
AF_ZNCC
Match based on Zero mean NCC.
Definition: defines.h:299
u16
16-bit unsigned integral values
Definition: defines.h:210
af::Backend
af_backend Backend
Definition: defines.h:482
AF_MAT_NONE
Default.
Definition: defines.h:321
af_interp_type
af_interp_type
Definition: defines.h:224
AF_MOMENT_M01
Definition: defines.h:369
AF_LSSD
Match based on Locally scaled SSD.
Definition: defines.h:297
AF_MOMENT_M00
Definition: defines.h:368
af::binaryOp
af_binary_op binaryOp
Definition: defines.h:494
AF_INTERP_BICUBIC
Bicubic Interpolation.
Definition: defines.h:237
af::randomEngineType
af_random_engine_type randomEngineType
Definition: defines.h:497
AF_FIF_JPEG
FreeImage Enum for JPEG File.
Definition: defines.h:352
AF_MAT_CTRANS
Data needs to be conjugate tansposed.
Definition: defines.h:323
f64
64-bit complex floating point values
Definition: defines.h:198
AF_MARKER_NONE
Definition: defines.h:437
AF_MARKER_POINT
Definition: defines.h:438
AF_ERR_LOAD_SYM
There was an error when loading the symbols.
Definition: defines.h:171
AF_NCC
Match based on Normalized Cross Correlation (NCC)
Definition: defines.h:298
AF_NORM_VECTOR_P
treats the input as a vector and returns the p-norm
Definition: defines.h:339
af_storage
af_storage
Definition: defines.h:450
AF_MOMENT_M11
Definition: defines.h:371
af::imageFormat
af_image_format imageFormat
Definition: defines.h:479
af_homography_type
af_homography_type
Definition: defines.h:377
af_conv_domain
af_conv_domain
Definition: defines.h:285
AF_FIF_PSD
FreeImage Enum for Adobe Photoshop File.
Definition: defines.h:358
af_colormap
af_colormap
Definition: defines.h:425
AF_HOMOGRAPHY_LMEDS
Computes homography using Least Median of Squares.
Definition: defines.h:379
AF_MAT_CONJ
Data needs to be conjugate.
Definition: defines.h:324
AF_NORM_MATRIX_INF
return the max of row sums
Definition: defines.h:341
AF_FIF_PPM
FreeImage Enum for Portable Pixelmap (ASCII) File.
Definition: defines.h:355
AF_ERR_RUNTIME
There was an error with the runtime environment.
Definition: defines.h:84
AF_PAD_SYM
Out of bound values are symmetric over the edge.
Definition: defines.h:257
AF_STORAGE_CSC
Storage type is CSC.
Definition: defines.h:453
AF_MARKER_SQUARE
Definition: defines.h:440
AF_COLORMAP_SPECTRUM
Spectrum map.
Definition: defines.h:427
AF_HSV
3-channel HSV
Definition: defines.h:314
af_connectivity
af_connectivity
Definition: defines.h:260
AF_HOMOGRAPHY_RANSAC
Computes homography using RANSAC.
Definition: defines.h:378
AF_NORM_MATRIX_L_PQ
returns Lpq-norm
Definition: defines.h:343
AF_FIF_JP2
FreeImage Enum for JPEG-2000 File.
Definition: defines.h:361
af_err
af_err
Definition: defines.h:63
AF_MOMENT_FIRST_ORDER
Definition: defines.h:372
AF_LSAD
Match based on Locally scaled SAD.
Definition: defines.h:294
AF_ERR_TYPE
The type is not suppported by this function.
Definition: defines.h:106
af_source
af_source
Definition: defines.h:214
AF_CONNECTIVITY_4
Connectivity includes neighbors, North, East, South and West of current pixel.
Definition: defines.h:264
u64
64-bit unsigned integral values
Definition: defines.h:205
af_someenum_t
af_someenum_t
Definition: defines.h:396
af_conv_mode
af_conv_mode
Definition: defines.h:272
AF_STORAGE_CSR
Storage type is CSR.
Definition: defines.h:452
af::storage
af_storage storage
Definition: defines.h:491
AF_YCC_601
ITU-R BT.601 (formerly CCIR 601) standard.
Definition: defines.h:305
AF_PAD_ZERO
Out of bound values are 0.
Definition: defines.h:252
AF_INTERP_BILINEAR
Bilinear Interpolation.
Definition: defines.h:227
AF_ERR_NO_DBL
This device does not support double.
Definition: defines.h:150
AF_STORAGE_COO
Storage type is COO.
Definition: defines.h:454
c64
64-bit complex floating point values
Definition: defines.h:199
dim_t
long long dim_t
Definition: defines.h:50
AF_ERR_NO_GFX
This build of ArrayFire was not built with graphics or this device does not support graphics...
Definition: defines.h:156
AF_ERR_LOAD_LIB
There was an error when loading the libraries.
Definition: defines.h:164
AF_BACKEND_OPENCL
OpenCL Compute Backend.
Definition: defines.h:389
AF_ERR_NOT_CONFIGURED
This build of ArrayFire does not support this feature.
Definition: defines.h:136
AF_ERR_ARR_BKND_MISMATCH
There was a mismatch between the input array and the active backend.
Definition: defines.h:178
af_marker_type
af_marker_type
Definition: defines.h:436
AF_INTERP_CUBIC_SPLINE
Cubic Interpolation with Catmull-Rom splines.
Definition: defines.h:240
AF_FIF_TIFF
FreeImage Enum for Tagged Image File Format File.
Definition: defines.h:357
AF_CONV_AUTO
ArrayFire automatically picks the right convolution algorithm.
Definition: defines.h:286
c32
32-bit complex floating point values
Definition: defines.h:197
af::matProp
af_mat_prop matProp
Definition: defines.h:472
AF_MARKER_STAR
Definition: defines.h:444
af::normType
af_norm_type normType
Definition: defines.h:474
AF_RANDOM_ENGINE_PHILOX_4X32_10
Definition: defines.h:411
AF_NORM_VECTOR_INF
treats the input as a vector and returns the max of absolute values
Definition: defines.h:337
AF_MAT_BLOCK_DIAG
Matrix is block diagonal.
Definition: defines.h:332
AF_ERR_DRIVER
There was an error in the device driver.
Definition: defines.h:79
AF_CONNECTIVITY_8
Connectivity includes 4-connectivity neigbors and also those on Northeast, Northwest, Southeast and Southwest.
Definition: defines.h:269
AF_ERR_NONFREE
This build of ArrayFire is not compiled with "nonfree" algorithms.
Definition: defines.h:142
af::convDomain
af_conv_domain convDomain
Definition: defines.h:471
AF_NORM_EUCLID
The default. Same as AF_NORM_VECTOR_2.
Definition: defines.h:345
u8
8-bit unsigned integral values
Definition: defines.h:203
af::borderType
af_border_type borderType
Definition: defines.h:464
AF_FIF_EXR
FreeImage Enum for ILM OpenEXR File.
Definition: defines.h:360
AF_CONV_SPATIAL
Perform convolution in spatial domain.
Definition: defines.h:287
af_binary_op
af_binary_op
Definition: defines.h:401
AF_BINARY_ADD
Definition: defines.h:402
AF_CONV_FREQ
Perform convolution in frequency domain.
Definition: defines.h:288
AF_SHD
Match based on Sum of Hamming Distances (SHD)
Definition: defines.h:300
AF_SAD
Match based on Sum of Absolute Differences (SAD)
Definition: defines.h:292
AF_RANDOM_ENGINE_DEFAULT
Definition: defines.h:417
AF_MAT_TRANS
Data needs to be transposed.
Definition: defines.h:322
AF_NORM_MATRIX_1
return the max of column sums
Definition: defines.h:340
af::trans
af_mat_prop trans
Definition: defines.h:469
AF_ERR_ARG
One of the function arguments is incorrect.
Definition: defines.h:96
AF_INTERP_NEAREST
Nearest Interpolation.
Definition: defines.h:225
uintl
unsigned long long uintl
Definition: defines.h:56
AF_RGB
3-channel RGB
Definition: defines.h:313
af_mat_prop
af_mat_prop
Definition: defines.h:320
AF_INTERP_LINEAR_COSINE
Linear Interpolation with cosine smoothing.
Definition: defines.h:231
AF_ERR_INVALID_ARRAY
The input array is not a valid af_array object.
Definition: defines.h:91
u32
32-bit unsigned integral values
Definition: defines.h:202
AF_FIF_HDR
FreeImage Enum for High Dynamic Range File.
Definition: defines.h:359
af_cspace_t
af_cspace_t
Definition: defines.h:311
AF_COLORMAP_DEFAULT
Default grayscale map.
Definition: defines.h:426
AF_MAT_LOWER
Matrix is lower triangular.
Definition: defines.h:326
AF_FIF_PNG
FreeImage Enum for Portable Network Graphics File.
Definition: defines.h:354
AF_FIF_PPMRAW
FreeImage Enum for Portable Pixelmap (Binary) File.
Definition: defines.h:356
af_array
void * af_array
Definition: defines.h:222
AF_RANDOM_ENGINE_THREEFRY
Definition: defines.h:415
af_image_format
af_image_format
Definition: defines.h:349
AF_MARKER_PLUS
Definition: defines.h:443
af::matchType
af_match_type matchType
Definition: defines.h:466
af_moment_type
af_moment_type
Definition: defines.h:367
AF_MAT_TRI_DIAG
Matrix is tri diagonal.
Definition: defines.h:331
af::CSpace
af_cspace_t CSpace
Definition: defines.h:467
f32
32-bit floating point values
Definition: defines.h:196
AF_NORM_VECTOR_2
treats the input as a vector and returns euclidean norm
Definition: defines.h:338
AF_COLORMAP_HEAT
Heat map.
Definition: defines.h:431
AF_ERR_DEVICE
Input does not belong to the current device.
Definition: defines.h:123
AF_MARKER_CIRCLE
Definition: defines.h:439
AF_NORM_VECTOR_1
treats the input as a vector and returns the sum of absolute values
Definition: defines.h:336
version.h
b8
8-bit boolean values
Definition: defines.h:200
AF_BINARY_MAX
Definition: defines.h:405
AF_RANDOM_ENGINE_MERSENNE
Definition: defines.h:416
AF_INTERP_LOWER
Floor Indexed.
Definition: defines.h:229
AF_STORAGE_DENSE
Storage type is dense.
Definition: defines.h:451
afHost
Host pointer.
Definition: defines.h:216
af::markerType
af_marker_type markerType
Definition: defines.h:485
af_dtype
af_dtype
Definition: defines.h:195
af::interpType
af_interp_type interpType
Definition: defines.h:463
af_match_type
af_match_type
Definition: defines.h:291
AF_COLORMAP_RED
Red hue map.
Definition: defines.h:429
AF_ERR_INTERNAL
There was an internal error either in ArrayFire or in a project upstream.
Definition: defines.h:187
af::momentType
af_moment_type momentType
Definition: defines.h:488
AF_MARKER_CROSS
Definition: defines.h:442
AF_MARKER_TRIANGLE
Definition: defines.h:441
AF_BINARY_MIN
Definition: defines.h:404
af::convMode
af_conv_mode convMode
Definition: defines.h:470
AF_ERR_UNKNOWN
Unknown Error.
Definition: defines.h:192
af::dtype
af_dtype dtype
Definition: defines.h:461
intl
long long intl
Definition: defines.h:55
AF_COLORMAP_COLORS
Colors.
Definition: defines.h:428
AF_ERR_SIZE
The size is incorrect.
Definition: defines.h:101
AF_RANDOM_ENGINE_MERSENNE_GP11213
Definition: defines.h:413
af::connectivity
af_connectivity connectivity
Definition: defines.h:465
AF_YCC_2020
ITU-R BT.2020 standard.
Definition: defines.h:307