Function encoded as a dense multi-dimensional array, marray::Marray. More...
#include <explicit_function.hxx>
Public Types | |
typedef T | ValueType |
typedef L | LabelType |
typedef I | IndexType |
Public Member Functions | |
ExplicitFunction () | |
ExplicitFunction (const T &value) | |
construct a constant explicit function of order 0 | |
ExplicitFunction (const ExplicitFunction &other) | |
ExplicitFunction & | operator= (const ExplicitFunction &other) |
template<class SHAPE_ITERATOR > | |
ExplicitFunction (SHAPE_ITERATOR shapeBegin, SHAPE_ITERATOR shapeEnd) | |
construct a function encoded by a value table (whose entries are initialized as 0) | |
template<class SHAPE_ITERATOR > | |
ExplicitFunction (SHAPE_ITERATOR shapeBegin, SHAPE_ITERATOR shapeEnd, const T &value) | |
construct a function encoded by a value table (whose entries are initialized with the same value) |
Function encoded as a dense multi-dimensional array, marray::Marray.
grid_potts.cxx, interpixel_boundary_segmentation.cxx, io_graphical_model.cxx, markov-chain.cxx, one_to_one_matching.cxx, opengmBuildGrid.cxx, quick_start.cxx, and space_types.cxx.
Definition at line 15 of file explicit_function.hxx.
typedef I opengm::ExplicitFunction< T, I, L >::IndexType |
Definition at line 22 of file explicit_function.hxx.
typedef L opengm::ExplicitFunction< T, I, L >::LabelType |
Definition at line 21 of file explicit_function.hxx.
typedef T opengm::ExplicitFunction< T, I, L >::ValueType |
Reimplemented from marray::View< T, false, A >.
Definition at line 20 of file explicit_function.hxx.
opengm::ExplicitFunction< T, I, L >::ExplicitFunction | ( | ) | [inline] |
Definition at line 24 of file explicit_function.hxx.
opengm::ExplicitFunction< T, I, L >::ExplicitFunction | ( | const T & | value | ) | [inline] |
construct a constant explicit function of order 0
Definition at line 29 of file explicit_function.hxx.
opengm::ExplicitFunction< T, I, L >::ExplicitFunction | ( | const ExplicitFunction< T, I, L > & | other | ) | [inline] |
Definition at line 33 of file explicit_function.hxx.
opengm::ExplicitFunction< T, I, L >::ExplicitFunction | ( | SHAPE_ITERATOR | shapeBegin, | |
SHAPE_ITERATOR | shapeEnd | |||
) | [inline] |
construct a function encoded by a value table (whose entries are initialized as 0)
Example: A function depending on two variables with 3 and 4 labels, respectively.
size_t shape[] = {3, 4}; ExplicitFunction f(shape, shape + 2};
Definition at line 52 of file explicit_function.hxx.
opengm::ExplicitFunction< T, I, L >::ExplicitFunction | ( | SHAPE_ITERATOR | shapeBegin, | |
SHAPE_ITERATOR | shapeEnd, | |||
const T & | value | |||
) | [inline] |
construct a function encoded by a value table (whose entries are initialized with the same value)
Definition at line 58 of file explicit_function.hxx.
ExplicitFunction& opengm::ExplicitFunction< T, I, L >::operator= | ( | const ExplicitFunction< T, I, L > & | other | ) | [inline] |