#include "kernel/mod2.h"
#include <boost/python.hpp>
#include "Singular/ipshell.h"
#include "ring_wrap.h"
#include "poly_wrap.h"
Go to the source code of this file.
◆ export_ring()
Definition at line 32 of file ring_wrap.cc.
34 boost::python::class_<Ring>(
"Ring",
"reference to a Singular ring")
36 .def(
"set",
ring_set,
"equivalent to the singular command setring, which is not mapped as it is a command")
37 .def(boost::python::init <>());
static boost::python::object Ring_as_str(const Ring &r)
◆ Ring_as_str()
static boost::python::object Ring_as_str |
( |
const Ring & |
r | ) |
|
|
static |
Definition at line 7 of file ring_wrap.cc.
intrusive_ptr< ip_sring > pimpl
void StringSetS(const char *st)
void rWrite(ring r, BOOLEAN details)
◆ ring_set()
void ring_set |
( |
Ring & |
R | ) |
|
Definition at line 15 of file ring_wrap.cc.
21 char name_buffer[100];
24 sprintf(name_buffer,
"PYTHON_RING_VAR%d",ending);
idhdl enterid(const char *s, int lev, int t, idhdl *root, BOOLEAN init, BOOLEAN search)
idhdl rFindHdl(ring r, idhdl n)