OpenGM  2.3.x
Discrete Graphical Model Library
Namespaces | Classes | Typedefs | Functions
opengm::python Namespace Reference

Namespaces

 pyenums
 

Classes

struct  ETLGen
 
struct  FTLGen
 
struct  GmGen
 
class  NumpyView
 
struct  NumpyViewType_from_python_numpyarray
 
struct  NumpyViewType_to_python_numpyarray
 
class  PythonFunction
 

Typedefs

typedef double GmValueType
 
typedef opengm::UInt64Type GmIndexType
 
typedef GmIndexType GmLabelType
 
typedef opengm::learning::Weights< GmValueTypePyWeights
 
typedef opengm::ExplicitFunction< GmValueType, GmIndexType, GmLabelTypeGmExplicitFunction
 
typedef opengm::PottsFunction< GmValueType, GmIndexType, GmLabelTypeGmPottsFunction
 
typedef opengm::PottsNFunction< GmValueType, GmIndexType, GmLabelTypeGmPottsNFunction
 
typedef opengm::PottsGFunction< GmValueType, GmIndexType, GmLabelTypeGmPottsGFunction
 
typedef opengm::AbsoluteDifferenceFunction< GmValueType, GmIndexType, GmLabelTypeGmAbsoluteDifferenceFunction
 
typedef opengm::TruncatedAbsoluteDifferenceFunction< GmValueType, GmIndexType, GmLabelTypeGmTruncatedAbsoluteDifferenceFunction
 
typedef opengm::SquaredDifferenceFunction< GmValueType, GmIndexType, GmLabelTypeGmSquaredDifferenceFunction
 
typedef opengm::TruncatedSquaredDifferenceFunction< GmValueType, GmIndexType, GmLabelTypeGmTruncatedSquaredDifferenceFunction
 
typedef opengm::SparseFunction< GmValueType, GmIndexType, GmLabelTypeGmSparseFunction
 
typedef opengm::functions::learnable::LPotts< GmValueType, GmIndexType, GmLabelTypePyLPottsFunction
 
typedef opengm::functions::learnable::LUnary< GmValueType, GmIndexType, GmLabelTypePyLUnaryFunction
 
typedef std::vector< GmIndexTypeIndexVectorType
 
typedef std::vector< IndexVectorTypeIndexVectorVectorType
 
typedef GmGen< GmValueType, GmIndexType, opengm::Adder, FTLGen< GmValueType, GmIndexType >::type >::type GmAdder
 
typedef GmAdder::FactorType FactorGmAdder
 
typedef FactorGmAdder GmAdderFactor
 
typedef GmGen< GmValueType, GmIndexType, opengm::Multiplier, FTLGen< GmValueType, GmIndexType >::type >::type GmMultiplier
 
typedef GmMultiplier::FactorType FactorGmMultiplier
 
typedef FactorGmMultiplier GmMultiplierFactor
 
typedef opengm::IndependentFactor< GmValueType, GmIndexType, GmIndexTypeGmIndependentFactor
 

Functions

template<typename T >
NPY_TYPES typeEnumFromType (void)
 
template<>
NPY_TYPES typeEnumFromType< bool > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::UInt8Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::UInt16Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::UInt32Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::UInt64Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::Int8Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::Int16Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::Int32Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< opengm::Int64Type > (void)
 
template<>
NPY_TYPES typeEnumFromType< float > (void)
 
template<>
NPY_TYPES typeEnumFromType< double > (void)
 
template<class VALUE_TYPE >
boost::python::object get1dArray (const size_t size)
 
template<class VALUE_TYPE >
boost::python::object get2dArray (const size_t size1, const size_t size2)
 
template<class VALUE_TYPE , class FORWARD_SHAPE_ITERATOR >
boost::python::object getArray (FORWARD_SHAPE_ITERATOR begin, FORWARD_SHAPE_ITERATOR end)
 
template<class VALUE_TYPE >
VALUE_TYPE * getCastedPtr (boost::python::object obj)
 
boost::python::numeric::array objToArray (boost::python::object obj)
 
std::string printEnum (PyArray_TYPES value)
 
template<class ITERATOR >
boost::python::tuple iteratorToTuple (ITERATOR iter, size_t size)
 
template<class ITERATOR >
boost::python::list iteratorToList (ITERATOR iter, size_t size)
 
template<class ITERATOR >
boost::python::numeric::array iteratorToNumpy (ITERATOR iter, size_t size)
 
template<class NUMERIC_ARRAY >
PyArray_TYPES getArrayType (NUMERIC_ARRAY arr)
 
boost::python::numeric::array extractConstNumericArray (PyObject *obj)
 
int numpyScalarTypeNumber (PyObject *obj)
 
template<class T , size_t DIM>
void initializeNumpyViewConverters ()
 

Typedef Documentation

§ FactorGmAdder

Definition at line 114 of file opengmpython.hxx.

§ FactorGmMultiplier

Definition at line 124 of file opengmpython.hxx.

§ GmAbsoluteDifferenceFunction

Definition at line 96 of file opengmpython.hxx.

§ GmAdder

Definition at line 112 of file opengmpython.hxx.

§ GmAdderFactor

Definition at line 115 of file opengmpython.hxx.

§ GmExplicitFunction

Definition at line 92 of file opengmpython.hxx.

§ GmIndependentFactor

Definition at line 128 of file opengmpython.hxx.

§ GmIndexType

Definition at line 84 of file opengmpython.hxx.

§ GmLabelType

Definition at line 85 of file opengmpython.hxx.

§ GmMultiplier

Definition at line 122 of file opengmpython.hxx.

§ GmMultiplierFactor

Definition at line 126 of file opengmpython.hxx.

§ GmPottsFunction

Definition at line 93 of file opengmpython.hxx.

§ GmPottsGFunction

Definition at line 95 of file opengmpython.hxx.

§ GmPottsNFunction

Definition at line 94 of file opengmpython.hxx.

§ GmSparseFunction

Definition at line 100 of file opengmpython.hxx.

§ GmSquaredDifferenceFunction

Definition at line 98 of file opengmpython.hxx.

§ GmTruncatedAbsoluteDifferenceFunction

Definition at line 97 of file opengmpython.hxx.

§ GmTruncatedSquaredDifferenceFunction

Definition at line 99 of file opengmpython.hxx.

§ GmValueType

Definition at line 83 of file opengmpython.hxx.

§ IndexVectorType

Definition at line 104 of file opengmpython.hxx.

§ IndexVectorVectorType

Definition at line 105 of file opengmpython.hxx.

§ PyLPottsFunction

Definition at line 101 of file opengmpython.hxx.

§ PyLUnaryFunction

Definition at line 102 of file opengmpython.hxx.

§ PyWeights

Definition at line 88 of file opengmpython.hxx.

Function Documentation

§ extractConstNumericArray()

boost::python::numeric::array opengm::python::extractConstNumericArray ( PyObject *  obj)
inline

Definition at line 213 of file converter.hxx.

+ Here is the caller graph for this function:

§ get1dArray()

template<class VALUE_TYPE >
boost::python::object opengm::python::get1dArray ( const size_t  size)
inline

Definition at line 86 of file converter.hxx.

§ get2dArray()

template<class VALUE_TYPE >
boost::python::object opengm::python::get2dArray ( const size_t  size1,
const size_t  size2 
)
inline

Definition at line 93 of file converter.hxx.

§ getArray()

template<class VALUE_TYPE , class FORWARD_SHAPE_ITERATOR >
boost::python::object opengm::python::getArray ( FORWARD_SHAPE_ITERATOR  begin,
FORWARD_SHAPE_ITERATOR  end 
)
inline

Definition at line 101 of file converter.hxx.

§ getArrayType()

template<class NUMERIC_ARRAY >
PyArray_TYPES opengm::python::getArrayType ( NUMERIC_ARRAY  arr)
inline

Definition at line 208 of file converter.hxx.

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

§ getCastedPtr()

template<class VALUE_TYPE >
VALUE_TYPE* opengm::python::getCastedPtr ( boost::python::object  obj)
inline

Definition at line 111 of file converter.hxx.

§ initializeNumpyViewConverters()

template<class T , size_t DIM>
void opengm::python::initializeNumpyViewConverters ( )

Definition at line 303 of file converter.hxx.

§ iteratorToList()

template<class ITERATOR >
boost::python::list opengm::python::iteratorToList ( ITERATOR  iter,
size_t  size 
)
inline

Definition at line 189 of file converter.hxx.

§ iteratorToNumpy()

template<class ITERATOR >
boost::python::numeric::array opengm::python::iteratorToNumpy ( ITERATOR  iter,
size_t  size 
)
inline

Definition at line 198 of file converter.hxx.

+ Here is the call graph for this function:

§ iteratorToTuple()

template<class ITERATOR >
boost::python::tuple opengm::python::iteratorToTuple ( ITERATOR  iter,
size_t  size 
)
inline

Definition at line 154 of file converter.hxx.

§ numpyScalarTypeNumber()

int opengm::python::numpyScalarTypeNumber ( PyObject *  obj)
inline

Definition at line 219 of file converter.hxx.

§ objToArray()

boost::python::numeric::array opengm::python::objToArray ( boost::python::object  obj)
inline

Definition at line 116 of file converter.hxx.

+ Here is the caller graph for this function:

§ printEnum()

std::string opengm::python::printEnum ( PyArray_TYPES  value)
inline

Definition at line 123 of file converter.hxx.

+ Here is the caller graph for this function:

§ typeEnumFromType()

template<typename T >
NPY_TYPES opengm::python::typeEnumFromType ( void  )
inline

Definition at line 30 of file converter.hxx.

§ typeEnumFromType< bool >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< bool > ( void  )
inline

Definition at line 37 of file converter.hxx.

§ typeEnumFromType< double >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< double > ( void  )
inline

Definition at line 78 of file converter.hxx.

§ typeEnumFromType< float >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< float > ( void  )
inline

Definition at line 74 of file converter.hxx.

§ typeEnumFromType< opengm::Int16Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::Int16Type > ( void  )
inline

Definition at line 62 of file converter.hxx.

§ typeEnumFromType< opengm::Int32Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::Int32Type > ( void  )
inline

Definition at line 66 of file converter.hxx.

§ typeEnumFromType< opengm::Int64Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::Int64Type > ( void  )
inline

Definition at line 70 of file converter.hxx.

§ typeEnumFromType< opengm::Int8Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::Int8Type > ( void  )
inline

Definition at line 58 of file converter.hxx.

§ typeEnumFromType< opengm::UInt16Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::UInt16Type > ( void  )
inline

Definition at line 46 of file converter.hxx.

§ typeEnumFromType< opengm::UInt32Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::UInt32Type > ( void  )
inline

Definition at line 50 of file converter.hxx.

§ typeEnumFromType< opengm::UInt64Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::UInt64Type > ( void  )
inline

Definition at line 54 of file converter.hxx.

§ typeEnumFromType< opengm::UInt8Type >()

template<>
NPY_TYPES opengm::python::typeEnumFromType< opengm::UInt8Type > ( void  )
inline

Definition at line 42 of file converter.hxx.