A high-performance general-purpose compute library

Evaluate the factorial. More...

Functions

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

Detailed Description

Evaluate the factorial.

Note
This function supports real inputs only. 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
Returns
AF_SUCCESS if the execution completes properly

◆ factorial()

AFAPI array factorial ( const array in)

C++ Interface to calculate the factorial.

Parameters
[in]ininput
Returns
the factorial function