#include <Python.h>
#include <boost/python.hpp>
#include <sstream>
#include "kernel/mod2.h"
#include "kernel/structs.h"
#include "coeffs/numbers.h"
#include "Singular/ipid.h"
#include "Singular/ipshell.h"
#include "Number.h"
#include "Poly.h"
#include "PowerSeries.h"
#include "Ideal.h"
#include "ideal_wrap.h"
#include "factory/factory.h"
#include "poly_wrap.h"
#include "vector_wrap.h"
#include "CF_wrap.h"
#include "number_wrap.h"
#include "interpreter_support.h"
#include "ring_wrap.h"
#include "intvec_wrap.h"
Go to the source code of this file.
◆ BOOST_PYTHON_MODULE() [1/3]
BOOST_PYTHON_MODULE |
( |
_Singular |
| ) |
|
Definition at line 76 of file wrapper.h.
77{
79}
void export_interpreter()
◆ BOOST_PYTHON_MODULE() [2/3]
BOOST_PYTHON_MODULE |
( |
factory |
| ) |
|
Definition at line 68 of file wrapper.h.
69{
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>());
75}
◆ BOOST_PYTHON_MODULE() [3/3]
BOOST_PYTHON_MODULE |
( |
Singular |
| ) |
|
Definition at line 42 of file wrapper.h.
43{
44
45 register_exception_translator<
50
53
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>());
63
64
65
66
67}
Vector unitVector0(int i)
void different_ring_translator(DifferentDomainException const &x)
◆ different_ring_translator()
Definition at line 37 of file wrapper.h.
38{
40 PyErr_SetString(PyExc_UserWarning, "Objects didn't have the same ring");
41}
void PrintS(const char *s)
◆ unitVector0()
Definition at line 32 of file wrapper.h.
33{
35}
Vector unitVector(int i, ring r=currRing)
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...