#include "kernel/mod2.h"
#include <boost/python.hpp>
#include "Number.h"
#include "number_wrap.h"
#include "ring_wrap.h"
Go to the source code of this file.
◆ export_number()
Definition at line 19 of file number_wrap.cc.
20{
21 boost::python::class_<Number>("Number")
22 .def(boost::python::init <int>("creates a number in currRing by default, more complex constructs can be fetched from the interpreter"))
24 .def(-self)
25 .def(self*=self)
26 .def(self+=self)
27 .def(self-=self)
28 .def(self/=self)
29 .def(self==self)
30 .def(self+self)
31 .def(self*self)
32 .def(self/self)
33 .def(self-self)
34 .def(int()==self)
35 .def(int()+self)
36 .def(int()*self)
37 .def(int()/self)
38 .def(int()-self)
39 .def(self==int())
40 .def(self+int())
41 .def(self*int())
42 .def(self/int())
43 .def(self-int())
44 .def(self*=int())
45 .def(self+=int())
46 .def(self-=int())
47 .def(self/=int())
49}
static Ring Number_get_Ring(const Number &n)
static boost::python::object Number_as_str(const Number &n)
◆ Number_as_str()
static boost::python::object Number_as_str |
( |
const Number & |
n | ) |
|
|
static |
Definition at line 8 of file number_wrap.cc.
9{
10 using boost::python::str;
14 return boost::python::str(out,strlen(out));
15}
void StringSetS(const char *st)
◆ Number_get_Ring()