A high-performance general-purpose compute library

Evaluate the natural logarithm of 1 + input, ln(1+in). More...

Functions

AFAPI array log1p (const array &in)
 C++ Interface to evaluate the natural logarithm of 1 + input, ln(1+in).
 
AFAPI af_err af_log1p (af_array *out, const af_array in)
 C Interface to evaluate the natural logarithm of 1 + input, ln(1+in).
 

Detailed Description

Evaluate the natural logarithm of 1 + input, ln(1+in).

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

Function Documentation

◆ af_log1p()

AFAPI af_err af_log1p ( af_array out,
const af_array  in 
)

C Interface to evaluate the natural logarithm of 1 + input, ln(1+in).

Parameters
[out]outlogarithm of in + 1
[in]ininput
Returns
AF_SUCCESS if the execution completes properly

◆ log1p()

AFAPI array log1p ( const array in)

C++ Interface to evaluate the natural logarithm of 1 + input, ln(1+in).

Parameters
[in]ininput
Returns
natural logarithm of 1 + input
Note
This function is useful when in is small