MCPcopy Create free account
hub / github.com/Singular/Singular / BOOST_PYTHON_MODULE

Function BOOST_PYTHON_MODULE

Singular/dyn_modules/python/wrapper.h:42–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 PyErr_SetString(PyExc_UserWarning, "Objects didn't have the same ring");
41}
42BOOST_PYTHON_MODULE(Singular)
43{
44 //Print("ref count after add: %d", currRing->ref);
45 register_exception_translator<
46 DifferentDomainException>(different_ring_translator);
47 export_poly();
48 export_number();
49 export_vector();
50 //export_playground();
51 export_ideal();
52 export_module();
53 //export_interpreter();
54 export_ring();
55 export_intvec();
56 boost::python::class_<PowerSeries>("power_series")
57 .def(boost::python::init <const PowerSeries::numerator_type &,const PowerSeries::denominator_type&>())
58 .def("__iter__", boost::python::iterator<PowerSeries>());
59 boost::python::class_<VectorPowerSeries>("vector_power_series")
60 .def(boost::python::init <const VectorPowerSeries::numerator_type&,const VectorPowerSeries::denominator_type &>())
61 .def("__iter__", boost::python::iterator<VectorPowerSeries>());
62 def("gen",unitVector0);
63 // .def(self+=self)
64 // .def(self+self)
65 //.def(self*=Number())
66 //.def(Number() * self);
67}
68BOOST_PYTHON_MODULE(factory)
69{
70 boost::python::class_<Variable>("variable")

Callers

nothing calls this directly

Calls 9

export_polyFunction · 0.85
export_numberFunction · 0.85
export_vectorFunction · 0.85
export_idealFunction · 0.85
export_moduleFunction · 0.85
export_ringFunction · 0.85
export_intvecFunction · 0.85
export_CFFunction · 0.85
export_interpreterFunction · 0.85

Tested by

no test coverage detected