A high-performance general-purpose compute library

Evaluate the gamma function. More...

Functions

AFAPI array tgamma (const array &in)
 C++ Interface to evaluate the gamma function. More...
 
AFAPI af_err af_tgamma (af_array *out, const af_array in)
 C Interface to evaluate the gamma function. More...
 

Detailed Description

Evaluate the gamma function.

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

Function Documentation

◆ af_tgamma()

AFAPI af_err af_tgamma ( af_array out,
const af_array  in 
)

C Interface to evaluate the gamma function.

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

◆ tgamma()

AFAPI array tgamma ( const array in)

C++ Interface to evaluate the gamma function.

Parameters
[in]ininput
Returns
gamma function