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

#include <lp_reparametrization.hxx>

+ Inheritance diagram for opengm::ReparametrizationView< GM, REPASTORAGE >:
+ Collaboration diagram for opengm::ReparametrizationView< GM, REPASTORAGE >:

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
 
typedef GM GraphicalModelType
 
typedef REPASTORAGE ReparametrizationStorageType
 
- Public Types inherited from opengm::FunctionBase< ReparametrizationView< GM, REPASTORAGE >, GM::ValueType, GM::IndexType, GM::LabelType >
typedef AccessorIterator< FunctionShapeAccessorType, true > FunctionShapeIteratorType
 

Public Member Functions

 ReparametrizationView (const FactorType &factor, const REPASTORAGE &repaStorage, IndexType factorId)
 
template<class Iterator >
ValueType operator() (Iterator begin) const
 
LabelType shape (const IndexType &index) const
 
IndexType dimension () const
 
IndexType size () const
 
- Public Member Functions inherited from opengm::FunctionBase< ReparametrizationView< GM, REPASTORAGE >, 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 ReparametrizationView< GM, REPASTORAGE > &) 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 REPASTORAGE>
class opengm::ReparametrizationView< GM, REPASTORAGE >

Definition at line 238 of file lp_reparametrization.hxx.

Member Typedef Documentation

template<class GM, class REPASTORAGE>
typedef GM::FactorType opengm::ReparametrizationView< GM, REPASTORAGE >::FactorType

Definition at line 244 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
typedef GM opengm::ReparametrizationView< GM, REPASTORAGE >::GraphicalModelType

Definition at line 249 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
typedef GM::IndexType opengm::ReparametrizationView< GM, REPASTORAGE >::IndexType

Definition at line 246 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
typedef GM::LabelType opengm::ReparametrizationView< GM, REPASTORAGE >::LabelType

Definition at line 247 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
typedef GM::OperatorType opengm::ReparametrizationView< GM, REPASTORAGE >::OperatorType

Definition at line 245 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
typedef REPASTORAGE opengm::ReparametrizationView< GM, REPASTORAGE >::ReparametrizationStorageType

Definition at line 250 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
typedef ValueType opengm::ReparametrizationView< GM, REPASTORAGE >::value_type

Definition at line 243 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
typedef GM::ValueType opengm::ReparametrizationView< GM, REPASTORAGE >::ValueType

Definition at line 242 of file lp_reparametrization.hxx.

Constructor & Destructor Documentation

template<class GM, class REPASTORAGE>
opengm::ReparametrizationView< GM, REPASTORAGE >::ReparametrizationView ( const FactorType factor,
const REPASTORAGE &  repaStorage,
IndexType  factorId 
)
inline

Definition at line 252 of file lp_reparametrization.hxx.

Member Function Documentation

template<class GM, class REPASTORAGE>
IndexType opengm::ReparametrizationView< GM, REPASTORAGE >::dimension ( ) const
inline

Definition at line 267 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
template<class Iterator >
ValueType opengm::ReparametrizationView< GM, REPASTORAGE >::operator() ( Iterator  begin) const
inline

Definition at line 257 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
LabelType opengm::ReparametrizationView< GM, REPASTORAGE >::shape ( const IndexType index) const
inline

Definition at line 266 of file lp_reparametrization.hxx.

template<class GM, class REPASTORAGE>
IndexType opengm::ReparametrizationView< GM, REPASTORAGE >::size ( ) const
inline

Definition at line 268 of file lp_reparametrization.hxx.