Changeset c0e2c36 in git
- Timestamp:
- Feb 26, 2009, 4:57:01 PM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 3ec38a567b6025adb57223e0a734c42f135941f9
- Parents:
- 84d8b09321d52723c68edd2e14a97c84d72a8022
- Location:
- kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gr_kstd2.cc
r84d8b09 rc0e2c36 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: gr_kstd2.cc,v 1.3 1 2009-02-26 12:17:38 levandovExp $ */4 /* $Id: gr_kstd2.cc,v 1.32 2009-02-26 15:57:01 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: noncomm. alg. of Buchberger … … 103 103 { 104 104 if (rField_is_Zp_a()) pContent(h->p); 105 else pCleardenom(h->p);// also does a pContent105 else h->pCleardenom();// also does a pContent 106 106 } 107 107 /*computes the ecart*/ … … 231 231 { 232 232 if (rField_is_Zp_a()) pContent(h->p); 233 else pCleardenom(h->p);// also does a pContentRat233 else h->pCleardenom();// also does a pContentRat 234 234 } 235 235 loop … … 264 264 { 265 265 if (rField_is_Zp_a()) pContent(h->p); 266 else pCleardenom(h->p);// also does a pContent266 else h->pCleardenom();// also does a pContent 267 267 } 268 268 … … 463 463 { 464 464 if (rField_is_Zp_a()) pContent(h->p); 465 else pCleardenom(h->p);// also does a pContent465 else h->pCleardenom();// also does a pContent 466 466 } 467 467 if (strat->syzComp!=0) … … 487 487 { 488 488 if (rField_is_Zp_a()) pContent(h->p); 489 else pCleardenom(h->p);// also does a pContent489 else h->pCleardenom();// also does a pContent 490 490 } 491 491 /* … … 607 607 { 608 608 if (rField_is_Zp_a()) pContent(h->p); 609 else pCleardenom(h->p);// also does a pContent609 else h->pCleardenom();// also does a pContent 610 610 } 611 611 enterT((*h),strat); … … 724 724 { 725 725 //pContent(h->p); 726 pCleardenom(h->p);// also does a pContent726 h->pCleardenom();// also does a pContent 727 727 } 728 728 /* compute the ecart */ … … 790 790 { 791 791 //pContent(h->p); 792 pCleardenom(h->p);// also does a pContent792 h->pCleardenom();// also does a pContent 793 793 } 794 794 enterT((*h),strat); … … 945 945 { 946 946 //pContent(h->p); 947 pCleardenom(h->p);// also does a pContent947 h->pCleardenom();// also does a pContent 948 948 } 949 949 enterT((*h),strat); … … 1059 1059 #endif 1060 1060 1061 1062 1063 1061 assume(pOrdSgn != -1); // no mora!!! it terminates only for global ordering!!! (?) 1064 1062 … … 1177 1175 } 1178 1176 #endif 1179 1180 1177 } 1181 1178 if (strat->P.p != NULL) 1182 1179 { 1183 /* statistic */ 1184 if (TEST_OPT_PROT) 1180 if (TEST_OPT_PROT) 1181 { 1182 PrintS("s\n"); 1183 } 1184 /* enter P.p into s and L */ 1185 { 1186 strat->P.sev=0; 1187 int pos=posInS(strat,strat->sl,strat->P.p, strat->P.ecart); 1188 { 1189 if (TEST_OPT_INTSTRATEGY) 1185 1190 { 1186 PrintS("s\n"); 1191 if ((strat->syzComp==0)||(!strat->homog)) 1192 { 1193 #ifdef HAVE_RATGRING 1194 if(!rIsRatGRing(currRing)) 1195 #endif 1196 strat->P.p = redtailBba(strat->P.p,pos-1,strat); 1197 } 1198 1199 strat->P.p=pCleardenom(strat->P.p); 1187 1200 } 1188 /* enter P.p into s and L */1201 else 1189 1202 { 1190 strat->P.sev=0;1191 i nt pos=posInS(strat,strat->sl,strat->P.p, strat->P.ecart);1203 pNorm(strat->P.p); 1204 if ((strat->syzComp==0)||(!strat->homog)) 1192 1205 { 1193 if (TEST_OPT_INTSTRATEGY) 1194 { 1195 if ((strat->syzComp==0)||(!strat->homog)) 1196 { 1197 strat->P.p = redtailBba(strat->P.p,pos-1,strat); 1198 } 1199 pCleardenom(strat->P.p); 1200 } 1201 else 1202 { 1203 pNorm(strat->P.p); 1204 if ((strat->syzComp==0)||(!strat->homog)) 1205 { 1206 strat->P.p = redtailBba(strat->P.p,pos-1,strat); 1207 } 1208 } 1209 // PLURAL debug 1210 /* should be used only internally!!! */ 1211 1212 //pWrite(strat->P.p); 1213 1214 if (TEST_OPT_DEBUG) 1215 { 1216 PrintS("new s:"); wrp(strat->P.p); 1217 PrintLn(); 1206 strat->P.p = redtailBba(strat->P.p,pos-1,strat); 1207 } 1208 } 1209 if (TEST_OPT_DEBUG) 1210 { 1211 PrintS("new s:"); wrp(strat->P.p); 1212 PrintLn(); 1218 1213 #if MYTEST 1219 Print("s: "); pWrite(strat->P.p); 1220 #endif 1221 1222 } 1223 // kTest(strat); 1224 // 1225 enterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat); 1226 1227 if (strat->sl==-1) pos=0; 1228 else pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart); 1229 1230 strat->enterS(strat->P,pos,strat,-1); 1231 } 1232 // if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat); 1214 Print("s: "); pWrite(strat->P.p); 1215 #endif 1216 1233 1217 } 1234 if (strat->P.lcm!=NULL) pLmFree(strat->P.lcm); 1218 // kTest(strat); 1219 // 1220 enterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat); 1221 1222 if (strat->sl==-1) pos=0; 1223 else pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart); 1224 1225 strat->enterS(strat->P,pos,strat,-1); 1226 } 1227 // if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat); 1228 } 1229 if (strat->P.lcm!=NULL) pLmFree(strat->P.lcm); 1235 1230 if (strat->sl>srmax) srmax = strat->sl; 1236 1231 } -
kernel/gring.cc
r84d8b09 rc0e2c36 7 7 * Author: levandov (Viktor Levandovsky) 8 8 * Created: 8/00 - 11/00 9 * Version: $Id: gring.cc,v 1.7 0 2009-02-24 17:40:28Singular Exp $9 * Version: $Id: gring.cc,v 1.71 2009-02-26 15:55:46 Singular Exp $ 10 10 *******************************************************************/ 11 11 … … 1552 1552 p_Test(M2,r); 1553 1553 #endif 1554 if (M2!=NULL) pCleardenom(M2);1555 if (M2!=NULL) pContent(M2);1554 if (M2!=NULL) M2=pCleardenom(M2); 1555 //if (M2!=NULL) pContent(M2); // done by pCleardenom 1556 1556 return(M2); 1557 1557 } -
kernel/kstdfac.cc
r84d8b09 rc0e2c36 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstdfac.cc,v 1.1 7 2009-02-22 17:43:47Singular Exp $ */4 /* $Id: kstdfac.cc,v 1.18 2009-02-26 15:55:23 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: factorizing alg. of Buchberger … … 328 328 if (TEST_OPT_INTSTRATEGY) 329 329 { 330 pCleardenom(strat->S[si]);330 strat->S[si]=pCleardenom(strat->S[si]); 331 331 } 332 332 if (TEST_OPT_PROT) … … 371 371 { 372 372 n->P.p = redtailBba(n->P.p,pos-1,n); 373 pCleardenom(n->P.p);373 n->P.pCleardenom(); 374 374 } 375 375 else … … 613 613 { 614 614 strat->P.p = redtailBba(strat->P.p,strat->sl,strat); 615 if (strat->redTailChange) pCleardenom(strat->P.p);615 if (strat->redTailChange) strat->P.pCleardenom(); 616 616 } 617 617 else … … 670 670 if (n->redTailChange) 671 671 { 672 pCleardenom(n->P.p);672 n->P.pCleardenom(); 673 673 n->P.pLength=0; 674 674 } -
kernel/kutil.cc
r84d8b09 rc0e2c36 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.12 8 2009-02-23 19:22:27 levandovExp $ */4 /* $Id: kutil.cc,v 1.129 2009-02-26 15:55:02 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 5233 5233 { 5234 5234 //pContent(strat->S[i]); 5235 pCleardenom(strat->S[i]);// also does a pContent5235 strat->S[i]=pCleardenom(strat->S[i]);// also does a pContent 5236 5236 } 5237 5237 else … … 5256 5256 if (TEST_OPT_INTSTRATEGY) 5257 5257 { 5258 pCleardenom(h.p);// also does a pContent5258 h.pCleardenom();// also does a pContent 5259 5259 } 5260 5260 } … … 5302 5302 if (TEST_OPT_INTSTRATEGY) 5303 5303 { 5304 pCleardenom(strat->S[i]);// also does a pContent5304 strat->S[i]=pCleardenom(strat->S[i]);// also does a pContent 5305 5305 } 5306 5306 else … … 5931 5931 strat->S[i] = redtail(strat->S[i], strat->sl, strat); 5932 5932 if (TEST_OPT_INTSTRATEGY) 5933 pCleardenom(strat->S[i]);5933 strat->S[i]=pCleardenom(strat->S[i]); 5934 5934 } 5935 5935 if (TEST_OPT_PROT)
Note: See TracChangeset
for help on using the changeset viewer.