A high-performance general-purpose compute library

Evaluate the factorial. More...

Functions

array factorial (const array &in)
 C++ Interface to calculate the factorial.
 
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 only supports real inputs; complex inputs are not yet supported.

Function Documentation

◆ af_factorial()

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()

array factorial ( const array & in)

C++ Interface to calculate the factorial.

Parameters
[in]ininput
Returns
factorial