A high-performance general-purpose compute library

Check if values are NaN. More...

Functions

AFAPI array isNaN (const array &in)
 C++ Interface to check if values are NaN. More...
 
AFAPI af_err af_isnan (af_array *out, const af_array in)
 C Interface to check if values are NaN. More...
 

Detailed Description

Check if values are NaN.

Function Documentation

◆ af_isnan()

AFAPI af_err af_isnan ( af_array out,
const af_array  in 
)

C Interface to check if values are NaN.

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

◆ isNaN()

AFAPI array isNaN ( const array in)

C++ Interface to check if values are NaN.

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