#include "kernel/mod2.h"
#include <boost/python.hpp>
#include "Poly.h"
#include "Ideal.h"
#include "ring_wrap.h"
#include "poly_wrap.h"
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
Go to the source code of this file.
◆ export_ideal()
Definition at line 55 of file ideal_wrap.cc.
56{
57 boost::python::class_<Ideal>("Ideal", "supports most operation a\
58 python list supports with the expception, that elements must\
59 be Polynomials")
60 .def(init<>())
61 .def(init<const Ideal&>())
64 .def(boost::python::init <>())
65 .def(vector_indexing_suite<Ideal >());
66
67}
static Ring Ideal_get_Ring(const Ideal &p)
static boost::python::object Ideal_as_str(const Ideal &p)
◆ export_module()
Definition at line 68 of file ideal_wrap.cc.
69{
70 boost::python::class_<Module>("Module", "supports most operation a\
71 python list supports with the expception, that elements must\
72 be Polynomials")
73 .def(init<>())
74 .def(init<const Module&>())
77 .def(boost::python::init <>())
78 .def(vector_indexing_suite<Module>());
79
80}
static boost::python::object Module_as_str(const Module &p)
◆ Ideal_as_str()
static boost::python::object Ideal_as_str |
( |
const Ideal & |
p | ) |
|
|
static |
Definition at line 13 of file ideal_wrap.cc.
14{
15 using boost::python::str;
16
18 list tojoin;
21
25 tojoin.append(", ");
26 }
27
28 str res=helper.join(tojoin);
30}
const CanonicalForm int s
boost::python::str Poly_as_str(const Poly &p)
◆ Ideal_get_Ring()
◆ Module_as_str()
static boost::python::object Module_as_str |
( |
const Module & |
p | ) |
|
|
static |
Definition at line 31 of file ideal_wrap.cc.
32{
33 using boost::python::str;
34
36 list tojoin;
39
43 tojoin.append(", ");
44 }
45
46 str res=helper.join(tojoin);
48}
boost::python::str Vector_as_str(const Vector &p)