libDAI
Public Member Functions
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: