A high-performance general-purpose compute library

Calculate the absolute value. More...

Functions

AFAPI array abs (const array &in)
 C++ Interface to calculate the absolute value. More...
 
AFAPI af_err af_abs (af_array *out, const af_array in)
 C Interface to calculate the absolute value. More...
 

Detailed Description

Calculate the absolute value.

Function Documentation

◆ abs()

AFAPI array abs ( const array in)

C++ Interface to calculate the absolute value.

Parameters
[in]ininput array
Returns
absolute value

◆ af_abs()

AFAPI af_err af_abs ( af_array out,
const af_array  in 
)

C Interface to calculate the absolute value.

Parameters
[out]outabsolute value
[in]ininput array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given