A high-performance general-purpose compute library

Get Offset of the underlying data. More...

Functions

dim_t getOffset (const array &in)
 
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()

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()

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.