A high-performance general-purpose compute library

Evaluate the square root. More...

Functions

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

Detailed Description

Evaluate the square root.

Function Documentation

◆ af_sqrt()

AFAPI af_err af_sqrt ( af_array out,
const af_array  in 
)

C Interface to evaluate the square root.

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

◆ sqrt()

AFAPI array sqrt ( const array in)

C++ Interface to evaluate the square root.

Parameters
[in]ininput
Returns
square root
Examples
financial/heston_model.cpp.