Functions

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

Detailed Description

Check if values are zero

Note
This function supports real inputs only. Complex inputs are not yet supported.

Function Documentation

◆ af_iszero()

AFAPI af_err af_iszero ( af_array out,
const af_array  in 
)

C Interface for checking if values are zero.

Parameters
[out]outwill contain 1's where input is 0, and 0 otherwise.
[in]inis input
Returns
AF_SUCCESS if the execution completes properly

◆ iszero()

AFAPI array af::iszero ( const array in)

C++ Interface for checking if values are zero.

Parameters
[in]inis input
Returns
array containing 1's where input is 0, and 0 otherwise.