OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
opengm::external::AD3Inf< GM, ACC > Class Template Reference

AD3
. More...

#include <ad3.hxx>

+ Inheritance diagram for opengm::external::AD3Inf< GM, ACC >:
+ Collaboration diagram for opengm::external::AD3Inf< GM, ACC >:

Classes

struct  Parameter
 

Public Types

enum  SolverType { AD3_LP, AD3_ILP, PSDD_LP }
 
typedef GM GraphicalModelType
 
typedef ACC AccumulationType
 
typedef visitors::VerboseVisitor< AD3Inf< GM, ACC > > VerboseVisitorType
 
typedef visitors::EmptyVisitor< AD3Inf< GM, ACC > > EmptyVisitorType
 
typedef visitors::TimingVisitor< AD3Inf< GM, ACC > > TimingVisitorType
 
- Public Types inherited from opengm::Inference< GM, ACC >
typedef GM GraphicalModelType
 
typedef ACC AccumulationType
 
typedef GraphicalModelType::LabelType LabelType
 
typedef GraphicalModelType::IndexType IndexType
 
typedef GraphicalModelType::ValueType ValueType
 
typedef GraphicalModelType::OperatorType OperatorType
 
typedef GraphicalModelType::FactorType FactorType
 
typedef GraphicalModelType::IndependentFactorType IndependentFactorType
 
typedef GraphicalModelType::FunctionIdentifier FunctionIdentifier
 

Public Member Functions

 AD3Inf (const GraphicalModelType &gm, const Parameter para=Parameter())
 
 ~AD3Inf ()
 
std::string name () const
 
const GraphicalModelTypegraphicalModel () const
 
InferenceTermination infer ()
 
template<class VisitorType >
InferenceTermination infer (VisitorType &)
 
InferenceTermination arg (std::vector< LabelType > &, const size_t &=1) const
 
ValueType value () const
 return the solution (value) More...
 
ValueType bound () const
 return a bound on the solution More...
 
ValueType valueToMaxSum (const ValueType val) const
 
ValueType valueFromMaxSum (const ValueType val) const
 
template<class N_LABELS_ITER >
 AD3Inf (N_LABELS_ITER nLabelsBegin, N_LABELS_ITER nLabelsEnd, const Parameter para=Parameter())
 
 AD3Inf (const UInt64Type nVar, const UInt64Type nLabels, const Parameter para, const bool foo)
 
template<class VI_ITERATOR , class FUNCTION >
void addFactor (VI_ITERATOR viBegin, VI_ITERATOR viEnd, const FUNCTION &function)
 
const std::vector< double > & posteriors () const
 
const std::vector< double > & higherOrderPosteriors () const
 
- Public Member Functions inherited from opengm::Inference< GM, ACC >
virtual ~Inference ()
 
virtual void setStartingPoint (typename std::vector< LabelType >::const_iterator)
 set initial labeling More...
 
virtual InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 output a solution More...
 
virtual InferenceTermination args (std::vector< std::vector< LabelType > > &) const
 
virtual InferenceTermination marginal (const size_t, IndependentFactorType &) const
 output a solution for a marginal for a specific variable More...
 
virtual InferenceTermination factorMarginal (const size_t, IndependentFactorType &) const
 output a solution for a marginal for all variables connected to a factor More...
 
InferenceTermination constrainedOptimum (std::vector< IndexType > &, std::vector< LabelType > &, std::vector< LabelType > &) const
 
InferenceTermination modeFromMarginal (std::vector< LabelType > &) const
 
InferenceTermination modeFromFactorMarginal (std::vector< LabelType > &) const
 

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS
 

Detailed Description

template<class GM, class ACC>
class opengm::external::AD3Inf< GM, ACC >

AD3
.

Definition at line 23 of file ad3.hxx.

Member Typedef Documentation

template<class GM, class ACC>
typedef ACC opengm::external::AD3Inf< GM, ACC >::AccumulationType

Definition at line 27 of file ad3.hxx.

template<class GM, class ACC>
typedef visitors::EmptyVisitor<AD3Inf<GM,ACC> > opengm::external::AD3Inf< GM, ACC >::EmptyVisitorType

Definition at line 30 of file ad3.hxx.

template<class GM, class ACC>
typedef GM opengm::external::AD3Inf< GM, ACC >::GraphicalModelType

Definition at line 26 of file ad3.hxx.

template<class GM, class ACC>
typedef visitors::TimingVisitor<AD3Inf<GM,ACC> > opengm::external::AD3Inf< GM, ACC >::TimingVisitorType

Definition at line 31 of file ad3.hxx.

template<class GM, class ACC>
typedef visitors::VerboseVisitor<AD3Inf<GM,ACC> > opengm::external::AD3Inf< GM, ACC >::VerboseVisitorType

Definition at line 29 of file ad3.hxx.

Constructor & Destructor Documentation

template<class GM, class ACC>
opengm::external::AD3Inf< GM, ACC >::AD3Inf ( const GraphicalModelType gm,
const Parameter  para = Parameter() 
)
template<class GM , class ACC >
opengm::external::AD3Inf< GM, ACC >::~AD3Inf ( )

Definition at line 504 of file ad3.hxx.

template<class GM , class ACC >
template<class N_LABELS_ITER >
opengm::external::AD3Inf< GM, ACC >::AD3Inf ( N_LABELS_ITER  nLabelsBegin,
N_LABELS_ITER  nLabelsEnd,
const Parameter  para = Parameter() 
)

Definition at line 257 of file ad3.hxx.

template<class GM , class ACC >
opengm::external::AD3Inf< GM, ACC >::AD3Inf ( const UInt64Type  nVar,
const UInt64Type  nLabels,
const Parameter  para,
const bool  foo 
)

Definition at line 293 of file ad3.hxx.

Member Function Documentation

template<class GM , class ACC >
template<class VI_ITERATOR , class FUNCTION >
void opengm::external::AD3Inf< GM, ACC >::addFactor ( VI_ITERATOR  viBegin,
VI_ITERATOR  viEnd,
const FUNCTION &  function 
)

Definition at line 331 of file ad3.hxx.

template<class GM , class ACC >
InferenceTermination opengm::external::AD3Inf< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t n = 1 
) const
inline

Definition at line 596 of file ad3.hxx.

template<class GM, class ACC>
ValueType opengm::external::AD3Inf< GM, ACC >::bound ( ) const
inlinevirtual

return a bound on the solution

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 83 of file ad3.hxx.

template<class GM , class ACC >
const AD3Inf< GM, ACC >::GraphicalModelType & opengm::external::AD3Inf< GM, ACC >::graphicalModel ( ) const
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 518 of file ad3.hxx.

template<class GM, class ACC>
const std::vector<double>& opengm::external::AD3Inf< GM, ACC >::higherOrderPosteriors ( ) const
inline

Definition at line 129 of file ad3.hxx.

template<class GM , class ACC >
InferenceTermination opengm::external::AD3Inf< GM, ACC >::infer ( )
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 525 of file ad3.hxx.

template<class GM , class ACC >
template<class VisitorType >
InferenceTermination opengm::external::AD3Inf< GM, ACC >::infer ( VisitorType &  visitor)

Definition at line 533 of file ad3.hxx.

template<class GM , class ACC >
std::string opengm::external::AD3Inf< GM, ACC >::name ( ) const
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 511 of file ad3.hxx.

template<class GM, class ACC>
const std::vector<double>& opengm::external::AD3Inf< GM, ACC >::posteriors ( ) const
inline

Definition at line 125 of file ad3.hxx.

template<class GM, class ACC>
ValueType opengm::external::AD3Inf< GM, ACC >::value ( ) const
inlinevirtual

return the solution (value)

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 79 of file ad3.hxx.

template<class GM, class ACC>
ValueType opengm::external::AD3Inf< GM, ACC >::valueFromMaxSum ( const ValueType  val) const
inline

Definition at line 102 of file ad3.hxx.

template<class GM, class ACC>
ValueType opengm::external::AD3Inf< GM, ACC >::valueToMaxSum ( const ValueType  val) const
inline

Definition at line 93 of file ad3.hxx.

Member Data Documentation

template<class GM, class ACC>
opengm::external::AD3Inf< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 28 of file ad3.hxx.