Changeset 9b5240 in git
- Timestamp:
- Jun 2, 2004, 5:59:32 PM (20 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- f4bb7153e16ec3985493802befee171c8dc34466
- Parents:
- 025942c7975176bc8476434e325cc5c24ba8622b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/syz3.cc
r025942 r9b5240 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz3.cc,v 1. 1.1.1 2003-10-06 12:16:04Singular Exp $ */4 /* $Id: syz3.cc,v 1.2 2004-06-02 15:59:12 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: resolutions … … 99 99 Print("der %d-te modul ist:\n",i); 100 100 idPrint(syzstr->res[i]); 101 Print ("Seine Darstellung:\n");101 PrintS("Seine Darstellung:\n"); 102 102 idPrint(syzstr->orderedRes[i]); 103 103 i++; … … 397 397 if (ti<l) 398 398 { 399 if (TEST_OPT_PROT) Print ("cc");399 if (TEST_OPT_PROT) PrintS("cc"); 400 400 syDeletePair(&(*resPairs)[ti]); 401 401 syCompactifyPairSet(*resPairs,*l_pairs,ti); … … 452 452 #ifdef SHOW_PROT 453 453 Print("erzeuge Paar im Modul %d,%d mit: \n",index,tso.order); 454 Print ("poly1: ");pWrite(tso.p1);455 Print ("poly2: ");pWrite(tso.p2);456 Print ("syz: ");pWrite(tso.syz);457 Print ("sPoly: ");pWrite(tso.p);454 PrintS("poly1: ");pWrite(tso.p1); 455 PrintS("poly2: ");pWrite(tso.p2); 456 PrintS("syz: ");pWrite(tso.syz); 457 PrintS("sPoly: ");pWrite(tso.p); 458 458 PrintLn(); 459 459 #endif … … 675 675 { 676 676 if (TEST_OPT_PROT) 677 Print (".");677 PrintS("."); 678 678 if (index==0) 679 679 { … … 760 760 #ifdef SHOW_PROT 761 761 Print("reduziere Paar im Module %d mit: \n",index); 762 Print ("poly1: ");pWrite(tso.p1);763 Print ("poly2: ");pWrite(tso.p2);764 Print ("syz: ");pWrite(tso.syz);765 Print ("sPoly: ");pWrite(tso.p);762 PrintS("poly1: ");pWrite(tso.p1); 763 PrintS("poly2: ");pWrite(tso.p2); 764 PrintS("syz: ");pWrite(tso.syz); 765 PrintS("sPoly: ");pWrite(tso.p); 766 766 #endif 767 767 assume(tso.syz!=NULL); … … 835 835 else 836 836 { 837 Print ("Shit happens!\n");837 PrintS("Shit happens!\n"); 838 838 } 839 839 #ifdef SHOW_PROT 840 840 Print("erhalte Paar im Module %d mit: \n",index); 841 Print ("syz: ");pWrite(tso.syz);842 Print ("sPoly: ");pWrite(tso.p);841 PrintS("syz: ");pWrite(tso.syz); 842 PrintS("sPoly: ");pWrite(tso.p); 843 843 PrintLn(); 844 844 #endif … … 1096 1096 if (ti<l) 1097 1097 { 1098 if (TEST_OPT_PROT) Print ("cc");1098 if (TEST_OPT_PROT) PrintS("cc"); 1099 1099 syDeletePair(&(*resPairs)[ti]); 1100 1100 syCompactifyPairSet(*resPairs,*l_pairs,ti); … … 1151 1151 #ifdef SHOW_PROT 1152 1152 Print("erzeuge Paar im Modul %d,%d mit: \n",index,tso.order); 1153 Print ("poly1: ");pWrite(tso.p1);1154 Print ("poly2: ");pWrite(tso.p2);1155 Print ("syz: ");pWrite(tso.syz);1156 Print ("sPoly: ");pWrite(tso.p);1153 PrintS("poly1: ");pWrite(tso.p1); 1154 PrintS("poly2: ");pWrite(tso.p2); 1155 PrintS("syz: ");pWrite(tso.syz); 1156 PrintS("sPoly: ");pWrite(tso.p); 1157 1157 PrintLn(); 1158 1158 #endif … … 1196 1196 { 1197 1197 if (TEST_OPT_PROT) 1198 Print (".");1198 PrintS("."); 1199 1199 #ifdef USE_PROD_CRIT 1200 1200 if (pFDeg(tso.p1)+pFDeg(tso.p2)==tso.order+pFDeg(deg_soc)) 1201 1201 { 1202 if (TEST_OPT_PROT) Print ("pc");1202 if (TEST_OPT_PROT) PrintS("pc"); 1203 1203 int ac=pGetComp(tso.p1); 1204 1204 assume(ac=pGetComp(tso.p2)); … … 1269 1269 #ifdef SHOW_PROT 1270 1270 Print("reduziere Paar im Module %d mit: \n",index); 1271 Print ("poly1: ");pWrite(tso.p1);1272 Print ("poly2: ");pWrite(tso.p2);1273 Print ("syz: ");pWrite(tso.syz);1274 Print ("sPoly: ");pWrite(tso.p);1271 PrintS("poly1: ");pWrite(tso.p1); 1272 PrintS("poly2: ");pWrite(tso.p2); 1273 PrintS("syz: ");pWrite(tso.syz); 1274 PrintS("sPoly: ");pWrite(tso.p); 1275 1275 #endif 1276 1276 assume(tso.syz!=NULL); … … 1303 1303 else 1304 1304 { 1305 Print ("Shit happens!\n");1305 PrintS("Shit happens!\n"); 1306 1306 } 1307 1307 #ifdef SHOW_PROT 1308 1308 Print("erhalte Paar im Module %d mit: \n",index); 1309 Print ("syz: ");pWrite(tso.syz);1310 Print ("sPoly: ");pWrite(tso.p);1309 PrintS("syz: ");pWrite(tso.syz); 1310 PrintS("sPoly: ");pWrite(tso.p); 1311 1311 PrintLn(); 1312 1312 #endif … … 1321 1321 } 1322 1322 } 1323 if ((TEST_OPT_PROT) && (tso.syz==NULL)) Print ("null");1323 if ((TEST_OPT_PROT) && (tso.syz==NULL)) PrintS("null"); 1324 1324 if ((tso.p!=NULL) && (pGetComp(tso.p)>crit_comp)) 1325 1325 { … … 1731 1731 //omFreeSize((ADDRESS)og_l,IDELEMS(syzstr->res[0])*sizeof(int)); 1732 1732 #ifdef SHOW_PROT 1733 Print ("Add new generators:\n");1733 PrintS("Add new generators:\n"); 1734 1734 idPrint(new_generators); 1735 Print ("with representaions:\n");1735 PrintS("with representaions:\n"); 1736 1736 idPrint(new_repr); 1737 1737 #endif … … 1902 1902 { 1903 1903 if (isRegular) 1904 Print ("\n regular\n");1904 PrintS("\n regular\n"); 1905 1905 else 1906 Print ("\n not regular\n");1906 PrintS("\n not regular\n"); 1907 1907 } 1908 1908 if (next_gen!=NULL) … … 1989 1989 else 1990 1990 { 1991 Print ("Da ist was faul!!!\n");1991 PrintS("Da ist was faul!!!\n"); 1992 1992 Print("Aber: Regularitaet %d, Grad %d\n",syzstr->regularity,pFDeg(totake[index]->m[i])); 1993 1993 }
Note: See TracChangeset
for help on using the changeset viewer.