Constant function. More...
#include <constant.hxx>
Public Types | |
typedef T | ValueType |
typedef I | IndexType |
typedef L | LabelType |
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 | |
size_t | size () const |
number of entries a value table encoding this function would have (used for I/O) | |
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 |
find minimum and maximum of the function in a single sweep |
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.
opengm::ConstantFunction< T, I, L >::ConstantFunction | ( | ) | [inline] |
Definition at line 98 of file constant.hxx.
opengm::ConstantFunction< T, I, L >::ConstantFunction | ( | ITERATOR | shapeBegin, | |
ITERATOR | shapeEnd, | |||
const T | value | |||
) | [inline] |
Definition at line 86 of file constant.hxx.
size_t opengm::ConstantFunction< T, I, L >::dimension | ( | ) | const [inline] |
Definition at line 127 of file constant.hxx.
bool opengm::ConstantFunction< T, I, L >::isGeneralizedPotts | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.
Definition at line 38 of file constant.hxx.
bool opengm::ConstantFunction< T, I, L >::isPotts | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.
Definition at line 37 of file constant.hxx.
ValueType opengm::ConstantFunction< T, I, L >::max | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.
Definition at line 40 of file constant.hxx.
ValueType opengm::ConstantFunction< T, I, L >::min | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.
Definition at line 39 of file constant.hxx.
MinMaxFunctor<ValueType> opengm::ConstantFunction< T, I, L >::minMax | ( | ) | const [inline] |
find minimum and maximum of the function in a single sweep
Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.
Definition at line 48 of file constant.hxx.
ConstantFunction< T, I, L >::ValueType opengm::ConstantFunction< T, I, L >::operator() | ( | ITERATOR | begin | ) | const [inline] |
Definition at line 106 of file constant.hxx.
ValueType opengm::ConstantFunction< T, I, L >::product | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.
Definition at line 42 of file constant.hxx.
size_t opengm::ConstantFunction< T, I, L >::shape | ( | const IndexType | i | ) | const [inline] |
extension a value table encoding this function would have
i | dimension |
Definition at line 117 of file constant.hxx.
size_t opengm::ConstantFunction< T, I, L >::size | ( | ) | const [inline] |
number of entries a value table encoding this function would have (used for I/O)
Definition at line 134 of file constant.hxx.
ValueType opengm::ConstantFunction< T, I, L >::sum | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< ConstantFunction< T, I, L >, T, I, L >.
Definition at line 41 of file constant.hxx.