libDAI
Public Member Functions | List of all members
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>

Inherits unary_function< T, T >.

Public Member Functions

operator() (const T &x) const
 Returns (x == 0 ? 0 : (1 / x)) More...
 

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: