util.h File Reference
#include <af/defines.h>

Go to the source code of this file.

Namespaces

 af
 

Macros

#define af_print(exp)   af::print(#exp, exp);
 

Functions

AFAPI void print (const char *exp, const array &arr)
 
AFAPI array exampleFunction (const array &in, const af_someenum_t param)
 
AFAPI af_err af_print_array (af_array arr)
 
AFAPI af_err af_example_function (af_array *out, const af_array in, const af_someenum_t param)
 
AFAPI af_err af_get_version (int *major, int *minor, int *patch)
 Get the version information of the library. More...
 
AFAPI af_err af_get_elements (dim_t *elems, const af_array arr)
 Gets the number of elements in an array. More...
 
AFAPI af_err af_get_type (af_dtype *type, const af_array arr)
 Gets the type of an array. More...
 
AFAPI af_err af_get_dims (dim_t *d0, dim_t *d1, dim_t *d2, dim_t *d3, const af_array arr)
 Gets the dimseions of an array. More...
 
AFAPI af_err af_get_numdims (unsigned *result, const af_array arr)
 Gets the number of dimensions of an array. More...
 
AFAPI af_err af_is_empty (bool *result, const af_array arr)
 Check if an array is empty. More...
 
AFAPI af_err af_is_scalar (bool *result, const af_array arr)
 Check if an array is scalar, ie. More...
 
AFAPI af_err af_is_row (bool *result, const af_array arr)
 Check if an array is row vector. More...
 
AFAPI af_err af_is_column (bool *result, const af_array arr)
 Check if an array is a column vector. More...
 
AFAPI af_err af_is_vector (bool *result, const af_array arr)
 Check if an array is a vector. More...
 
AFAPI af_err af_is_complex (bool *result, const af_array arr)
 Check if an array is complex type. More...
 
AFAPI af_err af_is_real (bool *result, const af_array arr)
 Check if an array is real type. More...
 
AFAPI af_err af_is_double (bool *result, const af_array arr)
 Check if an array is double precision type. More...
 
AFAPI af_err af_is_single (bool *result, const af_array arr)
 Check if an array is single precision type. More...
 
AFAPI af_err af_is_realfloating (bool *result, const af_array arr)
 Check if an array is real floating point type. More...
 
AFAPI af_err af_is_floating (bool *result, const af_array arr)
 Check if an array is floating precision type. More...
 
AFAPI af_err af_is_integer (bool *result, const af_array arr)
 Check if an array is integer type. More...
 
AFAPI af_err af_is_bool (bool *result, const af_array arr)
 Check if an array is bool type. More...
 

Macro Definition Documentation

#define af_print (   exp)    af::print(#exp, exp);

Function Documentation

AFAPI af_err af_example_function ( af_array out,
const af_array  in,
const af_someenum_t  param 
)
AFAPI af_err af_get_version ( int *  major,
int *  minor,
int *  patch 
)

Get the version information of the library.