OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Namespaces | Functions
converter.hxx File Reference
#include <boost/python/detail/wrap_python.hpp>
#include <boost/python.hpp>
#include <sstream>
#include <numpy/arrayobject.h>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include <stdexcept>
#include <stddef.h>
#include <opengm/graphicalmodel/graphicalmodel.hxx>
#include <opengm/python/numpyview.hxx>
+ Include dependency graph for converter.hxx:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  opengm::python::NumpyViewType_from_python_numpyarray< VALUE_TYPE, DIM >
 
struct  opengm::python::NumpyViewType_to_python_numpyarray< VALUE_TYPE, DIM >
 

Namespaces

 opengm
 The OpenGM namespace.
 
 opengm::python
 

Functions

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