A high-performance general-purpose compute library

Check if underlying data is owned by the current array. More...

Functions

AFAPI bool isOwner (const array &in)
 
AFAPI af_err af_is_owner (bool *result, const af_array arr)
 

Detailed Description

Check if underlying data is owned by the current array.

Function Documentation

◆ af_is_owner()

AFAPI af_err af_is_owner ( bool *  result,
const af_array  arr 
)
Parameters
[in]arrAn multi dimensional array.
[out]resulta boolean specifying if the array owns the raw pointer. It is false if it is a sub array.

◆ isOwner()

AFAPI bool isOwner ( const array in)
Parameters
[in]inAn multi dimensional array.
Returns
a boolean specifying if the array owns the raw pointer. It is false if it is a sub array.