A high-performance general-purpose compute library

Functions

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

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()

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()

array rsqrt ( const array & in)

C++ Interface to evaluate the reciprocal square root.

Parameters
[in]ininput
Returns
reciprocal square root