Changeset d2ac76 in git for Singular/ipprint.cc
- Timestamp:
- Aug 19, 1999, 1:56:28 PM (25 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- af02e94f77dcfb727ab1b5afaa21e365262bc0e3
- Parents:
- e1594a457595b16402757886a9305b354f7a488f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipprint.cc
re1594a rd2ac76 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipprint.cc,v 1.1 3 1999-05-26 16:23:55 obachmanExp $ */4 /* $Id: ipprint.cc,v 1.14 1999-08-19 11:56:28 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: printing … … 220 220 case INTVEC_CMD: 221 221 return ipPrint_INTVEC(u); 222 222 223 223 case INTMAT_CMD: 224 224 return ipPrint_INTMAT(u); 225 225 226 226 case MATRIX_CMD: 227 227 return ipPrint_MA(u); … … 235 235 return FALSE; 236 236 } 237 237 238 238 case MODUL_CMD: 239 239 { … … 243 243 return FALSE; 244 244 } 245 245 246 246 case VECTOR_CMD: 247 247 return ipPrint_V(u); 248 248 249 249 default: 250 250 u->Print(); … … 298 298 for(j=1;j<=betti->cols();j++) 299 299 { 300 Print(" %5d",IMATELEM(*betti,i+1,j)); 300 int m=IMATELEM(*betti,i+1,j); 301 if (m==0) 302 PrintS(" -"); 303 else 304 Print(" %5d",m); 301 305 } 302 306 PrintLn(); … … 357 361 { 358 362 SPrintStart(); 359 if (u->rtyp==IDHDL) 363 if (u->rtyp==IDHDL) 360 364 type_cmd((idhdl) (u->data)); 361 else 365 else 362 366 type_cmd((idhdl) u); 363 367 res->data = SPrintEnd(); 364 if (dim != 2) 368 if (dim != 2) 365 369 ((char*)res->data)[strlen((char*)res->data) -1] = '\0'; 366 370 } … … 386 390 res->data = SPrintEnd(); 387 391 } 388 else 392 else 389 393 { 390 394 res->data = u->String(NULL, FALSE, dim); … … 398 402 } 399 403 } 400 404 401 405 FreeL(ns); 402 406 res->rtyp = STRING_CMD;
Note: See TracChangeset
for help on using the changeset viewer.