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). More...
 
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). More...
 

Detailed Description

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

Note
This function only supports real inputs; 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 array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ log1p()

AFAPI array log1p ( const array in)

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

This function is useful when in is small.

Parameters
[in]ininput
Returns
natural logarithm of 1 + input