My Project
Loading...
Searching...
No Matches
Functions
ideal_wrap.h File Reference

Go to the source code of this file.

Functions

void export_ideal ()
 
void export_module ()
 

Function Documentation

◆ export_ideal()

void 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&>())
62 .def("__str__", Ideal_as_str)
63 .def("ring",Ideal_get_Ring)
64 .def(boost::python::init <>())
65 .def(vector_indexing_suite<Ideal >());
66
67}
static Ring Ideal_get_Ring(const Ideal &p)
Definition: ideal_wrap.cc:50
static boost::python::object Ideal_as_str(const Ideal &p)
Definition: ideal_wrap.cc:13

◆ export_module()

void 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&>())
75 .def("__str__", Module_as_str)
76 .def("ring",Ideal_get_Ring)
77 .def(boost::python::init <>())
78 .def(vector_indexing_suite<Module>());
79
80}
static boost::python::object Module_as_str(const Module &p)
Definition: ideal_wrap.cc:31