Computes logarithm of the elements. More...

array log (const array &x, bool isreal=false)
 Assume output will be real if isreal==true (faster), otherwise produce complex values if necessary (slower to check) More...
 

Detailed Description

Computes logarithm of the elements.

Performs a logarithm on each element of the array.

Function Documentation

array af::log ( const array &  x,
bool  isreal = false 
)

Assume output will be real if isreal==true (faster), otherwise produce complex values if necessary (slower to check)

Examples:
examples/financial/blackscholes.cpp.