A high-performance general-purpose compute library

Evaluate the reciprocal square root. More...

Functions

AFAPI array rsqrt (const array &in)
 C++ Interface to evaluate the reciprocal square root. More...
 
AFAPI af_err af_rsqrt (af_array *out, const af_array in)
 C Interface to evaluate the reciprocal square root. More...
 

Detailed Description

Evaluate the reciprocal square root.

\[ \frac{1}{\sqrt{x}} \]

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

Function Documentation

◆ af_rsqrt()

AFAPI af_err af_rsqrt ( af_array out,
const af_array  in 
)

C Interface to evaluate the reciprocal square root.

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

◆ rsqrt()

AFAPI array rsqrt ( const array in)

C++ Interface to evaluate the reciprocal square root.

Parameters
[in]ininput
Returns
reciprocal square root