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

#include <accumulated_view.hxx>

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

Public Types

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

Public Member Functions

 AccumulatedViewFunction ()
 
 AccumulatedViewFunction (const FactorType &)
 
template<class ITERATOR >
 AccumulatedViewFunction (ITERATOR begin, ITERATOR end)
 
template<class ITERATOR >
ValueType operator() (ITERATOR begin) const
 
LabelType shape (const IndexType) const
 
IndexType dimension () const
 
IndexType size () const
 
template<class Iterator >
AccumulatedViewFunction< GM >::ValueType operator() (Iterator begin) const
 
- Public Member Functions inherited from opengm::FunctionBase< AccumulatedViewFunction< 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 AccumulatedViewFunction< 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::AccumulatedViewFunction< GM >

Definition at line 37 of file accumulated_view.hxx.

Member Typedef Documentation

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

Definition at line 45 of file accumulated_view.hxx.

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

Definition at line 42 of file accumulated_view.hxx.

template<class GM>
typedef GM::IndexType opengm::AccumulatedViewFunction< GM >::LabelType

Definition at line 43 of file accumulated_view.hxx.

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

Definition at line 46 of file accumulated_view.hxx.

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

Definition at line 44 of file accumulated_view.hxx.

Constructor & Destructor Documentation

Definition at line 64 of file accumulated_view.hxx.

template<class GM >
opengm::AccumulatedViewFunction< GM >::AccumulatedViewFunction ( const FactorType factor)

Definition at line 70 of file accumulated_view.hxx.

template<class GM >
template<class ITERATOR >
opengm::AccumulatedViewFunction< GM >::AccumulatedViewFunction ( ITERATOR  begin,
ITERATOR  end 
)

Definition at line 80 of file accumulated_view.hxx.

Member Function Documentation

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

Definition at line 121 of file accumulated_view.hxx.

template<class GM>
template<class ITERATOR >
ValueType opengm::AccumulatedViewFunction< GM >::operator() ( ITERATOR  begin) const
template<class GM>
template<class Iterator >
AccumulatedViewFunction<GM>::ValueType opengm::AccumulatedViewFunction< GM >::operator() ( Iterator  begin) const

Definition at line 95 of file accumulated_view.hxx.

template<class GM >
AccumulatedViewFunction< GM >::LabelType opengm::AccumulatedViewFunction< GM >::shape ( const IndexType  index) const

Definition at line 111 of file accumulated_view.hxx.

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

Definition at line 129 of file accumulated_view.hxx.