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

Function Module_as_str

Singular/dyn_modules/python/ideal_wrap.cc:31–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return res;
30}
31static boost::python::object Module_as_str(const Module& p)
32{
33 using boost::python::str;
34 //ring r=p.getRing();
35 str helper;
36 list tojoin;
37 int i;
38 int s=p.size();
39 //tojoin.append("[");
40 for(i=0;i<s;i++){
41 tojoin.append(Vector_as_str(p[i]));
42 if (i<s-1)
43 tojoin.append(", ");
44 }
45 //tojoin.append("]");
46 str res=helper.join(tojoin);
47 return res;
48}
49
50static Ring Ideal_get_Ring(const Ideal & p){
51 return p.getRing();

Callers

nothing calls this directly

Calls 3

Vector_as_strFunction · 0.70
sizeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected