3 #include <boost/python.hpp>
4 #include <boost/python/suite/indexing/vector_indexing_suite.hpp>
9 using namespace boost::python;
10 static boost::python::object intvec_as_str(
const Intvec&
p)
12 using boost::python::str;
20 tojoin.append(str(
p[
i]));
25 str
res=helper.join(tojoin);
31 boost::python::class_<Intvec>(
"IntVector")
32 .def(
"__str__", intvec_as_str)
33 .def(boost::python::init <>())
34 .def(boost::python::vector_indexing_suite<Intvec>());
const CanonicalForm int s