A high-performance general-purpose compute library

Calculate the phase angle (in radians) of a complex array. More...

Functions

AFAPI array arg (const array &in)
 C++ Interface to calculate the phase angle (in radians) of a complex array. More...
 
AFAPI af_err af_arg (af_array *out, const af_array in)
 C Interface to calculate the phase angle (in radians) of a complex array. More...
 

Detailed Description

Calculate the phase angle (in radians) of a complex array.

Function Documentation

◆ af_arg()

AFAPI af_err af_arg ( af_array out,
const af_array  in 
)

C Interface to calculate the phase angle (in radians) of a complex array.

Parameters
[out]outphase angle (in radians)
[in]ininput array, typically complex
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ arg()

AFAPI array arg ( const array in)

C++ Interface to calculate the phase angle (in radians) of a complex array.

Parameters
[in]ininput array, typically complex
Returns
phase angle (in radians)