A high-performance general-purpose compute library

Functions

AFAPI dim_t getOffset (const array &in)
 
AFAPI af_err af_get_offset (dim_t *offset, const af_array arr)
 

Detailed Description

Get Offset of the underlying data.

Function Documentation

◆ af_get_offset()

AFAPI af_err af_get_offset ( dim_t * offset,
const af_array arr )
Parameters
[in]arrAn multi dimensional array.
[out]offsetOffset from the starting location of data pointer specified in number of elements. distance between each consecutive element along first dimension.

◆ getOffset()

AFAPI dim_t getOffset ( const array & in)
Parameters
[in]inAn multi dimensional array.
Returns
offset from the starting location of data pointer specified in number of elements.