$darkmode
A high-performance general-purpose compute library

Evaluate the natural logarithm. More...

Functions

AFAPI array log (const array &in)
 C++ Interface to evaluate the natural logarithm. More...
 
AFAPI af_err af_log (af_array *out, const af_array in)
 C Interface to evaluate the natural logarithm. More...
 

Detailed Description

Evaluate the natural logarithm.

Function Documentation

◆ af_log()

AFAPI af_err af_log ( af_array out,
const af_array  in 
)

C Interface to evaluate the natural logarithm.

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

◆ log()

AFAPI array af::log ( const array in)

C++ Interface to evaluate the natural logarithm.

Parameters
[in]ininput array
Returns
natural logarithm
Examples:
financial/black_scholes_options.cpp, financial/heston_model.cpp, machine_learning/logistic_regression.cpp, machine_learning/naive_bayes.cpp, and machine_learning/softmax_regression.cpp.