OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | Friends | List of all members
opengm::IndependentFactor< T, I, L > Class Template Reference

Factor (with corresponding function and variable indices), independent of a GraphicalModel. More...

#include <graphicalmodel_factor.hxx>

+ Collaboration diagram for opengm::IndependentFactor< T, I, L >:

Public Types

enum  FunctionInformation { NrOfFunctionTypes = 1 }
 
typedef T ValueType
 
typedef I IndexType
 
typedef L LabelType
 
typedef ExplicitFunction< ValueType, IndexType, LabelTypeFunctionType
 
typedef meta::TypeListGenerator< FunctionType >::type FunctionTypeList
 
typedef const size_tShapeIteratorType
 
typedef std::vector< IndexType >::const_iterator VariablesIteratorType
 
typedef std::vector< IndexTypeVisContainerType
 

Public Member Functions

 IndependentFactor ()
 
 IndependentFactor (const ValueType)
 construct a constant (order 0) independent factor More...
 
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
 IndependentFactor (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR)
 construct an independent factor using variable indices and the extension of a value table More...
 
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
 IndependentFactor (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR, const ValueType)
 
template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR >
 IndependentFactor (const GRAPHICAL_MODEL &, VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, const ValueType=ValueType())
 
 IndependentFactor (const IndependentFactor &)
 
template<class GRAPHICAL_MODEL >
 IndependentFactor (const Factor< GRAPHICAL_MODEL > &)
 
IndependentFactoroperator= (const IndependentFactor &)
 
template<class GRAPHICAL_MODEL >
IndependentFactoroperator= (const Factor< GRAPHICAL_MODEL > &)
 
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
void assign (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR)
 
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
void assign (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR, const ValueType)
 
template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR >
void assign (const GRAPHICAL_MODEL &, VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR)
 
template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR >
void assign (const GRAPHICAL_MODEL &, VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, const ValueType)
 
void assign (const ValueType)
 
ShapeIteratorType shapeBegin () const
 
ShapeIteratorType shapeEnd () const
 
VariablesIteratorType variableIndicesBegin () const
 
VariablesIteratorType variableIndicesEnd () const
 
const std::vector< IndexType > & variableIndexSequence () const
 
template<size_t FUNCTION_TYPE_INDEX>
const FunctionTypefunction () const
 
size_t numberOfVariables () const
 
IndexType numberOfLabels (const IndexType) const
 return the number of labels of a specific variable More...
 
IndexType shape (const size_t dimIndex) const
 return the extension of the value table of the of the function in a specific dimension More...
 
size_t size () const
 return the number of entries of the value table of the function More...
 
IndexType variableIndex (const size_t) const
 return the index of the j-th variable More...
 
template<class ITERATOR >
void variableIndices (ITERATOR) const
 
template<class ITERATOR >
operator() (ITERATOR) const
 evaluate the function underlying the factor, given labels to be assigned the variables More...
 
operator() (const IndexType) const
 evaluate an independent factor with 1 variable More...
 
operator() (const IndexType, const IndexType) const
 evaluate an independent factor with 2 variables More...
 
operator() (const IndexType, const IndexType, const IndexType) const
 evaluate an independent factor with 3 variables More...
 
operator() (const IndexType, const IndexType, const IndexType, const IndexType) const
 evaluate an independent factor with 4 variables More...
 
template<class INDEX_ITERATOR , class STATE_ITERATOR >
void fixVariables (INDEX_ITERATOR, INDEX_ITERATOR, STATE_ITERATOR)
 assign specific labels to a specific subset of variables (reduces the order) More...
 
template<class ITERATOR >
T & operator() (ITERATOR)
 evaluate the independent factor More...
 
T & operator() (const IndexType)
 evaluate an independent factor with 1 variables More...
 
T & operator() (const IndexType, const IndexType)
 evaluate an independent factor with 2 variables More...
 
T & operator() (const IndexType, const IndexType, const IndexType)
 evaluate an independent factor with 3 variables More...
 
T & operator() (const IndexType, const IndexType, const IndexType, const IndexType)
 evaluate an independent factor with 4 variables More...
 
template<class UNARY_OPERATOR_TYPE >
void operateUnary (UNARY_OPERATOR_TYPE unaryOperator)
 
template<class BINARY_OPERATOR_TYPE >
void operateBinary (const T value, BINARY_OPERATOR_TYPE binaryOperator)
 
template<class GRAPHICAL_MODEL , class BINARY_OPERATOR_TYPE >
void operateBinary (const Factor< GRAPHICAL_MODEL > &, BINARY_OPERATOR_TYPE binaryOperator)
 
template<class BINARY_OPERATOR_TYPE >
void operateBinary (const IndependentFactor< T, I, L > &, BINARY_OPERATOR_TYPE binaryOperator)
 
template<class BINARY_OPERATOR_TYPE >
void operateBinary (const IndependentFactor< T, I, L > &, const IndependentFactor< T, I, L > &, BINARY_OPERATOR_TYPE binaryOperator)
 
void subtractOffset ()
 
template<class ACCUMULATOR >
void accumulate (ValueType &, std::vector< LabelType > &) const
 
template<class ACCUMULATOR >
void accumulate (ValueType &) const
 
template<class ACCUMULATOR , class VariablesIterator >
void accumulate (VariablesIterator, VariablesIterator, IndependentFactor< T, I, L > &) const
 
template<class ACCUMULATOR , class VariablesIterator >
void accumulate (VariablesIterator, VariablesIterator)
 
const FunctionTypefunction () const
 
bool isPotts ()
 
bool isGeneralizedPotts ()
 
bool isSubmodular ()
 
bool isSquaredDifference ()
 
bool isTruncatedSquaredDifference ()
 
bool isAbsoluteDifference ()
 
bool isTruncatedAbsoluteDifference ()
 
min ()
 
max ()
 
sum ()
 
product ()
 
template<class GRAPHICAL_MODEL >
IndependentFactor< T, I, L > & operator= (const Factor< GRAPHICAL_MODEL > &src)
 

Friends

template<class ACC , class A , class ViAccIterator >
void accumulate (A &, ViAccIterator, ViAccIterator)
 

Detailed Description

template<class T, class I, class L>
class opengm::IndependentFactor< T, I, L >

Factor (with corresponding function and variable indices), independent of a GraphicalModel.

Definition at line 277 of file graphicalmodel_factor.hxx.

Member Typedef Documentation

§ FunctionType

template<class T, class I, class L>
typedef ExplicitFunction<ValueType,IndexType,LabelType> opengm::IndependentFactor< T, I, L >::FunctionType

Definition at line 282 of file graphicalmodel_factor.hxx.

§ FunctionTypeList

template<class T, class I, class L>
typedef meta::TypeListGenerator<FunctionType>::type opengm::IndependentFactor< T, I, L >::FunctionTypeList

Definition at line 283 of file graphicalmodel_factor.hxx.

§ IndexType

template<class T, class I, class L>
typedef I opengm::IndependentFactor< T, I, L >::IndexType

Definition at line 280 of file graphicalmodel_factor.hxx.

§ LabelType

template<class T, class I, class L>
typedef L opengm::IndependentFactor< T, I, L >::LabelType

Definition at line 281 of file graphicalmodel_factor.hxx.

§ ShapeIteratorType

template<class T, class I, class L>
typedef const size_t* opengm::IndependentFactor< T, I, L >::ShapeIteratorType

Definition at line 287 of file graphicalmodel_factor.hxx.

§ ValueType

template<class T, class I, class L>
typedef T opengm::IndependentFactor< T, I, L >::ValueType

Definition at line 279 of file graphicalmodel_factor.hxx.

§ VariablesIteratorType

template<class T, class I, class L>
typedef std::vector<IndexType>::const_iterator opengm::IndependentFactor< T, I, L >::VariablesIteratorType

Definition at line 288 of file graphicalmodel_factor.hxx.

§ VisContainerType

template<class T, class I, class L>
typedef std::vector<IndexType> opengm::IndependentFactor< T, I, L >::VisContainerType

Definition at line 290 of file graphicalmodel_factor.hxx.

Member Enumeration Documentation

§ FunctionInformation

template<class T, class I, class L>
enum opengm::IndependentFactor::FunctionInformation
Enumerator
NrOfFunctionTypes 

Definition at line 284 of file graphicalmodel_factor.hxx.

Constructor & Destructor Documentation

§ IndependentFactor() [1/7]

template<class T , class I , class L >
opengm::IndependentFactor< T, I, L >::IndependentFactor ( )
inline

Definition at line 967 of file graphicalmodel_factor.hxx.

+ Here is the caller graph for this function:

§ IndependentFactor() [2/7]

template<class T , class I , class L >
opengm::IndependentFactor< T, I, L >::IndependentFactor ( const ValueType  constant)
inline

construct a constant (order 0) independent factor

Definition at line 975 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ IndependentFactor() [3/7]

template<class T , class I , class L >
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
opengm::IndependentFactor< T, I, L >::IndependentFactor ( VARIABLE_INDEX_ITERATOR  beginVi,
VARIABLE_INDEX_ITERATOR  endVi,
SHAPE_ITERATOR  beginShape,
SHAPE_ITERATOR  endShape 
)
inline

construct an independent factor using variable indices and the extension of a value table

Parameters
beginViiterator to the beginning of a sequence of variable indices
endViiterator to the end of a sequence of variable indices
shapeBeginiterator to the beginning of a sequence of extensions
shapeBeginiterator to the end of a sequence of extensions

Definition at line 990 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ IndependentFactor() [4/7]

template<class T , class I , class L >
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
opengm::IndependentFactor< T, I, L >::IndependentFactor ( VARIABLE_INDEX_ITERATOR  beginVi,
VARIABLE_INDEX_ITERATOR  endVi,
SHAPE_ITERATOR  beginShape,
SHAPE_ITERATOR  endShape,
const ValueType  constant 
)
inline

Definition at line 1006 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ IndependentFactor() [5/7]

template<class T , class I , class L >
template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR >
opengm::IndependentFactor< T, I, L >::IndependentFactor ( const GRAPHICAL_MODEL &  gm,
VARIABLE_INDEX_ITERATOR  begin,
VARIABLE_INDEX_ITERATOR  end,
const ValueType  value = ValueType() 
)
inline

Definition at line 1132 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ IndependentFactor() [6/7]

template<class T , class I , class L >
opengm::IndependentFactor< T, I, L >::IndependentFactor ( const IndependentFactor< T, I, L > &  src)
inline

Definition at line 1151 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ IndependentFactor() [7/7]

template<class T , class I , class L >
template<class GRAPHICAL_MODEL >
opengm::IndependentFactor< T, I, L >::IndependentFactor ( const Factor< GRAPHICAL_MODEL > &  src)
inline

Definition at line 1168 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

Member Function Documentation

§ accumulate() [1/4]

template<class T , class I , class L >
template<class ACCUMULATOR >
void opengm::IndependentFactor< T, I, L >::accumulate ( ValueType result,
std::vector< LabelType > &  resultState 
) const
inline

Definition at line 1487 of file graphicalmodel_factor.hxx.

+ Here is the caller graph for this function:

§ accumulate() [2/4]

template<class T , class I , class L >
template<class ACCUMULATOR >
void opengm::IndependentFactor< T, I, L >::accumulate ( ValueType result) const
inline

Definition at line 1498 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ accumulate() [3/4]

template<class T, class I, class L>
template<class ACCUMULATOR , class VariablesIterator >
void opengm::IndependentFactor< T, I, L >::accumulate ( VariablesIterator  begin,
VariablesIterator  end,
IndependentFactor< T, I, L > &  dstFactor 
) const
inline

Definition at line 1508 of file graphicalmodel_factor.hxx.

§ accumulate() [4/4]

template<class T, class I, class L>
template<class ACCUMULATOR , class VariablesIterator >
void opengm::IndependentFactor< T, I, L >::accumulate ( VariablesIterator  begin,
VariablesIterator  end 
)
inline

Definition at line 1519 of file graphicalmodel_factor.hxx.

§ assign() [1/5]

template<class T , class I , class L >
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
void opengm::IndependentFactor< T, I, L >::assign ( VARIABLE_INDEX_ITERATOR  beginVi,
VARIABLE_INDEX_ITERATOR  endVi,
SHAPE_ITERATOR  beginShape,
SHAPE_ITERATOR  endShape 
)
inline

Definition at line 1023 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ assign() [2/5]

template<class T , class I , class L >
template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR >
void opengm::IndependentFactor< T, I, L >::assign ( VARIABLE_INDEX_ITERATOR  beginVi,
VARIABLE_INDEX_ITERATOR  endVi,
SHAPE_ITERATOR  beginShape,
SHAPE_ITERATOR  endShape,
const ValueType  constant 
)
inline

Definition at line 1039 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ assign() [3/5]

template<class T , class I , class L >
template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR >
void opengm::IndependentFactor< T, I, L >::assign ( const GRAPHICAL_MODEL &  gm,
VARIABLE_INDEX_ITERATOR  begin,
VARIABLE_INDEX_ITERATOR  end 
)
inline

Definition at line 1092 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ assign() [4/5]

template<class T , class I , class L >
template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR >
void opengm::IndependentFactor< T, I, L >::assign ( const GRAPHICAL_MODEL &  gm,
VARIABLE_INDEX_ITERATOR  begin,
VARIABLE_INDEX_ITERATOR  end,
const ValueType  value 
)
inline

Definition at line 1111 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ assign() [5/5]

template<class T , class I , class L >
void opengm::IndependentFactor< T, I, L >::assign ( const ValueType  constant)
inline

Definition at line 1080 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ fixVariables()

template<class T , class I , class L >
template<class INDEX_ITERATOR , class STATE_ITERATOR >
void opengm::IndependentFactor< T, I, L >::fixVariables ( INDEX_ITERATOR  beginIndex,
INDEX_ITERATOR  endIndex,
STATE_ITERATOR  beginLabels 
)

assign specific labels to a specific subset of variables (reduces the order)

Parameters
beginIndexiterator to the beginning of a sequence of variable indices
endIndexiterator to the end of a sequence of variable indices
beginLabelsiterator to the beginning of a sequence of labels

Definition at line 1601 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ function() [1/2]

template<class T , class I , class L >
template<size_t FUNCTION_TYPE_INDEX>
const IndependentFactor< T, I, L >::FunctionType & opengm::IndependentFactor< T, I, L >::function ( ) const
inline

Definition at line 1072 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ function() [2/2]

template<class T , class I , class L >
const IndependentFactor< T, I, L >::FunctionType & opengm::IndependentFactor< T, I, L >::function ( ) const
inline

Definition at line 1064 of file graphicalmodel_factor.hxx.

§ isAbsoluteDifference()

template<class T, class I, class L>
bool opengm::IndependentFactor< T, I, L >::isAbsoluteDifference ( )
inline

Definition at line 378 of file graphicalmodel_factor.hxx.

§ isGeneralizedPotts()

template<class T, class I, class L>
bool opengm::IndependentFactor< T, I, L >::isGeneralizedPotts ( )
inline

Definition at line 370 of file graphicalmodel_factor.hxx.

§ isPotts()

template<class T, class I, class L>
bool opengm::IndependentFactor< T, I, L >::isPotts ( )
inline

Definition at line 368 of file graphicalmodel_factor.hxx.

§ isSquaredDifference()

template<class T, class I, class L>
bool opengm::IndependentFactor< T, I, L >::isSquaredDifference ( )
inline

Definition at line 374 of file graphicalmodel_factor.hxx.

§ isSubmodular()

template<class T, class I, class L>
bool opengm::IndependentFactor< T, I, L >::isSubmodular ( )
inline

Definition at line 372 of file graphicalmodel_factor.hxx.

§ isTruncatedAbsoluteDifference()

template<class T, class I, class L>
bool opengm::IndependentFactor< T, I, L >::isTruncatedAbsoluteDifference ( )
inline

Definition at line 380 of file graphicalmodel_factor.hxx.

§ isTruncatedSquaredDifference()

template<class T, class I, class L>
bool opengm::IndependentFactor< T, I, L >::isTruncatedSquaredDifference ( )
inline

Definition at line 376 of file graphicalmodel_factor.hxx.

§ max()

template<class T, class I, class L>
T opengm::IndependentFactor< T, I, L >::max ( )
inline

Definition at line 384 of file graphicalmodel_factor.hxx.

§ min()

template<class T, class I, class L>
T opengm::IndependentFactor< T, I, L >::min ( )
inline

Definition at line 383 of file graphicalmodel_factor.hxx.

§ numberOfLabels()

template<class T , class I , class L >
IndependentFactor< T, I, L >::IndexType opengm::IndependentFactor< T, I, L >::numberOfLabels ( const IndexType  index) const
inline

return the number of labels of a specific variable

Definition at line 1251 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ numberOfVariables()

template<class T , class I , class L >
size_t opengm::IndependentFactor< T, I, L >::numberOfVariables ( ) const
inline

Definition at line 1242 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ operateBinary() [1/4]

template<class T, class I , class L >
template<class BINARY_OPERATOR_TYPE >
void opengm::IndependentFactor< T, I, L >::operateBinary ( const T  value,
BINARY_OPERATOR_TYPE  binaryOperator 
)
inline

Definition at line 1435 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ operateBinary() [2/4]

template<class T, class I , class L >
template<class GRAPHICAL_MODEL , class BINARY_OPERATOR_TYPE >
void opengm::IndependentFactor< T, I, L >::operateBinary ( const Factor< GRAPHICAL_MODEL > &  srcB,
BINARY_OPERATOR_TYPE  binaryOperator 
)
inline

Definition at line 1453 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ operateBinary() [3/4]

template<class T, class I, class L>
template<class BINARY_OPERATOR_TYPE >
void opengm::IndependentFactor< T, I, L >::operateBinary ( const IndependentFactor< T, I, L > &  srcB,
BINARY_OPERATOR_TYPE  binaryOperator 
)
inline

Definition at line 1464 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ operateBinary() [4/4]

template<class T, class I, class L>
template<class BINARY_OPERATOR_TYPE >
void opengm::IndependentFactor< T, I, L >::operateBinary ( const IndependentFactor< T, I, L > &  srcA,
const IndependentFactor< T, I, L > &  srcB,
BINARY_OPERATOR_TYPE  binaryOperator 
)
inline

Definition at line 1475 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ operateUnary()

template<class T , class I , class L >
template<class UNARY_OPERATOR_TYPE >
void opengm::IndependentFactor< T, I, L >::operateUnary ( UNARY_OPERATOR_TYPE  unaryOperator)
inline

Definition at line 1418 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ operator()() [1/10]

template<class T , class I , class L >
template<class ITERATOR >
T opengm::IndependentFactor< T, I, L >::operator() ( ITERATOR  begin) const
inline

evaluate the function underlying the factor, given labels to be assigned the variables

Parameters
beginiterator to the beginning of a sequence of labels

Definition at line 1341 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ operator()() [2/10]

template<class T , class I , class L >
T opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0) const
inline

evaluate an independent factor with 1 variable

Definition at line 1365 of file graphicalmodel_factor.hxx.

§ operator()() [3/10]

template<class T , class I , class L >
T opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0,
const IndexType  x1 
) const
inline

evaluate an independent factor with 2 variables

Definition at line 1376 of file graphicalmodel_factor.hxx.

§ operator()() [4/10]

template<class T , class I , class L >
T opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0,
const IndexType  x1,
const IndexType  x2 
) const
inline

evaluate an independent factor with 3 variables

Definition at line 1389 of file graphicalmodel_factor.hxx.

§ operator()() [5/10]

template<class T , class I , class L >
T opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0,
const IndexType  x1,
const IndexType  x2,
const IndexType  x3 
) const
inline

evaluate an independent factor with 4 variables

Definition at line 1403 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ operator()() [6/10]

template<class T , class I , class L >
template<class ITERATOR >
T & opengm::IndependentFactor< T, I, L >::operator() ( ITERATOR  begin)
inline

evaluate the independent factor

Parameters
beginiterator to the beginning of a sequence of labels

Definition at line 1531 of file graphicalmodel_factor.hxx.

§ operator()() [7/10]

template<class T , class I , class L >
T & opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0)
inline

evaluate an independent factor with 1 variables

Definition at line 1540 of file graphicalmodel_factor.hxx.

§ operator()() [8/10]

template<class T , class I , class L >
T & opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0,
const IndexType  x1 
)
inline

evaluate an independent factor with 2 variables

Definition at line 1549 of file graphicalmodel_factor.hxx.

§ operator()() [9/10]

template<class T , class I , class L >
T & opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0,
const IndexType  x1,
const IndexType  x2 
)
inline

evaluate an independent factor with 3 variables

Definition at line 1559 of file graphicalmodel_factor.hxx.

§ operator()() [10/10]

template<class T , class I , class L >
T & opengm::IndependentFactor< T, I, L >::operator() ( const IndexType  x0,
const IndexType  x1,
const IndexType  x2,
const IndexType  x3 
)
inline

evaluate an independent factor with 4 variables

Definition at line 1570 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ operator=() [1/3]

template<class T , class I , class L >
IndependentFactor< T, I, L > & opengm::IndependentFactor< T, I, L >::operator= ( const IndependentFactor< T, I, L > &  src)
inline

Definition at line 1198 of file graphicalmodel_factor.hxx.

§ operator=() [2/3]

template<class T, class I, class L>
template<class GRAPHICAL_MODEL >
IndependentFactor& opengm::IndependentFactor< T, I, L >::operator= ( const Factor< GRAPHICAL_MODEL > &  )

§ operator=() [3/3]

template<class T, class I, class L>
template<class GRAPHICAL_MODEL >
IndependentFactor<T, I, L>& opengm::IndependentFactor< T, I, L >::operator= ( const Factor< GRAPHICAL_MODEL > &  src)

Definition at line 1213 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ product()

template<class T, class I, class L>
T opengm::IndependentFactor< T, I, L >::product ( )
inline

Definition at line 386 of file graphicalmodel_factor.hxx.

§ shape()

template<class T , class I , class L >
IndependentFactor< T, I, L >::IndexType opengm::IndependentFactor< T, I, L >::shape ( const size_t  dimIndex) const
inline

return the extension of the value table of the of the function in a specific dimension

Definition at line 1271 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ shapeBegin()

template<class T , class I , class L >
IndependentFactor< T, I, L >::ShapeIteratorType opengm::IndependentFactor< T, I, L >::shapeBegin ( ) const
inline

Definition at line 1283 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ shapeEnd()

template<class T , class I , class L >
IndependentFactor< T, I, L >::ShapeIteratorType opengm::IndependentFactor< T, I, L >::shapeEnd ( ) const
inline

Definition at line 1290 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ size()

template<class T , class I , class L >
size_t opengm::IndependentFactor< T, I, L >::size ( ) const
inline

return the number of entries of the value table of the function

Definition at line 1262 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

§ subtractOffset()

template<class T , class I , class L >
void opengm::IndependentFactor< T, I, L >::subtractOffset ( )
inline

Definition at line 1323 of file graphicalmodel_factor.hxx.

§ sum()

template<class T, class I, class L>
T opengm::IndependentFactor< T, I, L >::sum ( )
inline

Definition at line 385 of file graphicalmodel_factor.hxx.

§ variableIndex()

template<class T , class I , class L >
I opengm::IndependentFactor< T, I, L >::variableIndex ( const size_t  index) const
inline

return the index of the j-th variable

Definition at line 1314 of file graphicalmodel_factor.hxx.

+ Here is the caller graph for this function:

§ variableIndexSequence()

template<class T , class I , class L >
const std::vector< I > & opengm::IndependentFactor< T, I, L >::variableIndexSequence ( ) const
inline

Definition at line 1356 of file graphicalmodel_factor.hxx.

+ Here is the caller graph for this function:

§ variableIndices()

template<class T , class I , class L >
template<class ITERATOR >
void opengm::IndependentFactor< T, I, L >::variableIndices ( ITERATOR  out) const
inline

Definition at line 1584 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ variableIndicesBegin()

template<class T , class I , class L >
IndependentFactor< T, I, L >::VariablesIteratorType opengm::IndependentFactor< T, I, L >::variableIndicesBegin ( ) const
inline

Definition at line 1297 of file graphicalmodel_factor.hxx.

§ variableIndicesEnd()

template<class T , class I , class L >
IndependentFactor< T, I, L >::VariablesIteratorType opengm::IndependentFactor< T, I, L >::variableIndicesEnd ( ) const
inline

Definition at line 1304 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

Friends And Related Function Documentation

§ accumulate

template<class T, class I, class L>
template<class ACC , class A , class ViAccIterator >
void accumulate ( A &  ,
ViAccIterator  ,
ViAccIterator   
)
friend