libDAI
|
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 | |
T | operator() (const T &x) const |
Returns (x == 0 ? 0 : (1 / x)) More... | |
Function object that takes the inverse, except that 1/0 is defined to be 0.
|
inline |
Returns (x == 0 ? 0 : (1 / x))