A high-performance general-purpose compute library

Evaluate the inverse cosine function (arc cosine). More...

Functions

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

Detailed Description

Evaluate the inverse cosine function (arc cosine).

The inverse of cosine so that, if y = cos(x), then x = arccos(y).

Function Documentation

◆ acos()

AFAPI array acos ( const array in)

C++ Interface to evaluate the inverse cosine function.

Parameters
[in]ininput array
Returns
inverse cosine

◆ af_acos()

AFAPI af_err af_acos ( af_array out,
const af_array  in 
)

C Interface to evaluate the inverse cosine function.

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