OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | List of all members
opengm::FuseViewFunction< GM > Class Template Reference

#include <fusion_mover.hxx>

+ Inheritance diagram for opengm::FuseViewFunction< GM >:
+ Collaboration diagram for opengm::FuseViewFunction< GM >:

Public Types

typedef GM::ValueType ValueType
 
typedef ValueType value_type
 
typedef GM::FactorType FactorType
 
typedef GM::OperatorType OperatorType
 
typedef GM::IndexType IndexType
 
typedef GM::LabelType LabelType
 
- Public Types inherited from opengm::FunctionBase< FuseViewFunction< GM >, GM::ValueType, GM::IndexType, GM::LabelType >
typedef AccessorIterator< FunctionShapeAccessorType, true > FunctionShapeIteratorType
 

Public Member Functions

 FuseViewFunction ()
 
 FuseViewFunction (const FactorType &factor, const std::vector< LabelType > &argA, const std::vector< LabelType > &argB)
 
template<class Iterator >
ValueType operator() (Iterator begin) const
 
IndexType shape (const IndexType) const
 
IndexType dimension () const
 
IndexType size () const
 
- Public Member Functions inherited from opengm::FunctionBase< FuseViewFunction< GM >, GM::ValueType, GM::IndexType, GM::LabelType >
bool isPotts () const
 
bool isGeneralizedPotts () const
 
bool isSubmodular () const
 
bool isSquaredDifference () const
 
bool isTruncatedSquaredDifference () const
 
bool isAbsoluteDifference () const
 
bool isTruncatedAbsoluteDifference () const
 
bool isLinearConstraint () const
 
MinMaxFunctor< GM::ValueType > minMax () const
 find minimum and maximum of the function in a single sweep More...
 
ReturnType min () const
 
ReturnType max () const
 
ReturnType sum () const
 
ReturnType product () const
 
ReturnType accumulate () const
 accumulate all values of the function More...
 
void forAllValuesInOrder (FUNCTOR &functor) const
 call a functor for each value of the function (in lexicographical order of the variable indices) More...
 
void forAllValuesInSwitchedOrder (FUNCTOR &functor) const
 
void forAllValuesInAnyOrder (FUNCTOR &functor) const
 call a functor for each value of the function (in un-specified order) More...
 
void forAtLeastAllUniqueValues (FUNCTOR &functor) const
 call a functor for at least all unique values of the function More...
 
void forAllValuesInOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const
 
void forAllValuesInAnyOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const
 
void forAtLeastAllUniqueValuesWithCoordinate (COORDINATE_FUNCTOR &functor) const
 
bool operator== (const FuseViewFunction< GM > &) const
 
FunctionShapeIteratorType functionShapeBegin () const
 
FunctionShapeIteratorType functionShapeEnd () const
 
size_t numberOfParameters () const
 
GM::IndexType parameterIndex (const size_t paramNumber) const
 

Detailed Description

template<class GM>
class opengm::FuseViewFunction< GM >

Definition at line 38 of file fusion_mover.hxx.

Member Typedef Documentation

template<class GM >
typedef GM::FactorType opengm::FuseViewFunction< GM >::FactorType

Definition at line 44 of file fusion_mover.hxx.

template<class GM >
typedef GM::IndexType opengm::FuseViewFunction< GM >::IndexType

Definition at line 46 of file fusion_mover.hxx.

template<class GM >
typedef GM::LabelType opengm::FuseViewFunction< GM >::LabelType

Definition at line 47 of file fusion_mover.hxx.

template<class GM >
typedef GM::OperatorType opengm::FuseViewFunction< GM >::OperatorType

Definition at line 45 of file fusion_mover.hxx.

template<class GM >
typedef ValueType opengm::FuseViewFunction< GM >::value_type

Definition at line 43 of file fusion_mover.hxx.

template<class GM >
typedef GM::ValueType opengm::FuseViewFunction< GM >::ValueType

Definition at line 42 of file fusion_mover.hxx.

Constructor & Destructor Documentation

template<class GM >
opengm::FuseViewFunction< GM >::FuseViewFunction ( )
template<class GM >
opengm::FuseViewFunction< GM >::FuseViewFunction ( const FactorType factor,
const std::vector< LabelType > &  argA,
const std::vector< LabelType > &  argB 
)
inline

Definition at line 51 of file fusion_mover.hxx.

Member Function Documentation

template<class GM >
IndexType opengm::FuseViewFunction< GM >::dimension ( ) const
inline

Definition at line 89 of file fusion_mover.hxx.

template<class GM >
template<class Iterator >
ValueType opengm::FuseViewFunction< GM >::operator() ( Iterator  begin) const
inline

Definition at line 67 of file fusion_mover.hxx.

template<class GM >
IndexType opengm::FuseViewFunction< GM >::shape ( const IndexType  ) const
inline

Definition at line 84 of file fusion_mover.hxx.

template<class GM >
IndexType opengm::FuseViewFunction< GM >::size ( ) const
inline

Definition at line 94 of file fusion_mover.hxx.