A high-performance general-purpose compute library

Check if values are infinite. More...

Functions

AFAPI array isInf (const array &in)
 C++ Interface to check if values are infinite. More...
 
AFAPI af_err af_isinf (af_array *out, const af_array in)
 C Interface to check if values are infinite. More...
 

Detailed Description

Check if values are infinite.

Function Documentation

◆ af_isinf()

AFAPI af_err af_isinf ( af_array out,
const af_array  in 
)

C Interface to check if values are infinite.

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

◆ isInf()

AFAPI array isInf ( const array in)

C++ Interface to check if values are infinite.

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