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

Enumaration of partitions of a set of N nodes. More...

#include <partitions.hxx>

+ Inheritance diagram for opengm::Partitions< I, L >:
+ Collaboration diagram for opengm::Partitions< I, L >:

Public Types

typedef I EdgeLabelType
 
typedef L NodeLabelType
 

Public Member Functions

void resize (size_t N)
 
size_t BellNumber (size_t N)
 
EdgeLabelType getPartition (size_t n)
 
template<class T >
void getPartition (const size_t n, std::vector< T > &l)
 
size_t number2Index (const EdgeLabelType el)
 
size_t label2Index (const std::vector< NodeLabelType > &l)
 
template<class IT >
size_t label2Index (const IT begin, const size_t order)
 
EdgeLabelType label2Number (const std::vector< NodeLabelType > &l)
 
template<class IT >
EdgeLabelType label2Number (IT begin, size_t order)
 

Detailed Description

template<class I = size_t, class L = size_t>
class opengm::Partitions< I, L >

Enumaration of partitions of a set of N nodes.

Definition at line 12 of file partitions.hxx.

Member Typedef Documentation

template<class I = size_t, class L = size_t>
typedef I opengm::Partitions< I, L >::EdgeLabelType

Definition at line 14 of file partitions.hxx.

template<class I = size_t, class L = size_t>
typedef L opengm::Partitions< I, L >::NodeLabelType

Definition at line 15 of file partitions.hxx.

Member Function Documentation

template<class I = size_t, class L = size_t>
size_t opengm::Partitions< I, L >::BellNumber ( size_t  N)
inline

Definition at line 18 of file partitions.hxx.

+ Here is the caller graph for this function:

template<class I = size_t, class L = size_t>
EdgeLabelType opengm::Partitions< I, L >::getPartition ( size_t  n)
inline

Definition at line 19 of file partitions.hxx.

+ Here is the caller graph for this function:

template<class I = size_t, class L = size_t>
template<class T >
void opengm::Partitions< I, L >::getPartition ( const size_t  n,
std::vector< T > &  l 
)
inline

Definition at line 22 of file partitions.hxx.

template<class I = size_t, class L = size_t>
size_t opengm::Partitions< I, L >::label2Index ( const std::vector< NodeLabelType > &  l)
inline

Definition at line 49 of file partitions.hxx.

template<class I = size_t, class L = size_t>
template<class IT >
size_t opengm::Partitions< I, L >::label2Index ( const IT  begin,
const size_t  order 
)
inline

Definition at line 56 of file partitions.hxx.

template<class I = size_t, class L = size_t>
EdgeLabelType opengm::Partitions< I, L >::label2Number ( const std::vector< NodeLabelType > &  l)
inline

Definition at line 62 of file partitions.hxx.

+ Here is the caller graph for this function:

template<class I = size_t, class L = size_t>
template<class IT >
EdgeLabelType opengm::Partitions< I, L >::label2Number ( IT  begin,
size_t  order 
)
inline

Definition at line 76 of file partitions.hxx.

template<class I = size_t, class L = size_t>
size_t opengm::Partitions< I, L >::number2Index ( const EdgeLabelType  el)
inline

Definition at line 38 of file partitions.hxx.

+ Here is the caller graph for this function:

template<class I = size_t, class L = size_t>
void opengm::Partitions< I, L >::resize ( size_t  N)
inline

Definition at line 17 of file partitions.hxx.

+ Here is the caller graph for this function: