2 #ifndef OPENGM_OPERATIONS_INTEGRATOR_HXX
3 #define OPENGM_OPERATIONS_INTEGRATOR_HXX
17 {
return static_cast<T
>(0); }
22 { out =
static_cast<T
>(0); }
27 {
return std::numeric_limits<T>::infinity(); }
32 { out = std::numeric_limits<T>::infinity(); }
35 template<
class T1,
class T2>
36 static void op(
const T1& in1, T2& out)
40 template<
class T1,
class T2,
class T3>
41 static void op(
const T1 in1,
const T2 in2, T3& out)
42 { out = in1, out += in2; }
45 template<
class T1,
class T2>
46 static void iop(
const T1& in1, T2& out)
50 template<
class T1,
class T2,
class T3>
51 static void iop(
const T1 in1,
const T2 in2, T3& out)
52 { out = in1, out -= in2; }
60 static bool bop(
const T& in1,
const T& in2)
65 static bool ibop(
const T& in1,
const T& in2)
71 #endif // #ifndef OPENGM_OPERATIONS_INTEGRATOR_HXX
static void op(const T1 &in1, T2 &out)
operation (in-place)
static void iop(const T1 in1, const T2 in2, T3 &out)
inverse operation (call by reference)
static void neutral(T &out)
neutral element (call by reference)
static T ineutral()
inverse neutral element (with return)
static void iop(const T1 &in1, T2 &out)
inverse operation (in-place)
static void ineutral(T &out)
inverse neutral element (call by reference)
static bool ibop(const T &in1, const T &in2)
inverse boolean operation inverse boolean operation (obsolete)
static void op(const T1 in1, const T2 in2, T3 &out)
operation (not in-place)
static T neutral()
neutral element (with return)
static bool hasbop()
bool operation flag
static bool bop(const T &in1, const T &in2)
inverse boolean operation boolean operation (obsolete)
Integration (addition) as a unary accumulation.