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

Function toString

gfanlib/gfanlibtest.cpp:14–32  ·  view source on GitHub ↗

Printing: */

Source from the content-addressed store, hash-verified

12/*Printing:
13 */
14string toString(gfan::ZMatrix const &m, char *tab=0)
15{
16 stringstream s;
17
18 for(int i=0;i<m.getHeight();i++)
19 {
20 if(tab)s<<tab;
21 for(int j=0;j<m.getWidth();j++)
22 {
23 s<<m[i][j];
24 if(i+1!=m.getHeight() || j+1!=m.getWidth())
25 {
26 s<<",";
27 }
28 }
29 s<<endl;
30 }
31 return s.str();
32}
33
34string toPrintString(gfan::ZMatrix const &m, int fieldWidth, char *tab=0)
35{

Callers 1

mainFunction · 0.70

Calls 6

getHeightMethod · 0.80
getWidthMethod · 0.80
getInequalitiesMethod · 0.80
getEquationsMethod · 0.80
ambientDimensionMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected