OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | List of all members
opengm::python::NumpyView< V, DIM > Class Template Reference

#include <numpyview.hxx>

+ Collaboration diagram for opengm::python::NumpyView< V, DIM >:

Public Types

typedef V ValueType
 
typedef V * CastPtrType
 
typedef int const * ShapePtrType
 
typedef marray::View< V,false >::iterator IteratorType
 
typedef marray::View< V,false >::const_iterator ConstIteratorType
 
typedef size_t const * ShapeIteratorType
 

Public Member Functions

 NumpyView ()
 
 NumpyView (boost::python::object obj)
 
 NumpyView (boost::python::numeric::array array)
 
size_t size () const
 
size_t dimension () const
 
size_t shape (const size_t i) const
 
size_t const * shapeBegin () const
 
size_t const * shapeEnd () const
 
void error (const std::string &reason=std::string(" ")) const
 
template<class X0 >
const ValueTypeoperator() (X0 x0) const
 
const ValueTypeoperator() (const size_t x0, const size_t x1) const
 
const ValueTypeoperator() (const size_t x0, const size_t x1, const size_t x2) const
 
const ValueTypeoperator() (const size_t x0, const size_t x1, const size_t x2, const size_t x3) const
 
const ValueTypeoperator() (const size_t x0, const size_t x1, const size_t x2, const size_t x3, const size_t x4) const
 
template<class ITERATOR >
const ValueTypeoperator[] (ITERATOR iterator) const
 
template<class X0 >
ValueTypeoperator() (X0 x0)
 
ValueTypeoperator() (const size_t x0, const size_t x1)
 
ValueTypeoperator() (const size_t x0, const size_t x1, const size_t x2)
 
ValueTypeoperator() (const size_t x0, const size_t x1, const size_t x2, const size_t x3)
 
ValueTypeoperator() (const size_t x0, const size_t x1, const size_t x2, const size_t x3, const size_t x4)
 
template<class ITERATOR >
ValueTypeoperator[] (ITERATOR iterator)
 
ConstIteratorType begin1d () const
 
ConstIteratorType end1d () const
 
IteratorType begin1d ()
 
IteratorType end1d ()
 
ConstIteratorType begin () const
 
ConstIteratorType end () const
 
IteratorType begin ()
 
IteratorType end ()
 

Detailed Description

template<class V, size_t DIM = 0>
class opengm::python::NumpyView< V, DIM >

Definition at line 25 of file numpyview.hxx.

Member Typedef Documentation

template<class V , size_t DIM = 0>
typedef V* opengm::python::NumpyView< V, DIM >::CastPtrType

Definition at line 28 of file numpyview.hxx.

template<class V , size_t DIM = 0>
typedef marray::View< V ,false >::const_iterator opengm::python::NumpyView< V, DIM >::ConstIteratorType

Definition at line 31 of file numpyview.hxx.

template<class V , size_t DIM = 0>
typedef marray::View< V ,false >::iterator opengm::python::NumpyView< V, DIM >::IteratorType

Definition at line 30 of file numpyview.hxx.

template<class V , size_t DIM = 0>
typedef size_t const* opengm::python::NumpyView< V, DIM >::ShapeIteratorType

Definition at line 32 of file numpyview.hxx.

template<class V , size_t DIM = 0>
typedef int const* opengm::python::NumpyView< V, DIM >::ShapePtrType

Definition at line 29 of file numpyview.hxx.

template<class V , size_t DIM = 0>
typedef V opengm::python::NumpyView< V, DIM >::ValueType

Definition at line 27 of file numpyview.hxx.

Constructor & Destructor Documentation

template<class V , size_t DIM = 0>
opengm::python::NumpyView< V, DIM >::NumpyView ( )
inline

Definition at line 34 of file numpyview.hxx.

template<class V , size_t DIM = 0>
opengm::python::NumpyView< V, DIM >::NumpyView ( boost::python::object  obj)
inline

Definition at line 36 of file numpyview.hxx.

template<class V , size_t DIM = 0>
opengm::python::NumpyView< V, DIM >::NumpyView ( boost::python::numeric::array  array)
inline

Definition at line 52 of file numpyview.hxx.

Member Function Documentation

template<class V , size_t DIM = 0>
ConstIteratorType opengm::python::NumpyView< V, DIM >::begin ( ) const
inline

Definition at line 164 of file numpyview.hxx.

template<class V , size_t DIM = 0>
IteratorType opengm::python::NumpyView< V, DIM >::begin ( )
inline

Definition at line 170 of file numpyview.hxx.

template<class V , size_t DIM = 0>
ConstIteratorType opengm::python::NumpyView< V, DIM >::begin1d ( ) const
inline

Definition at line 151 of file numpyview.hxx.

template<class V , size_t DIM = 0>
IteratorType opengm::python::NumpyView< V, DIM >::begin1d ( )
inline

Definition at line 157 of file numpyview.hxx.

template<class V , size_t DIM = 0>
size_t opengm::python::NumpyView< V, DIM >::dimension ( ) const
inline

Definition at line 67 of file numpyview.hxx.

template<class V , size_t DIM = 0>
ConstIteratorType opengm::python::NumpyView< V, DIM >::end ( ) const
inline

Definition at line 167 of file numpyview.hxx.

template<class V , size_t DIM = 0>
IteratorType opengm::python::NumpyView< V, DIM >::end ( )
inline

Definition at line 173 of file numpyview.hxx.

template<class V , size_t DIM = 0>
ConstIteratorType opengm::python::NumpyView< V, DIM >::end1d ( ) const
inline

Definition at line 154 of file numpyview.hxx.

template<class V , size_t DIM = 0>
IteratorType opengm::python::NumpyView< V, DIM >::end1d ( )
inline

Definition at line 160 of file numpyview.hxx.

template<class V , size_t DIM = 0>
void opengm::python::NumpyView< V, DIM >::error ( const std::string &  reason = std::string(" ")) const
inline

Definition at line 71 of file numpyview.hxx.

template<class V , size_t DIM = 0>
template<class X0 >
const ValueType& opengm::python::NumpyView< V, DIM >::operator() ( X0  x0) const
inline

Definition at line 76 of file numpyview.hxx.

template<class V , size_t DIM = 0>
const ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1 
) const
inline

Definition at line 79 of file numpyview.hxx.

template<class V , size_t DIM = 0>
const ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1,
const size_t  x2 
) const
inline

Definition at line 82 of file numpyview.hxx.

template<class V , size_t DIM = 0>
const ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1,
const size_t  x2,
const size_t  x3 
) const
inline

Definition at line 85 of file numpyview.hxx.

template<class V , size_t DIM = 0>
const ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1,
const size_t  x2,
const size_t  x3,
const size_t  x4 
) const
inline

Definition at line 88 of file numpyview.hxx.

template<class V , size_t DIM = 0>
template<class X0 >
ValueType& opengm::python::NumpyView< V, DIM >::operator() ( X0  x0)
inline

Definition at line 114 of file numpyview.hxx.

template<class V , size_t DIM = 0>
ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1 
)
inline

Definition at line 117 of file numpyview.hxx.

template<class V , size_t DIM = 0>
ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1,
const size_t  x2 
)
inline

Definition at line 120 of file numpyview.hxx.

template<class V , size_t DIM = 0>
ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1,
const size_t  x2,
const size_t  x3 
)
inline

Definition at line 123 of file numpyview.hxx.

template<class V , size_t DIM = 0>
ValueType& opengm::python::NumpyView< V, DIM >::operator() ( const size_t  x0,
const size_t  x1,
const size_t  x2,
const size_t  x3,
const size_t  x4 
)
inline

Definition at line 126 of file numpyview.hxx.

template<class V , size_t DIM = 0>
template<class ITERATOR >
const ValueType& opengm::python::NumpyView< V, DIM >::operator[] ( ITERATOR  iterator) const
inline

Definition at line 109 of file numpyview.hxx.

template<class V , size_t DIM = 0>
template<class ITERATOR >
ValueType& opengm::python::NumpyView< V, DIM >::operator[] ( ITERATOR  iterator)
inline

Definition at line 147 of file numpyview.hxx.

template<class V , size_t DIM = 0>
size_t opengm::python::NumpyView< V, DIM >::shape ( const size_t  i) const
inline

Definition at line 68 of file numpyview.hxx.

template<class V , size_t DIM = 0>
size_t const* opengm::python::NumpyView< V, DIM >::shapeBegin ( ) const
inline

Definition at line 69 of file numpyview.hxx.

template<class V , size_t DIM = 0>
size_t const* opengm::python::NumpyView< V, DIM >::shapeEnd ( ) const
inline

Definition at line 70 of file numpyview.hxx.

template<class V , size_t DIM = 0>
size_t opengm::python::NumpyView< V, DIM >::size ( ) const
inline

Definition at line 66 of file numpyview.hxx.