ArrayFire: acos

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...
 

Evaluate the inverse cosine function (arc cosine).

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

C++ Interface to evaluate the inverse cosine function.

Parameters
Returns
inverse cosine
Examples
pde/bhrt.cpp.

◆ af_acos()

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