A high-performance general-purpose compute library

Evaluate the logistical sigmoid function. More...

Functions

AFAPI array sigmoid (const array &in)
 C++ Interface to evaluate the logistical sigmoid function. More...
 
AFAPI af_err af_sigmoid (af_array *out, const af_array in)
 C Interface to evaluate the logistical sigmoid function. More...
 

Detailed Description

Evaluate the logistical sigmoid function.

Function Documentation

◆ af_sigmoid()

AFAPI af_err af_sigmoid ( af_array out,
const af_array  in 
)

C Interface to evaluate the logistical sigmoid function.

Computes \(\frac{1}{1+e^{-x}}\).

Parameters
[out]outoutput of the logistic sigmoid function
[in]ininput array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ sigmoid()

AFAPI array sigmoid ( const array in)

C++ Interface to evaluate the logistical sigmoid function.

Computes \(\frac{1}{1+e^{-x}}\).

Parameters
[in]ininput
Returns
sigmoid