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

Go to the source code of this file.

Functions

void export_number ()
 

Function Documentation

◆ export_number()

void 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"))
23 .def("__str__", Number_as_str)
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())
48 .def("ring",Number_get_Ring);
49}
static Ring Number_get_Ring(const Number &n)
Definition: number_wrap.cc:16
static boost::python::object Number_as_str(const Number &n)
Definition: number_wrap.cc:8