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

Function export_vector

Singular/dyn_modules/python/vector_wrap.cc:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 return p.getRing();
19}
20void export_vector(){
21 boost::python::class_<Vector>("Vector")
22 .def(boost::python::init <>())
23 .def("__str__", Vector_as_str)
24
25 // .def("__str__", Poly_as_str)
26 .def("__iter__", boost::python::iterator<Vector>())
27 .def(-self)
28 .def(self+=self)
29
30 .def(self+self)
31 .def(self*=Number())
32 .def(Poly() * self)
33 .def(Number() * self)
34 .def("ring",Vector_get_Ring);
35}
36#endif

Callers 1

BOOST_PYTHON_MODULEFunction · 0.85

Calls 2

NumberClass · 0.70
PolyClass · 0.70

Tested by

no test coverage detected