On Aug 15, 2012 1:57 AM, "alfa" <alfarobi0...@yahoo.com> wrote: > > I apologize for double posting this because it was spammed before. > > Hi Jim, > > Do you mean, "you could wrap multi_array itself using class_", I should do as below: > > boost::python::class_<std::vector<std::vector<double> > >("PyVec").def(boost::python::vector_indexing_suite<std::vector<std::vector<double> > >()); >
No, I don't think that will work; I meant something like this: boost::python::class_< boost::multi_array<...> >(...) ...; Where the last "..." is where you have to manually wrap the features of multi_array you want to use. I'm afraid there's nothing as easy as vector_indexing_suite. Jim
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig