OpenGM  2.3.x
Discrete Graphical Model Library
Static Public Member Functions | List of all members
opengm::Adder Struct Reference

Addition as a binary operation. More...

#include <adder.hxx>

+ Collaboration diagram for opengm::Adder:

Static Public Member Functions

template<class T >
static T neutral ()
 neutral element (with return) More...
 
template<class T >
static void neutral (T &out)
 neutral element (call by reference) More...
 
template<class T >
static T ineutral ()
 inverse neutral element (with return) More...
 
template<class T >
static void ineutral (T &out)
 inverse neutral element (call by reference) More...
 
template<class T1 , class T2 >
static void op (const T1 &in, T2 &out)
 operation (in-place) More...
 
template<class T1 , class T2 , class T3 >
static void op (const T1 &in1, const T2 &in2, T3 &out)
 operation (not in-place) More...
 
template<class T1 , class T2 >
static void iop (const T1 &in, T2 &out)
 inverse operation (in-place) More...
 
template<class T1 , class T2 , class T3 >
static void iop (const T1 &in1, const T2 &in2, T3 &out)
 inverse operation (not in-place) More...
 
static bool hasbop ()
 bool operation flag More...
 
template<class T1 , class T2 >
static void hop (const T1 &in, T2 &out)
 hyper-operation (in-place) More...
 
template<class T1 , class T2 , class T3 >
static void hop (const T1 &in1, const T2 &in2, T3 &out)
 hyper-operation (not in-place) More...
 
template<class T1 , class T2 >
static void ihop (const T1 &in, T2 &out)
 inverse hyper-operation (in-place) More...
 
template<class T1 , class T2 , class T3 >
static void ihop (const T1 &in1, const T2 &in2, T3 &out)
 inverse hyper-operation (same type, not in-place) More...
 

Detailed Description

Addition as a binary operation.

Examples:
interpixel_boundary_segmentation.cxx, one_to_one_matching.cxx, opengmBuild.cxx, and space_types.cxx.

Definition at line 10 of file adder.hxx.

Member Function Documentation

static bool opengm::Adder::hasbop ( )
inlinestatic

bool operation flag

Definition at line 53 of file adder.hxx.

template<class T1 , class T2 >
static void opengm::Adder::hop ( const T1 &  in,
T2 &  out 
)
inlinestatic

hyper-operation (in-place)

Definition at line 58 of file adder.hxx.

template<class T1 , class T2 , class T3 >
static void opengm::Adder::hop ( const T1 &  in1,
const T2 &  in2,
T3 &  out 
)
inlinestatic

hyper-operation (not in-place)

Definition at line 63 of file adder.hxx.

template<class T1 , class T2 >
static void opengm::Adder::ihop ( const T1 &  in,
T2 &  out 
)
inlinestatic

inverse hyper-operation (in-place)

Definition at line 68 of file adder.hxx.

template<class T1 , class T2 , class T3 >
static void opengm::Adder::ihop ( const T1 &  in1,
const T2 &  in2,
T3 &  out 
)
inlinestatic

inverse hyper-operation (same type, not in-place)

Definition at line 73 of file adder.hxx.

template<class T >
static T opengm::Adder::ineutral ( )
inlinestatic

inverse neutral element (with return)

Definition at line 24 of file adder.hxx.

template<class T >
static void opengm::Adder::ineutral ( T &  out)
inlinestatic

inverse neutral element (call by reference)

Definition at line 29 of file adder.hxx.

template<class T1 , class T2 >
static void opengm::Adder::iop ( const T1 &  in,
T2 &  out 
)
inlinestatic

inverse operation (in-place)

Definition at line 44 of file adder.hxx.

template<class T1 , class T2 , class T3 >
static void opengm::Adder::iop ( const T1 &  in1,
const T2 &  in2,
T3 &  out 
)
inlinestatic

inverse operation (not in-place)

Definition at line 49 of file adder.hxx.

template<class T >
static T opengm::Adder::neutral ( )
inlinestatic

neutral element (with return)

Definition at line 14 of file adder.hxx.

template<class T >
static void opengm::Adder::neutral ( T &  out)
inlinestatic

neutral element (call by reference)

Definition at line 19 of file adder.hxx.

template<class T1 , class T2 >
static void opengm::Adder::op ( const T1 &  in,
T2 &  out 
)
inlinestatic

operation (in-place)

Definition at line 34 of file adder.hxx.

template<class T1 , class T2 , class T3 >
static void opengm::Adder::op ( const T1 &  in1,
const T2 &  in2,
T3 &  out 
)
inlinestatic

operation (not in-place)

Definition at line 39 of file adder.hxx.