Check if all elements in array are contiguous. More...

Functions

AFAPI bool isLinear (const array &in)
 
AFAPI af_err af_is_linear (bool *result, const af_array arr)
 

Detailed Description

Check if all elements in array are contiguous.

Function Documentation

◆ af_is_linear()

AFAPI af_err af_is_linear ( bool *  result,
const af_array  arr 
)
Parameters
[in]arrAn multi dimensional array.
[out]resulta boolean specifying if all elements in the array are contiguous.

◆ isLinear()

AFAPI bool af::isLinear ( const array in)
Parameters
[in]inAn multi dimensional array.
Returns
a boolean specifying if all elements in the array are contiguous.