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

ViewConvertFunction convert semi-ring in a lazy fashion. More...

#include <view_convert_function.hxx>

+ Inheritance diagram for opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >:
+ Collaboration diagram for opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >:

Public Types

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

Public Member Functions

 ViewConvertFunction ()
 
 ViewConvertFunction (const FactorType &)
 
 ViewConvertFunction (const FactorType &, const ValueType)
 
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< ViewConvertFunction< GM, ACC, VALUE_TYPE >, 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 ViewConvertFunction< GM, ACC, VALUE_TYPE > &) const
 
FunctionShapeIteratorType functionShapeBegin () const
 
FunctionShapeIteratorType functionShapeEnd () const
 
size_t numberOfWeights () const
 
GM::IndexType weightIndex (const size_t weightNumber) const
 
void setWeights (const opengm::learning::Weights< GM::ValueType > &) const
 
GM::ValueType weightGradient (size_t, ITERATOR) const
 

Detailed Description

template<class GM, class ACC, class VALUE_TYPE>
class opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >

ViewConvertFunction convert semi-ring in a lazy fashion.

Definition at line 68 of file view_convert_function.hxx.

Member Typedef Documentation

§ FactorType

template<class GM, class ACC, class VALUE_TYPE>
typedef GM::FactorType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::FactorType

Definition at line 75 of file view_convert_function.hxx.

§ IndexType

template<class GM, class ACC, class VALUE_TYPE>
typedef GM::IndexType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::IndexType

Definition at line 77 of file view_convert_function.hxx.

§ LabelType

template<class GM, class ACC, class VALUE_TYPE>
typedef GM::LabelType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::LabelType

Definition at line 78 of file view_convert_function.hxx.

§ OperatorType

template<class GM, class ACC, class VALUE_TYPE>
typedef GM::OperatorType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::OperatorType

Definition at line 76 of file view_convert_function.hxx.

§ value_type

template<class GM, class ACC, class VALUE_TYPE>
typedef VALUE_TYPE opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::value_type

Definition at line 74 of file view_convert_function.hxx.

§ ValueType

template<class GM, class ACC, class VALUE_TYPE>
typedef VALUE_TYPE opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::ValueType

Definition at line 73 of file view_convert_function.hxx.

Constructor & Destructor Documentation

§ ViewConvertFunction() [1/3]

template<class GM , class ACC , class VALUE_TYPE >
opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::ViewConvertFunction ( )
inline

Definition at line 95 of file view_convert_function.hxx.

§ ViewConvertFunction() [2/3]

template<class GM, class ACC, class VALUE_TYPE>
opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::ViewConvertFunction ( const FactorType )

§ ViewConvertFunction() [3/3]

template<class GM, class ACC, class VALUE_TYPE>
opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::ViewConvertFunction ( const FactorType ,
const ValueType   
)

Member Function Documentation

§ dimension()

template<class GM , class ACC , class VALUE_TYPE >
ViewConvertFunction< GM, ACC, VALUE_TYPE >::IndexType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::dimension ( ) const
inline

Definition at line 139 of file view_convert_function.hxx.

§ operator()()

template<class GM , class ACC , class VALUE_TYPE >
template<class Iterator >
ViewConvertFunction< GM, ACC, VALUE_TYPE >::ValueType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::operator() ( Iterator  begin) const
inline

Definition at line 122 of file view_convert_function.hxx.

+ Here is the call graph for this function:

§ shape()

template<class GM, class ACC, class VALUE_TYPE>
ViewConvertFunction< GM, ACC, VALUE_TYPE >::IndexType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::shape ( const IndexType  ) const
inline

Definition at line 131 of file view_convert_function.hxx.

+ Here is the caller graph for this function:

§ size()

template<class GM , class ACC , class VALUE_TYPE >
ViewConvertFunction< GM, ACC, VALUE_TYPE >::IndexType opengm::ViewConvertFunction< GM, ACC, VALUE_TYPE >::size ( ) const
inline

Definition at line 145 of file view_convert_function.hxx.