Factorial function. More...

Functions

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

Detailed Description

Factorial function.

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

Function Documentation

AFAPI af_err af_factorial ( af_array out,
const af_array  in 
)

C Interface for the factorial.

Parameters
[out]outwill contain the result of factorial of in
[in]inis input
Returns
AF_SUCCESS if the execution completes properly
AFAPI array af::factorial ( const array in)

C++ Interface for factorial of input.

Parameters
[in]inis input
Returns
the factorial function of input