19 #ifndef WrappedArray_20081202_H
20 #define WrappedArray_20081202_H
23 #include "boost/python/extract.hpp"
36 double getElt(
unsigned int i)
const;
37 double getElt(
unsigned int i,
unsigned int j)
const;
38 double getElt(
unsigned int i,
unsigned int j,
unsigned int k)
const;
39 double getElt(
unsigned int i,
unsigned int j,
unsigned int k,
unsigned int m)
const;
42 template<
typename T>
void convertNumpyArray(
const T* array,
const std::vector<int>& strides)
const;
43 const boost::python::object&
obj;
72 return (
dat!=0)?
dat[i]:(boost::python::extract<double>(
obj[i].attr(
"__float__")()));