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 250 of file graphicalmodel_factor.hxx.

Member Typedef Documentation

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

Definition at line 255 of file graphicalmodel_factor.hxx.

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

Definition at line 256 of file graphicalmodel_factor.hxx.

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

Definition at line 253 of file graphicalmodel_factor.hxx.

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

Definition at line 254 of file graphicalmodel_factor.hxx.

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

Definition at line 260 of file graphicalmodel_factor.hxx.

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

Definition at line 252 of file graphicalmodel_factor.hxx.

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

Definition at line 261 of file graphicalmodel_factor.hxx.

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

Definition at line 263 of file graphicalmodel_factor.hxx.

Member Enumeration Documentation

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

Definition at line 257 of file graphicalmodel_factor.hxx.

Constructor & Destructor Documentation

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

Definition at line 940 of file graphicalmodel_factor.hxx.

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 948 of file graphicalmodel_factor.hxx.

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 963 of file graphicalmodel_factor.hxx.

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 979 of file graphicalmodel_factor.hxx.

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 1105 of file graphicalmodel_factor.hxx.

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

Definition at line 1124 of file graphicalmodel_factor.hxx.

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 1141 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

Member Function Documentation

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 1460 of file graphicalmodel_factor.hxx.

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

Definition at line 1471 of file graphicalmodel_factor.hxx.

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 1481 of file graphicalmodel_factor.hxx.

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 1492 of file graphicalmodel_factor.hxx.

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 996 of file graphicalmodel_factor.hxx.

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 1012 of file graphicalmodel_factor.hxx.

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 1065 of file graphicalmodel_factor.hxx.

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 1084 of file graphicalmodel_factor.hxx.

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

Definition at line 1053 of file graphicalmodel_factor.hxx.

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 1574 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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 1045 of file graphicalmodel_factor.hxx.

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

Definition at line 1037 of file graphicalmodel_factor.hxx.

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

Definition at line 351 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 343 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 341 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 347 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 345 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 353 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 349 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 357 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 356 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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 1224 of file graphicalmodel_factor.hxx.

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

Definition at line 1215 of file graphicalmodel_factor.hxx.

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 1408 of file graphicalmodel_factor.hxx.

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 1426 of file graphicalmodel_factor.hxx.

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 1437 of file graphicalmodel_factor.hxx.

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 1448 of file graphicalmodel_factor.hxx.

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 1391 of file graphicalmodel_factor.hxx.

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 1314 of file graphicalmodel_factor.hxx.

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 1338 of file graphicalmodel_factor.hxx.

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 1349 of file graphicalmodel_factor.hxx.

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 1362 of file graphicalmodel_factor.hxx.

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 1376 of file graphicalmodel_factor.hxx.

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 1504 of file graphicalmodel_factor.hxx.

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 1513 of file graphicalmodel_factor.hxx.

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 1522 of file graphicalmodel_factor.hxx.

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 1532 of file graphicalmodel_factor.hxx.

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 1543 of file graphicalmodel_factor.hxx.

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 1171 of file graphicalmodel_factor.hxx.

template<class T, class I, class L>
template<class GRAPHICAL_MODEL >
IndependentFactor& opengm::IndependentFactor< T, I, L >::operator= ( const Factor< GRAPHICAL_MODEL > &  )
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 1186 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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

Definition at line 359 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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 1244 of file graphicalmodel_factor.hxx.

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

Definition at line 1256 of file graphicalmodel_factor.hxx.

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

Definition at line 1263 of file graphicalmodel_factor.hxx.

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 1235 of file graphicalmodel_factor.hxx.

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

Definition at line 1296 of file graphicalmodel_factor.hxx.

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

Definition at line 358 of file graphicalmodel_factor.hxx.

+ Here is the call graph for this function:

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 1287 of file graphicalmodel_factor.hxx.

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

Definition at line 1329 of file graphicalmodel_factor.hxx.

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

Definition at line 1557 of file graphicalmodel_factor.hxx.

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

Definition at line 1270 of file graphicalmodel_factor.hxx.

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

Definition at line 1277 of file graphicalmodel_factor.hxx.

Friends And Related Function Documentation

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