A high-performance general-purpose compute library

Check if values are zero. More...

Functions

AFAPI array iszero (const array &in)
 C++ Interface to check which values are zero. More...
 
AFAPI af_err af_iszero (af_array *out, const af_array in)
 C Interface to check if values are zero. More...
 

Detailed Description

Check if values are zero.

Function Documentation

◆ af_iszero()

AFAPI af_err af_iszero ( af_array out,
const af_array  in 
)

C Interface to check if values are zero.

Parameters
[out]outarray containing 1's where input is 0; 0's otherwise
[in]ininput array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ iszero()

AFAPI array iszero ( const array in)

C++ Interface to check which values are zero.

Parameters
[in]ininput
Returns
array containing 1's where input is 0; 0's otherwise