A high-performance general-purpose compute library

Evaluate the natural logarithm. More...

Functions

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

Detailed Description

Evaluate the natural logarithm.

Function Documentation

◆ af_log()

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()

array 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.