Changeset ad07b8 in git
- Timestamp:
- Mar 10, 2006, 5:37:01 PM (18 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f6c14e049cea6ca2239a192dae653203f79ef8f7
- Parents:
- 9398476592ddffc14fac95c5d53e48636717c631
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
r939847 rad07b8 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1. 19 2006-03-07 04:48:28 wienandExp $ */4 /* $Id: kutil.cc,v 1.20 2006-03-10 16:37:01 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 97 97 #endif 98 98 99 100 99 static poly redMora (poly h,int maxIndex,kStrategy strat); 101 100 static poly redBba (poly h,int maxIndex,kStrategy strat); … … 417 416 } 418 417 419 LSet initL () 420 { 421 int i; 422 LSet l = (LSet)omAlloc(setmaxL*sizeof(LObject)); 423 for (i=setmaxL-1;i>=0;i--) 424 { 425 l[i].tailRing = currRing; 426 l[i].i_r1 = -1; 427 l[i].i_r2 = -1; 428 l[i].i_r = -1; 429 } 430 return l; 431 } 418 //LSet initL () 419 //{ 420 // int i; 421 // LSet l = (LSet)omAlloc(setmaxL*sizeof(LObject)); 422 // return l; 423 //} 432 424 433 425 static inline void enlargeL (LSet* L,int* length,const int incr) … … 993 985 { 994 986 assume(i<=strat->sl); 987 if (strat->interred_flag) return; 988 995 989 int l,j,compare; 996 990 LObject Lp; 997 998 if (strat->interred_flag) return; 991 Lp.i_r = -1; 992 999 993 #ifdef KDEBUG 1000 994 Lp.ecart=0; Lp.length=0; … … 1215 1209 if (atR >= 0) 1216 1210 { 1211 Lp.i_r1 = strat->S_2_R[i]; 1217 1212 Lp.i_r2 = atR; 1218 Lp.i_r1 = strat->S_2_R[i]; 1213 } 1214 else 1215 { 1216 Lp.i_r1 = -1; 1217 Lp.i_r2 = -1; 1219 1218 } 1220 1219 strat->initEcartPair(&Lp,strat->S[i],p,strat->ecartS[i],ecart); … … 1258 1257 int l,j,compare; 1259 1258 LObject Lp; 1259 Lp.i_r = -1; 1260 1260 1261 1261 Lp.lcm = pInit(); … … 1295 1295 Lp.i_r1 = strat->S_2_R[i]; 1296 1296 Lp.i_r2 = atR; 1297 } 1298 else 1299 { 1300 Lp.i_r1 = -1; 1301 Lp.i_r2 = -1; 1297 1302 } 1298 1303 pNext(Lp.p) = strat->tail; -
kernel/kutil.h
r939847 rad07b8 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1.1 3 2006-03-10 12:53:20Singular Exp $ */6 /* $Id: kutil.h,v 1.14 2006-03-10 16:34:17 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for kStd … … 70 70 poly p; // Lm(p) \in currRing Tail(p) \in tailRing 71 71 poly t_p; // t_p \in tailRing: as monomials Lm(t_p) == Lm(p) 72 poly max; // p_GetMaxExpP(pNext(p)) 72 73 ring tailRing; 73 poly max; // p_GetMaxExpP(pNext(p))74 74 long FDeg; // pFDeg(p) 75 75 int ecart, … … 343 343 void deleteInS (int i,kStrategy strat); 344 344 void cleanT (kStrategy strat); 345 LSet initL (); 345 static inline LSet initL () 346 { return (LSet)omAlloc(setmaxL*sizeof(LObject)); }; 346 347 void deleteInL(LSet set, int *length, int j,kStrategy strat); 347 348 void enterL (LSet *set,int *length, int *LSetmax, LObject p,int at);
Note: See TracChangeset
for help on using the changeset viewer.