A high-performance general-purpose compute library

Evaluate the cosine function. More...

Functions

AFAPI array cos (const array &in)
 C++ Interface to evaluate the cosine function. More...
 
AFAPI af_err af_cos (af_array *out, const af_array in)
 C Interface to evaluate the cosine function. More...
 

Detailed Description

Evaluate the cosine function.

Function Documentation

◆ af_cos()

AFAPI af_err af_cos ( af_array out,
const af_array  in 
)

C Interface to evaluate the cosine function.

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

◆ cos()

AFAPI array cos ( const array in)

C++ Interface to evaluate the cosine function.

Parameters
[in]ininput array
Returns
cosine