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

Function ipPrint_V

Singular/ipprint.cc:226–245  ·  view source on GitHub ↗

2 * print for: vector */

Source from the content-addressed store, hash-verified

224* print for: vector
225*/
226static BOOLEAN ipPrint_V(poly u)
227{
228 polyset m=NULL;
229 int l,j;
230 /*convert into an array of the components*/
231 p_Vec2Polys(u, &m, &l, currRing);
232 /*output*/
233 PrintS("[");
234 j=0;
235 loop
236 {
237 PrintS(pString(m[j]));
238 j++;
239 if (j<l) PrintS(",");
240 else
241 {
242 PrintS("]\n");
243 break;
244 }
245 }
246 /* clean up */
247 for(j=l-1;j>=0;j--) pDelete(&m[j]);
248 omFreeSize((ADDRESS)m,l*sizeof(poly));

Callers 1

jjPRINTFunction · 0.85

Calls 3

p_Vec2PolysFunction · 0.85
PrintSFunction · 0.85
pStringFunction · 0.85

Tested by

no test coverage detected