| 40 | PyErr_SetString(PyExc_UserWarning, "Objects didn't have the same ring"); |
| 41 | } |
| 42 | BOOST_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 | } |
| 68 | BOOST_PYTHON_MODULE(factory) |
| 69 | { |
| 70 | boost::python::class_<Variable>("variable") |
nothing calls this directly
no test coverage detected