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

Function Vector_as_str

Singular/dyn_modules/python/vector_wrap.cc:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using boost::python::self;
8
9static boost::python::object Vector_as_str(Vector& p)
10{
11 using boost::python::str;
12 //ring r=p.getRing();
13
14 char* out=p.c_string();
15 return boost::python::str(out,strlen(out));
16}
17static Ring Vector_get_Ring(const Vector & p){
18 return p.getRing();
19}

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
c_stringMethod · 0.45

Tested by

no test coverage detected