libDAI
|
Function object that takes the logarithm, except that log(0) is defined to be 0. More...
#include <dai/fo.h>
Public Member Functions | |
T | operator() (const T &x) const |
Returns (x == 0 ? 0 : log(x)) | |
T | operator() (const T &x) const |
Returns (x == 0 ? 0 : log(x)) |
Function object that takes the logarithm, except that log(0) is defined to be 0.
|
inline |
Returns (x == 0 ? 0 : log(x))
|
inline |
Returns (x == 0 ? 0 : log(x))