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 ()
 
marray::View< V, false > getSliceView (size_t dimension, size_t sliceIndex)
 
marray::View< V,false > view () const
 

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

§ CastPtrType

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

Definition at line 28 of file numpyview.hxx.

§ ConstIteratorType

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.

§ IteratorType

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.

§ ShapeIteratorType

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.

§ ShapePtrType

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

Definition at line 29 of file numpyview.hxx.

§ ValueType

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

§ NumpyView() [1/3]

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

Definition at line 34 of file numpyview.hxx.

§ NumpyView() [2/3]

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

Definition at line 37 of file numpyview.hxx.

§ NumpyView() [3/3]

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

Definition at line 53 of file numpyview.hxx.

Member Function Documentation

§ begin() [1/2]

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

Definition at line 165 of file numpyview.hxx.

§ begin() [2/2]

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

Definition at line 171 of file numpyview.hxx.

§ begin1d() [1/2]

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

Definition at line 152 of file numpyview.hxx.

§ begin1d() [2/2]

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

Definition at line 158 of file numpyview.hxx.

§ dimension()

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

Definition at line 68 of file numpyview.hxx.

§ end() [1/2]

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

Definition at line 168 of file numpyview.hxx.

§ end() [2/2]

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

Definition at line 174 of file numpyview.hxx.

§ end1d() [1/2]

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

Definition at line 155 of file numpyview.hxx.

§ end1d() [2/2]

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

Definition at line 161 of file numpyview.hxx.

§ error()

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 72 of file numpyview.hxx.

§ getSliceView()

template<class V , size_t DIM = 0>
marray::View< V, false > opengm::python::NumpyView< V, DIM >::getSliceView ( size_t  dimension,
size_t  sliceIndex 
)
inline

Definition at line 178 of file numpyview.hxx.

+ Here is the call graph for this function:

§ operator()() [1/10]

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 77 of file numpyview.hxx.

§ operator()() [2/10]

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 80 of file numpyview.hxx.

§ operator()() [3/10]

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 83 of file numpyview.hxx.

§ operator()() [4/10]

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 86 of file numpyview.hxx.

§ operator()() [5/10]

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 89 of file numpyview.hxx.

§ operator()() [6/10]

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

Definition at line 115 of file numpyview.hxx.

§ operator()() [7/10]

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 118 of file numpyview.hxx.

§ operator()() [8/10]

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 121 of file numpyview.hxx.

§ operator()() [9/10]

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 124 of file numpyview.hxx.

§ operator()() [10/10]

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 127 of file numpyview.hxx.

§ operator[]() [1/2]

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 110 of file numpyview.hxx.

§ operator[]() [2/2]

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

Definition at line 148 of file numpyview.hxx.

§ shape()

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

Definition at line 69 of file numpyview.hxx.

§ shapeBegin()

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

Definition at line 70 of file numpyview.hxx.

§ shapeEnd()

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

Definition at line 71 of file numpyview.hxx.

§ size()

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

Definition at line 67 of file numpyview.hxx.

§ view()

template<class V , size_t DIM = 0>
marray::View< V ,false > opengm::python::NumpyView< V, DIM >::view ( ) const
inline

Definition at line 193 of file numpyview.hxx.