2 * print for: vector */
| 224 | * print for: vector |
| 225 | */ |
| 226 | static 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)); |
no test coverage detected