A high-performance general-purpose compute library

Evaluate the factorial. More...

Functions

AFAPI array factorial (const array &in)
 C++ Interface to calculate the factorial. More...
 
AFAPI af_err af_factorial (af_array *out, const af_array in)
 C Interface to calculate the factorial. More...
 

Detailed Description

Evaluate the factorial.

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

Function Documentation

◆ af_factorial()

AFAPI af_err af_factorial ( af_array out,
const af_array  in 
)

C Interface to calculate the factorial.

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

◆ factorial()

AFAPI array factorial ( const array in)

C++ Interface to calculate the factorial.

Parameters
[in]ininput
Returns
factorial