- Timestamp:
- Oct 11, 2022, 3:35:34 PM (19 months ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 6469c282bedf5898b267f26f0af5ad47b00729aa
- Parents:
- 4cf1180106290c8ffa0f19cc40e6b396523235d1
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2022-10-11 15:35:34+02:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2022-10-11 15:55:31+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd1.cc
r4cf118 r8e2c77 1047 1047 * we have to reduce with bad ecart: H has to enter in T 1048 1048 */ 1049 doRed(&H,&(strat->T[ii]),TRUE,strat,TRUE); 1050 if (H.p == NULL) 1051 return NULL; 1049 LObject L= H; 1050 L.Copy(); 1051 H.GetP(); 1052 H.length=H.pLength=pLength(H.p); 1053 ksReducePoly(&L, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat, 1054 (flag & KSTD_NF_NONORM)==0); 1055 enterT(H,strat); 1056 H = L; 1052 1057 } 1053 1058 else … … 1056 1061 * we reduce with good ecart, h need not to be put to T 1057 1062 */ 1058 doRed(&H,&(strat->T[ii]),FALSE,strat,TRUE); 1059 if (H.p == NULL) 1060 return NULL; 1061 } 1063 ksReducePoly(&H, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat, 1064 (flag & KSTD_NF_NONORM)==0); 1065 } 1066 if (H.p == NULL) 1067 return NULL; 1062 1068 /*- try to reduce the s-polynomial -*/ 1063 1069 o = H.SetpFDeg(); 1064 if ((flag & 2) == 0) cancelunit(&H,TRUE);1070 if ((flag & KSTD_NF_ECART) == 0) cancelunit(&H,TRUE); 1065 1071 H.ecart = currRing->pLDeg(H.p,&(H.length),currRing)-o; 1066 1072 j = 0; … … 1085 1091 int o = H.SetpFDeg(); 1086 1092 H.ecart = currRing->pLDeg(H.p,&H.length,currRing)-o; 1087 if ((flag & 2) == 0) cancelunit(&H,TRUE);1093 if ((flag & KSTD_NF_ECART) == 0) cancelunit(&H,TRUE); 1088 1094 H.sev = pGetShortExpVector(H.p); 1089 1095 unsigned long not_sev = ~ H.sev; … … 1180 1186 * we have to reduce with bad ecart: H has to enter in T 1181 1187 */ 1182 doRed(&H,&(strat->T[ii]),TRUE,strat,TRUE); 1183 if (H.p == NULL) 1184 return NULL; 1188 LObject L= H; 1189 L.Copy(); 1190 H.GetP(); 1191 H.length=H.pLength=pLength(H.p); 1192 ksReducePoly(&L, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat, 1193 (flag & KSTD_NF_NONORM)==0); 1194 enterT_strong(H,strat); 1195 H = L; 1185 1196 } 1186 1197 else … … 1189 1200 * we reduce with good ecart, h need not to be put to T 1190 1201 */ 1191 doRed(&H,&(strat->T[ii]),FALSE,strat,TRUE); 1192 if (H.p == NULL) 1193 return NULL; 1202 ksReducePoly(&H, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat, 1203 (flag & KSTD_NF_NONORM)==0); 1194 1204 } 1205 if (H.p == NULL) 1206 return NULL; 1195 1207 /*- try to reduce the s-polynomial -*/ 1196 1208 o = H.SetpFDeg(); … … 2358 2370 if(rField_is_Ring(currRing)) 2359 2371 { 2360 p = redMoraNFRing(p,strat, lazyReduce & KSTD_NF_ECART);2372 p = redMoraNFRing(p,strat, lazyReduce); 2361 2373 } 2362 2374 else 2363 p = redMoraNF(p,strat, lazyReduce & KSTD_NF_ECART);2375 p = redMoraNF(p,strat, lazyReduce); 2364 2376 if ((p!=NULL)&&((lazyReduce & KSTD_NF_LAZY)==0)) 2365 2377 {
Note: See TracChangeset
for help on using the changeset viewer.