dai::fo_inv0< T > Struct Template Reference

Function object that takes the inverse, except that 1/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 : (1 / x)).


Detailed Description

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

Function object that takes the inverse, except that 1/0 is defined to be 0.

Member Function Documentation

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

Returns (x == 0 ? 0 : (1 / 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