#include "kernel/mod2.h"
#include <boost/python.hpp>
#include "Poly.h"
#include "boost/python/numeric.hpp"
Go to the source code of this file.
◆ export_playground()
void export_playground |
( |
| ) |
|
◆ foo()
Definition at line 12 of file playground.cc.
13{
16 {
17 list row;
19 {
21 row.append(ip);
22
23
24 }
26 }
27 boost::python::numeric::array::set_module_and_type("Numeric",
28 "ArrayType"
29 );
30 boost::python::numeric::array a(
l);
31 return a;
32}
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
◆ foo2()
Definition at line 33 of file playground.cc.
34{
35 using boost::python::extract;
36 object o=
f.attr(
"shape");
37
38 object o1=o[0];
39
40 object o2=o[1];
41 int l1=extract<int>(o1);
42
44 int l2=extract<int>(o2);
46 Poly&
x = boost::python::extract<Poly&>(
f[boost::python::make_tuple(0,0)]);
48
49 return boost::python::str("suc");
50}