dai::fo_log0< T > Struct Template Reference

Function object that takes the logarithm, except that log(0) is defined to be 0. More...

#include <dai/prob.h>

List of all members.

Public Member Functions

operator() (const T &x) const
 Returns (x == 0 ? 0 : log(x)).


Detailed Description

template<typename T>
struct dai::fo_log0< T >

Function object that takes the logarithm, except that log(0) is defined to be 0.

Member Function Documentation

template<typename T>
T dai::fo_log0< T >::operator() ( const T &  x  )  const [inline]

Returns (x == 0 ? 0 : log(x)).


The documentation for this struct was generated from the following file:

Generated on Thu Aug 5 19:04:07 2010 for libDAI by  doxygen 1.5.5