The reciprocal or inverse square root of input arrays. More...

Functions

AFAPI array rsqrt (const array &in)
 C++ Interface for reciprocal square root of input. More...
 
AFAPI af_err af_rsqrt (af_array *out, const af_array in)
 C Interface for reciprocal square root. More...
 

Detailed Description

The reciprocal or inverse square root of input arrays.

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

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

Function Documentation

◆ af_rsqrt()

AFAPI af_err af_rsqrt ( af_array out,
const af_array  in 
)

C Interface for reciprocal square root.

Parameters
[out]outwill contain the reciprocal square root of in
[in]inis input
Returns
AF_SUCCESS if the execution completes properly

◆ rsqrt()

AFAPI array af::rsqrt ( const array in)

C++ Interface for reciprocal square root of input.

Parameters
[in]inis input
Returns
the reciprocal square root of input