Changeset c0e2c36 in git for kernel/gr_kstd2.cc
- Timestamp:
- Feb 26, 2009, 4:57:01 PM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 3ec38a567b6025adb57223e0a734c42f135941f9
- Parents:
- 84d8b09321d52723c68edd2e14a97c84d72a8022
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.