Function object that takes the inverse, except that 1/0 is defined to be 0. More...
#include <dai/prob.h>
Public Member Functions | |
T | operator() (const T &x) const |
Returns (x == 0 ? 0 : (1 / x)). |
Function object that takes the inverse, except that 1/0 is defined to be 0.
T dai::fo_inv0< T >::operator() | ( | const T & | x | ) | const [inline] |
Returns (x == 0 ? 0 : (1 / x)).