Changeset f41347f in git
- Timestamp:
- Dec 4, 2008, 3:13:37 PM (15 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 8d14d6727730a17792390dffc7ccbaa20400a1d9
- Parents:
- b8b1d8bf67036f530445026e0839121eda08c83d
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd1.cc
rb8b1d8 rf41347f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd1.cc,v 1.4 0 2008-11-12 16:07:20 SingularExp $ */4 /* $Id: kstd1.cc,v 1.41 2008-12-04 14:13:37 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 951 951 } 952 952 #endif 953 return; 953 954 if ((!strat->kHEdgeFound) || (strat->kNoether!=NULL)) HEckeTest(p.p,strat); 954 955 if (strat->kHEdgeFound) … … 1083 1084 else if (strat->kHEdgeFound || strat->homog) 1084 1085 strat->red = redFirst; /*take the first possible in T*/ 1085 #ifdef HAVE_RINGS //TODO Oliver1086 else if (rField_is_Ring(currRing))1087 strat->red = redRing;1088 #endif1089 1086 else 1090 1087 strat->red = redEcart;/*take the first possible in under ecart-restriction*/ … … 1229 1226 { 1230 1227 /*- deletes the short spoly and computes -*/ 1228 #ifdef HAVE_RINGS 1229 if (rField_is_Ring(currRing)) 1230 pLmDelete(strat->P.p); 1231 else 1232 #endif 1231 1233 pLmFree(strat->P.p); 1232 1234 strat->P.p = NULL; … … 1284 1286 enterT(strat->P,strat); 1285 1287 // build new pairs 1288 #ifdef HAVE_RINGS 1289 if (rField_is_Ring(currRing)) 1290 superenterpairs(strat->P.p,strat->sl,strat->P.ecart,0,strat, strat->tl); 1291 else 1292 #endif 1286 1293 enterpairs(strat->P.p,strat->sl,strat->P.ecart,0,strat, strat->tl); 1287 1294 // put in S … … 1294 1301 1295 1302 // clear strat->P 1296 if (strat->P.lcm!=NULL) pLmFree(strat->P.lcm); 1303 if (strat->P.lcm!=NULL) 1304 #ifdef HAVE_RINGS 1305 pLmDelete(strat->P.lcm); 1306 #else 1307 pLmFree(strat->P.lcm); 1308 #endif 1297 1309 strat->P.lcm=NULL; 1298 1310 #ifdef KDEBUG -
kernel/kutil.cc
rb8b1d8 rf41347f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.11 2 2008-10-14 09:18:36wienand Exp $ */4 /* $Id: kutil.cc,v 1.113 2008-12-04 14:13:37 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 314 314 ring r = L->tailRing; 315 315 poly p = L->GetLmTailRing(); 316 317 #ifdef HAVE_RINGS 318 // Leading coef have to be a unit 319 if ( !(nIsUnit(p_GetCoeff(p, r))) ) return; 320 #endif 316 321 317 322 if(p_GetComp(p, r) != 0 && !p_OneComp(p, r)) return; … … 5086 5091 if (!pIsVector((*p).p) && ((*p).ecart != 0)) 5087 5092 { 5093 #ifdef HAVE_RINGS 5094 // Leading coef have to be a unit 5095 if ( !(nIsUnit(p_GetCoeff((*p).p, r))) ) return; 5096 #endif 5088 5097 k = 0; 5089 5098 h1 = r = pCopy((*p).p); … … 5097 5106 (*p).ecart = 0; 5098 5107 (*p).length = 1; 5108 #ifdef HAVE_RINGS 5109 (*p).pLength = 1; // Why wasn't this set already? 5110 #endif 5099 5111 (*suc)=0; 5100 5112 return;
Note: See TracChangeset
for help on using the changeset viewer.