Showing content from https://arrayfire.org/docs/group__c__api__mat.htm below:
C API to manage arrays
AFAPI af_err af_device_array (af_array *arr, void *data, const unsigned ndims, const dim_t *const dims, const af_dtype type) Create array from device memory. More...
AFAPI af_err af_create_array (af_array *arr, const void *const data, const unsigned ndims, const dim_t *const dims, const af_dtype type) Create an af_array handle initialized with user defined data. More...
AFAPI af_err af_create_handle (af_array *arr, const unsigned ndims, const dim_t *const dims, const af_dtype type) Create af_array handle. More...
AFAPI af_err af_copy_array (af_array *arr, const af_array in) Deep copy an array to another. More...
AFAPI af_err af_write_array (af_array arr, const void *data, const size_t bytes, af_source src) Copy data from a C pointer (host/device) to an existing array. More...
AFAPI af_err af_get_data_ptr (void *data, const af_array arr) Copy data from an af_array to a C pointer. More...
AFAPI af_err af_release_array (af_array arr) Reduce the reference count of the af_array. More...
AFAPI af_err af_retain_array (af_array *out, const af_array in) Increments an af_array reference count. More...
AFAPI af_err af_get_data_ref_count (int *use_count, const af_array in) Get the reference count of af_array. More...
AFAPI af_err af_eval (af_array in) Evaluate any expressions in the Array. More...
AFAPI af_err af_eval_multiple (const int num, af_array *arrays) Evaluate multiple arrays together. More...
AFAPI af_err af_set_manual_eval_flag (bool flag) Turn the manual eval flag on or off. More...
AFAPI af_err af_get_manual_eval_flag (bool *flag) Get the manual eval flag. More...
AFAPI af_err af_get_elements (dim_t *elems, const af_array arr) Get the total number of elements across all dimensions of the 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 dimensions 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_half (bool *result, const af_array arr) Check if an array is 16 bit floating point 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...
AFAPI af_err af_is_sparse (bool *result, const af_array arr) Check if an array is sparse. More...
AFAPI af_err af_get_scalar (void *output_value, const af_array arr) Get first element from an array. More...
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4