|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Constant function. More...
#include <constant.hxx>
Inheritance diagram for opengm::ConstantFunction< T, I, L >:
Collaboration diagram for opengm::ConstantFunction< T, I, L >:Public Types | |
| typedef T | ValueType |
| typedef I | IndexType |
| typedef L | LabelType |
Public Types inherited from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L > | |
| typedef AccessorIterator< FunctionShapeAccessorType, true > | FunctionShapeIteratorType |
Public Member Functions | |
| ConstantFunction () | |
| template<class ITERATOR > | |
| ConstantFunction (ITERATOR, ITERATOR, const T) | |
| size_t | shape (const IndexType) const |
| extension a value table encoding this function would have More... | |
| size_t | size () const |
| number of entries a value table encoding this function would have (used for I/O) More... | |
| size_t | dimension () const |
| template<class ITERATOR > | |
| ValueType | operator() (ITERATOR) const |
| bool | isPotts () const |
| bool | isGeneralizedPotts () const |
| ValueType | min () const |
| ValueType | max () const |
| ValueType | sum () const |
| ValueType | product () const |
| MinMaxFunctor< ValueType > | minMax () const |
Public Member Functions inherited from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L > | |
| 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< T > | 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 ConstantFunction< T, I, L > &) const |
| FunctionShapeIteratorType | functionShapeBegin () const |
| FunctionShapeIteratorType | functionShapeEnd () const |
| size_t | numberOfParameters () const |
| I | parameterIndex (const size_t paramNumber) const |
Constant function.
Definition at line 19 of file constant.hxx.
| typedef I opengm::ConstantFunction< T, I, L >::IndexType |
Definition at line 24 of file constant.hxx.
| typedef L opengm::ConstantFunction< T, I, L >::LabelType |
Definition at line 25 of file constant.hxx.
| typedef T opengm::ConstantFunction< T, I, L >::ValueType |
Definition at line 23 of file constant.hxx.
|
inline |
Definition at line 98 of file constant.hxx.
|
inline |
Definition at line 86 of file constant.hxx.
|
inline |
Definition at line 127 of file constant.hxx.
|
inline |
Definition at line 38 of file constant.hxx.
|
inline |
Definition at line 37 of file constant.hxx.
|
inline |
Definition at line 40 of file constant.hxx.
|
inline |
Definition at line 39 of file constant.hxx.
|
inline |
Definition at line 48 of file constant.hxx.
|
inline |
Definition at line 106 of file constant.hxx.
|
inline |
Definition at line 42 of file constant.hxx.
|
inline |
extension a value table encoding this function would have
| i | dimension |
Definition at line 117 of file constant.hxx.
|
inline |
number of entries a value table encoding this function would have (used for I/O)
Definition at line 134 of file constant.hxx.
|
inline |
Definition at line 41 of file constant.hxx.
1.8.9.1