1 #ifndef PYTHON_SINGULAR_WRAPPER_HEADER 2 #define PYTHON_SINGULAR_WRAPPER_HEADER 4 #include <boost/python.hpp> 19 #include "factory/factory.h" 28 using boost::python::extract;
40 PyErr_SetString(PyExc_UserWarning,
"Objects didn't have the same ring");
45 register_exception_translator<
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>());
70 boost::python::class_<Variable>(
"variable")
71 .def(boost::python::init <const int, char>())
72 .def(boost::python::init <char>())
73 .def(boost::python::init <const int>());
Vector unitVector(int i, ring r=currRing)
Vector unitVector0(int i)
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
void export_interpreter()
void PrintS(const char *s)
void different_ring_translator(DifferentDomainException const &x)
BOOST_PYTHON_MODULE(Singular)