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::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::python::PythonFunction< GmValueType, GmIndexType, GmLabelTypeGmPythonFunction
 
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

Definition at line 105 of file opengmpython.hxx.

Definition at line 115 of file opengmpython.hxx.

Definition at line 88 of file opengmpython.hxx.

Definition at line 103 of file opengmpython.hxx.

Definition at line 106 of file opengmpython.hxx.

Definition at line 84 of file opengmpython.hxx.

Definition at line 119 of file opengmpython.hxx.

Definition at line 78 of file opengmpython.hxx.

Definition at line 79 of file opengmpython.hxx.

Definition at line 113 of file opengmpython.hxx.

Definition at line 117 of file opengmpython.hxx.

Definition at line 85 of file opengmpython.hxx.

Definition at line 87 of file opengmpython.hxx.

Definition at line 86 of file opengmpython.hxx.

Definition at line 93 of file opengmpython.hxx.

Definition at line 92 of file opengmpython.hxx.

Definition at line 90 of file opengmpython.hxx.

Definition at line 89 of file opengmpython.hxx.

Definition at line 91 of file opengmpython.hxx.

Definition at line 77 of file opengmpython.hxx.

Definition at line 95 of file opengmpython.hxx.

Definition at line 96 of file opengmpython.hxx.

Function Documentation

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:

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

Definition at line 86 of file converter.hxx.

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.

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.

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

Definition at line 208 of file converter.hxx.

+ Here is the caller graph for this function:

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

Definition at line 111 of file converter.hxx.

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

Definition at line 303 of file converter.hxx.

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

Definition at line 189 of file converter.hxx.

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:

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

Definition at line 154 of file converter.hxx.

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

Definition at line 219 of file converter.hxx.

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:

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:

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

Definition at line 30 of file converter.hxx.

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

Definition at line 37 of file converter.hxx.

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

Definition at line 78 of file converter.hxx.

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

Definition at line 74 of file converter.hxx.

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

Definition at line 62 of file converter.hxx.

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

Definition at line 66 of file converter.hxx.

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

Definition at line 70 of file converter.hxx.

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

Definition at line 58 of file converter.hxx.

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

Definition at line 46 of file converter.hxx.

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

Definition at line 50 of file converter.hxx.

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

Definition at line 54 of file converter.hxx.

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

Definition at line 42 of file converter.hxx.