Changeset 3086df in git
- Timestamp:
- Oct 2, 2009, 4:16:57 PM (15 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 414d035b432a95898b803d8803f4ebc5eee0166e
- Parents:
- f2dcd1b022b58cf3a4a8c2c40138fcd7a41c8fe7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/matpol.cc
rf2dcd1 r3086df 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: matpol.cc,v 1.1 7 2009-10-02 13:48:13seelisch Exp $ */4 /* $Id: matpol.cc,v 1.18 2009-10-02 14:16:57 seelisch Exp $ */ 5 5 6 6 /* … … 655 655 l = 1; /* k,l:the index in result*/ 656 656 idInitChoise(ar,1,a->nrows,&rowch,rowchoise); 657 totalNumOfMult = 0; totalNumOfAdd = 0; // for counting basic arithmetic operations 657 658 while (!rowch) 658 659 { … … 677 678 l++; 678 679 } 679 680 <<<<<<< matpol.cc 681 PrintS("=========================================================================="); 682 printf("total number of calls to pAdd = %d", totalNumOfAdd); 683 printf("total number of calls to smMultDiv = %d", totalNumOfMult); 684 PrintS("(smMultDiv(a,b,c) returns the portion of (a*b)/LM(c) with nonegative"); 685 PrintS(" exponents; for more than five monomials this method makes use of buckets)"); 686 PrintS("=========================================================================="); 687 ======= 688 689 >>>>>>> 1.17 680 690 /*delete the matrix tmp*/ 681 691 for (i=1; i<=ar; i++) … … 1111 1121 if (ap[jj] != NULL) 1112 1122 { 1123 totalNumOfMult++; 1113 1124 q2 = SM_MULT(ap[jj], elim, div); 1114 1125 if (a[jj] != NULL) 1115 1126 { 1127 totalNumOfMult++; 1116 1128 q1 = SM_MULT(a[jj], piv, div); 1117 1129 pDelete(&a[jj]); 1130 totalNumOfAdd++; 1118 1131 q2 = pAdd(q2, q1); 1119 1132 } … … 1121 1134 else if (a[jj] != NULL) 1122 1135 { 1136 totalNumOfMult++; 1123 1137 q2 = SM_MULT(a[jj], piv, div); 1124 1138 } … … 1136 1150 if (a[jj] != NULL) 1137 1151 { 1152 totalNumOfMult++; 1138 1153 q2 = SM_MULT(a[jj], piv, div); 1139 1154 pDelete(&a[jj]);
Note: See TracChangeset
for help on using the changeset viewer.