Function object that takes the logarithm, except that log(0) is defined to be 0. More...
#include <dai/prob.h>
Public Member Functions | |
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.
T dai::fo_log0< T >::operator() | ( | const T & | x | ) | const [inline] |
Returns (x == 0 ? 0 : log(x)).