3 #include <boost/python.hpp> 5 #include "boost/python/numpy.hpp" 6 using boost::python::numpy::ndarray;
7 using boost::python::self;
8 using boost::python::make_tuple;
9 using boost::python::tuple;
10 using boost::python::object;
11 using boost::python::list;
27 boost::python::numpy::ndarray
a(
l);
30 object foo2(ndarray
f)
32 using boost::python::extract;
33 object o=
f.attr(
"shape");
38 int l1=extract<int>(o1);
41 int l2=extract<int>(o2);
43 Poly&
x = boost::python::extract<Poly&>(
f[boost::python::make_tuple(0,0)]);
46 return boost::python::str(
"suc");
48 void export_playground()
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...