A high-performance general-purpose compute library

Evaluate the exponential function of an array minus 1, exp(in) - 1. More...

Functions

AFAPI array expm1 (const array &in)
 C++ Interface to evaluate the exponential of an array minus 1, exp(in) - 1. More...
 
AFAPI af_err af_expm1 (af_array *out, const af_array in)
 C Interface to evaluate the exponential of an array minus 1, exp(in) - 1. More...
 

Detailed Description

Evaluate the exponential function of an array minus 1, exp(in) - 1.

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

Function Documentation

◆ af_expm1()

AFAPI af_err af_expm1 ( af_array out,
const af_array  in 
)

C Interface to evaluate the exponential of an array minus 1, exp(in) - 1.

Parameters
[out]outexponential of in - 1
[in]ininput array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ expm1()

AFAPI array expm1 ( const array in)

C++ Interface to evaluate the exponential of an array minus 1, exp(in) - 1.

This function is useful when in is small.

Parameters
[in]inexponent
Returns
exponential minus 1