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