Changeset a610ee in git
- Timestamp:
- Feb 23, 2009, 2:50:52 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- b0237b842fe21cec3d4b51436f88ff9d8f8aad12
- Parents:
- 08500d542c4163fa9952a6aad1cf846ecf31945d
- Location:
- kernel
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Poly.h
r08500d ra610ee 1 //$Id: Poly.h,v 1.3 4 2006-06-21 06:26:58 brickenExp $1 //$Id: Poly.h,v 1.35 2009-02-23 13:50:51 Singular Exp $ 2 2 3 3 … … 380 380 StringSetS(""); 381 381 write(); 382 Print (StringAppendS(""));382 PrintS(StringAppendS("")); 383 383 }*/ 384 384 virtual ~PolyBase(){} -
kernel/ncSACache.h
r08500d ra610ee 4 4 * Computer Algebra System SINGULAR * 5 5 *****************************************/ 6 /* $Id: ncSACache.h,v 1. 4 2008-07-21 00:05:09 motsakExp $ */6 /* $Id: ncSACache.h,v 1.5 2009-02-23 13:50:51 Singular Exp $ */ 7 7 8 8 // #include <ncSACache.h> // for CCacheHash etc classes … … 59 59 { 60 60 /* 61 Print ("//////////////////////////////////////////////////////////////////////////////////////////////");61 PrintS("//////////////////////////////////////////////////////////////////////////////////////////////"); 62 62 PrintLn(); 63 Print ("CCacheHash::LookupEE(a, b, *results)!");63 PrintS("CCacheHash::LookupEE(a, b, *results)!"); 64 64 PrintLn(); 65 65 */ … … 73 73 { 74 74 /* 75 Print ("CCacheHash::StoreEE(a, b, Product)!");75 PrintS("CCacheHash::StoreEE(a, b, Product)!"); 76 76 PrintLn(); 77 77 */ … … 80 80 81 81 /* 82 Print ("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");82 PrintS("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"); 83 83 PrintLn(); 84 84 */ … … 89 89 virtual void History(const EHistoryType t, const CExponent a, const CExponent b, const poly p = NULL) 90 90 { 91 Print("CCacheHash::History(a, b, [p])!"); 92 PrintLn(); 91 PrintS("CCacheHash::History(a, b, [p])!\n"); 93 92 } 94 93 -
kernel/ncSAMult.cc
r08500d ra610ee 7 7 * Author: motsak 8 8 * Created: 9 * Version: $Id: ncSAMult.cc,v 1.1 0 2008-07-29 13:28:21 motsakExp $9 * Version: $Id: ncSAMult.cc,v 1.11 2009-02-23 13:50:52 Singular Exp $ 10 10 *******************************************************************/ 11 11 … … 43 43 44 44 #if OUTPUT 45 Print ("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_pp_Mult_mm(p, m) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV ");45 PrintS("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_pp_Mult_mm(p, m) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV "); 46 46 PrintLn(); 47 47 PrintS("p: "); p_Write(p, r); … … 67 67 p_Test(pResult, r); 68 68 69 Print ("gnc_pp_Mult_mm(p, m) => "); p_Write(pResult, r);69 PrintS("gnc_pp_Mult_mm(p, m) => "); p_Write(pResult, r); 70 70 PrintS("p: "); p_Write(p, r); 71 71 PrintS("m: "); p_Write(m, r); 72 Print ("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");72 PrintS("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "); 73 73 PrintLn(); 74 74 #endif … … 89 89 90 90 #if OUTPUT 91 Print ("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_p_Mult_mm(p, m) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV ");91 PrintS("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_p_Mult_mm(p, m) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV "); 92 92 PrintLn(); 93 93 PrintS("p: "); … … 116 116 p_Test(pResult, r); 117 117 118 Print ("gnc_p_Mult_mm(p, m) => "); p_Write(pResult, r);118 PrintS("gnc_p_Mult_mm(p, m) => "); p_Write(pResult, r); 119 119 // PrintS("p: "); p_Write(p, r); 120 120 PrintS("m: "); p_Write(m, r); 121 Print ("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");121 PrintS("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "); 122 122 PrintLn(); 123 123 #endif … … 141 141 142 142 #if OUTPUT 143 Print ("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_mm_Mult_p(m, p) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV ");143 PrintS("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_mm_Mult_p(m, p) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV "); 144 144 PrintLn(); 145 145 PrintS("m: "); p_Write(m, r); … … 166 166 p_Test(pResult, r); 167 167 168 Print ("gnc_mm_Mult_p(m, p) => "); p_Write(pResult, r);168 PrintS("gnc_mm_Mult_p(m, p) => "); p_Write(pResult, r); 169 169 // PrintS("p: "); p_Write(p, r); 170 170 PrintS("m: "); p_Write(m, r); 171 Print ("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");171 PrintS("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "); 172 172 PrintLn(); 173 173 #endif … … 189 189 190 190 #if OUTPUT 191 Print ("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_mm_Mult_pp(m, p) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV ");191 PrintS("VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV gnc_mm_Mult_pp(m, p) VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV "); 192 192 PrintLn(); 193 193 PrintS("m: "); p_Write(m, r); … … 214 214 p_Test(pResult, r); 215 215 216 Print ("gnc_mm_Mult_pp(m, p) => "); p_Write(pResult, r);216 PrintS("gnc_mm_Mult_pp(m, p) => "); p_Write(pResult, r); 217 217 PrintS("p: "); p_Write(p, r); 218 218 PrintS("m: "); p_Write(m, r); 219 Print ("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");219 PrintS("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "); 220 220 PrintLn(); 221 221 #endif … … 227 227 { 228 228 #if OUTPUT 229 Print ("|gnc_p_ProcsSet()");229 PrintS("|gnc_p_ProcsSet()"); 230 230 PrintLn(); 231 231 #endif … … 249 249 { 250 250 #if OUTPUT 251 Print ("ncInitSpecialPairMultiplication(ring), ring: \n");251 PrintS("ncInitSpecialPairMultiplication(ring), ring: \n"); 252 252 rWrite(r); 253 253 PrintLn(); … … 274 274 { 275 275 #if OUTPUT 276 Print ("CGlobalMultiplier::CGlobalMultiplier(ring)!");276 PrintS("CGlobalMultiplier::CGlobalMultiplier(ring)!"); 277 277 PrintLn(); 278 278 #endif … … 286 286 { 287 287 #if OUTPUT 288 Print ("CGlobalMultiplier::~CGlobalMultiplier()!");288 PrintS("CGlobalMultiplier::~CGlobalMultiplier()!"); 289 289 PrintLn(); 290 290 #endif … … 306 306 307 307 #if OUTPUT 308 Print ("CGlobalMultiplier::MultiplyEE(expLeft, expRight)!");308 PrintS("CGlobalMultiplier::MultiplyEE(expLeft, expRight)!"); 309 309 PrintLn(); 310 310 PrintS("expL: "); p_Write(expLeft, GetBasering()); … … 342 342 343 343 #if OUTPUT 344 Print ("<CGlobalMultiplier::MultiplyEE>");345 PrintLn(); 346 Print("i: %d, j: %d", i, j);344 PrintS("<CGlobalMultiplier::MultiplyEE>"); 345 PrintLn(); 346 SPrint("i: %d, j: %d", i, j); 347 347 PrintLn(); 348 348 Print("ei: %d, ej: %d", ei, ej); … … 407 407 408 408 #if OUTPUT 409 Print ("<CGlobalMultiplier::MultiplyEE> ==> ");409 PrintS("<CGlobalMultiplier::MultiplyEE> ==> "); 410 410 PrintLn(); 411 411 Print("i: %d, j: %d", i, j); … … 413 413 Print("ei: %d, ej: %d", ei, ej); 414 414 PrintLn(); 415 Print ("<product>: "); p_Write(product, GetBasering());415 PrintS("<product>: "); p_Write(product, GetBasering()); 416 416 #endif 417 417 … … 448 448 449 449 #if OUTPUT 450 Print ("<CGlobalMultiplier::MultiplyEE> ==> ");450 PrintS("<CGlobalMultiplier::MultiplyEE> ==> "); 451 451 PrintLn(); 452 452 Print("i: %d, j: %d", i, j); … … 454 454 Print("ei: %d, ej: %d", ei, ej); 455 455 PrintLn(); 456 Print ("<product>: "); p_Write(product, GetBasering());456 PrintS("<product>: "); p_Write(product, GetBasering()); 457 457 #endif 458 458 … … 473 473 { 474 474 #if OUTPUT 475 Print ("CGlobalMultiplier::MultiplyME(monom, expR)!");475 PrintS("CGlobalMultiplier::MultiplyME(monom, expR)!"); 476 476 PrintLn(); 477 477 PrintS("Monom: "); p_Write(pMonom, GetBasering()); … … 486 486 { 487 487 #if OUTPUT 488 Print ("CGlobalMultiplier::MultiplyEM(expL, monom)!");488 PrintS("CGlobalMultiplier::MultiplyEM(expL, monom)!"); 489 489 PrintLn(); 490 490 PrintS("expL: "); p_Write(expLeft, GetBasering()); … … 513 513 { 514 514 #if OUTPUT 515 Print ("CCommutativeSpecialPairMultiplier::~CCommutativeSpecialPairMultiplier()");515 PrintS("CCommutativeSpecialPairMultiplier::~CCommutativeSpecialPairMultiplier()"); 516 516 PrintLn(); 517 517 #endif … … 545 545 { 546 546 #if OUTPUT 547 Print ("CAntiCommutativeSpecialPairMultiplier::~CAntiCommutativeSpecialPairMultiplier()");547 PrintS("CAntiCommutativeSpecialPairMultiplier::~CAntiCommutativeSpecialPairMultiplier()"); 548 548 PrintLn(); 549 549 #endif … … 579 579 { 580 580 #if OUTPUT 581 Print ("CQuasiCommutativeSpecialPairMultiplier::~CQuasiCommutativeSpecialPairMultiplier()");581 PrintS("CQuasiCommutativeSpecialPairMultiplier::~CQuasiCommutativeSpecialPairMultiplier()"); 582 582 PrintLn(); 583 583 #endif … … 614 614 { 615 615 #if OUTPUT 616 Print ("CWeylSpecialPairMultiplier::~CWeylSpecialPairMultiplier()");616 PrintS("CWeylSpecialPairMultiplier::~CWeylSpecialPairMultiplier()"); 617 617 PrintLn(); 618 618 #endif … … 652 652 { 653 653 #if OUTPUT 654 Print ("CShiftSpecialPairMultiplier::~CShiftSpecialPairMultiplier()");654 PrintS("CShiftSpecialPairMultiplier::~CShiftSpecialPairMultiplier()"); 655 655 PrintLn(); 656 656 #endif … … 693 693 { 694 694 #if OUTPUT 695 Print ("CExternalSpecialPairMultiplier::~CExternalSpecialPairMultiplier()");695 PrintS("CExternalSpecialPairMultiplier::~CExternalSpecialPairMultiplier()"); 696 696 PrintLn(); 697 697 #endif … … 774 774 { 775 775 #if OUTPUT 776 Print ("CPowerMultiplier::CPowerMultiplier(ring)!");776 PrintS("CPowerMultiplier::CPowerMultiplier(ring)!"); 777 777 PrintLn(); 778 778 #endif … … 789 789 { 790 790 #if OUTPUT 791 Print ("CPowerMultiplier::~CPowerMultiplier()!");791 PrintS("CPowerMultiplier::~CPowerMultiplier()!"); 792 792 PrintLn(); 793 793 #endif … … 854 854 855 855 #if OUTPUT 856 Print ("CPowerMultiplier::MultiplyME() ===> ");856 PrintS("CPowerMultiplier::MultiplyME() ===> "); 857 857 p_Write(p, GetBasering()); 858 858 #endif … … 919 919 920 920 #if OUTPUT 921 Print ("CPowerMultiplier::MultiplyEM() ===> ");921 PrintS("CPowerMultiplier::MultiplyEM() ===> "); 922 922 p_Write(p, r); 923 923 #endif … … 933 933 { 934 934 #if OUTPUT 935 Print ("CPowerMultiplier::MultiplyEE)!");935 PrintS("CPowerMultiplier::MultiplyEE)!"); 936 936 PrintLn(); 937 937 #endif … … 1015 1015 { 1016 1016 #if OUTPUT 1017 Print ("CSpecialPairMultiplier::~CSpecialPairMultiplier()!");1017 PrintS("CSpecialPairMultiplier::~CSpecialPairMultiplier()!"); 1018 1018 PrintLn(); 1019 1019 #endif -
kernel/sca.cc
r08500d ra610ee 7 7 * Author: motsak (Oleksandr Motsak) 8 8 * Created: 2006/12/18 9 * Version: $Id: sca.cc,v 1.3 1 2009-02-21 17:50:11Singular Exp $9 * Version: $Id: sca.cc,v 1.32 2009-02-23 13:50:52 Singular Exp $ 10 10 *******************************************************************/ 11 11 … … 689 689 if( !p_Test(p, rRing) ) 690 690 { 691 Print ("p is wrong!");691 PrintS("p is wrong!"); 692 692 p_Write(p,rRing); 693 693 } … … 745 745 if( !p_Test(pPoly, rRing) ) 746 746 { 747 Print ("pPoly is wrong!");747 PrintS("pPoly is wrong!"); 748 748 p_Write(pPoly, rRing); 749 749 } … … 1049 1049 #if MYTEST 1050 1050 { 1051 Print ("ideal tempF: \n");1051 PrintS("ideal tempF: \n"); 1052 1052 idPrint(tempF); 1053 Print ("ideal tempQ: \n");1053 PrintS("ideal tempQ: \n"); 1054 1054 idPrint(tempQ); 1055 1055 } … … 1466 1466 1467 1467 #if MYTEST 1468 Print ("Analyzing quotient ideal:\n");1468 PrintS("Analyzing quotient ideal:\n"); 1469 1469 idPrint(idQuotient); // in rG!!! 1470 1470 #endif … … 1532 1532 #ifdef PDEBUG 1533 1533 #if OUTPUT 1534 Print ("Quotient: \n");1534 PrintS("Quotient: \n"); 1535 1535 iiWriteMatrix((matrix)idQuotient,"__",1); 1536 Print ("tempSCAQuotient: \n");1536 PrintS("tempSCAQuotient: \n"); 1537 1537 iiWriteMatrix((matrix)tempQ,"__",1); 1538 1538 #endif … … 1556 1556 #ifdef PDEBUG 1557 1557 #if OUTPUT 1558 Print ("SCAQuotient: \n");1558 PrintS("SCAQuotient: \n"); 1559 1559 if(tempQ != NULL) 1560 1560 iiWriteMatrix((matrix)tempQ,"__",1); 1561 1561 else 1562 Print ("(NULL)\n");1562 PrintS("(NULL)\n"); 1563 1563 #endif 1564 1564 #endif … … 2715 2715 PrintS("<id_KillSquares>\n"); 2716 2716 { 2717 Print ("ideal id: \n");2717 PrintS("ideal id: \n"); 2718 2718 for (int i = 0; i < IDELEMS(id); i++) 2719 2719 { … … 2721 2721 p_Write(id->m[i], r); 2722 2722 } 2723 Print (";\n");2723 PrintS(";\n"); 2724 2724 PrintLn(); 2725 2725 } … … 2735 2735 PrintS("<id_KillSquares>\n"); 2736 2736 { 2737 Print ("ideal temp: \n");2737 PrintS("ideal temp: \n"); 2738 2738 for (int i = 0; i < IDELEMS(temp); i++) 2739 2739 { … … 2741 2741 p_Write(temp->m[i], r); 2742 2742 } 2743 Print (";\n");2743 PrintS(";\n"); 2744 2744 PrintLn(); 2745 2745 } -
kernel/shiftgb.cc
r08500d ra610ee 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: shiftgb.cc,v 1.1 0 2008-08-07 18:08:37 levandovExp $ */4 /* $Id: shiftgb.cc,v 1.11 2009-02-23 13:50:52 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for shift GB and free GB … … 101 101 { 102 102 #ifdef PDEBUG 103 Print ("pmLPshift: negative shift requested");103 PrintS("pmLPshift: negative shift requested\n"); 104 104 #endif 105 105 return(NULL); /* violation, 2check */ … … 110 110 { 111 111 #ifdef PDEBUG 112 Print ("p_mLPshift: too big shift requested");112 PrintS("p_mLPshift: too big shift requested\n"); 113 113 #endif 114 114 return(NULL); /* violation, 2check */ … … 185 185 { 186 186 #ifdef PDEBUG 187 Print ("pmLPshift: negative shift requested");187 PrintS("pmLPshift: negative shift requested\n"); 188 188 #endif 189 189 return(NULL); /* violation, 2check */ … … 194 194 { 195 195 #ifdef PDEBUG 196 Print ("pmLPshift: too big shift requested");196 PrintS("pmLPshift: too big shift requested\n"); 197 197 #endif 198 198 return(NULL); /* violation, 2check */ … … 254 254 { 255 255 #ifdef PDEBUG 256 Print("pmLastVblock: unexpected zero exponent vector"); 257 PrintLn(); 256 PrintS("pmLastVblock: unexpected zero exponent vector\n"); 258 257 #endif 259 258 return(j); … … 320 319 { 321 320 #ifdef PDEBUG 322 Print("pmLastVblock: unexpected zero exponent vector"); 323 PrintLn(); 321 PrintS("pmLastVblock: unexpected zero exponent vector\n"); 324 322 #endif 325 323 return(j); … … 364 362 { 365 363 #ifdef PDEBUG 366 Print("pmFirstVblock: unexpected zero exponent vector"); 367 PrintLn(); 364 PrintS("pmFirstVblock: unexpected zero exponent vector\n"); 368 365 #endif 369 366 return(j); -
kernel/tgb.cc
r08500d ra610ee 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: tgb.cc,v 1.16 0 2008-09-19 17:31:38Singular Exp $ */7 /* $Id: tgb.cc,v 1.161 2009-02-23 13:50:52 Singular Exp $ */ 8 8 /* 9 9 * ABSTRACT: slimgb and F4 implementation … … 497 497 return erg; 498 498 } 499 //Print ("I am here");499 //PrintS("I am here"); 500 500 wlen_type r=pSLength(p,l); 501 501 assume(r>=0); … … 1633 1633 omfree(array_arg); // !!! 1634 1634 } 1635 // Print ("Saturation - done!!!\n");1635 // PrintS("Saturation - done!!!\n"); 1636 1636 } 1637 1637 #endif // if SCAlgebra … … 2046 2046 } 2047 2047 if (i!=dn->value_len){ 2048 Print ("F4 calc wrong, as poly len was wrong\n");2048 PrintS("F4 calc wrong, as poly len was wrong\n"); 2049 2049 } 2050 2050 assume(i==dn->value_len); … … 4275 4275 int len; 4276 4276 // wrp(los[erg.to_reduce_u].p); 4277 //Print ("\n");4277 //PrintLn(); 4278 4278 multi_reduce_step(erg,los,c); 4279 4279
Note: See TracChangeset
for help on using the changeset viewer.