Changeset 5c51ab in git
- Timestamp:
- Nov 20, 2018, 10:08:44 PM (5 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6b0b41353343d43decc1e6b69445b44cca8cd850
- Parents:
- 462eb908e8ae9d64d947350f904778404a6b4528
- Location:
- kernel/GBEngine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd2.cc
r462eb9 r5c51ab 4130 4130 initBbaShift(strat); /* DONE */ 4131 4131 /*set enterS, spSpolyShort, reduce, red, initEcart, initEcartPair*/ 4132 /*Shdl=*/initBuchMora(F, Q,strat); /* updateS with no toT, i.e. no init for T */ 4133 updateSShift(strat); /* initializes T */ 4132 /*Shdl=*/initBuchMora(F, Q,strat); 4134 4133 if (strat->minim>0) strat->M=idInit(IDELEMS(F),F->rank); 4135 4134 reduc = olddeg = 0; -
kernel/GBEngine/kutil.cc
r462eb9 r5c51ab 9151 9151 enterT(h,strat); 9152 9152 strat->S_2_R[i] = strat->tl; 9153 #ifdef HAVE_SHIFTBBA 9154 if (currRing->isLPring) 9155 enterTShift(h, strat); 9156 #endif 9153 9157 } 9154 9158 } … … 9247 9251 enterT(h,strat); 9248 9252 strat->S_2_R[i] = strat->tl; 9253 #ifdef HAVE_SHIFTBBA 9254 if (currRing->isLPring) 9255 enterTShift(h, strat); 9256 #endif 9249 9257 } 9250 9258 if (suc!= -1) updateS(toT,strat); … … 10252 10260 ) 10253 10261 { 10254 #ifdef HAVE_SHIFTBBA10255 if (currRing->isLPring)10256 updateS(FALSE,strat); // T is filled by updateSShift() later10257 else10258 #endif10259 10262 updateS(TRUE,strat); 10260 10263 } … … 12172 12175 12173 12176 #ifdef HAVE_SHIFTBBA 12174 /* including the self pairs */12175 void updateSShift(kStrategy strat)12176 {12177 /* to use after updateS(toT=FALSE,strat) */12178 /* fills T with shifted elt's of S */12179 int i;12180 LObject h;12181 int atT = -1; // or figure out smth better12182 strat->tl = -1; // init12183 for (i=0; i<=strat->sl; i++)12184 {12185 memset(&h,0,sizeof(h));12186 h.p = strat->S[i];12187 strat->initEcart(&h);12188 h.sev = strat->sevS[i];12189 h.t_p = NULL;12190 h.GetTP(); // creates correct t_p12191 /*puts the elements of S with their shifts to T*/12192 // int atT, int uptodeg, int lV)12193 strat->S_2_R[i] = strat->tl + 1; // the el't with shift 0 will be inserted first12194 // need a small check for above; we insert >=1 elements12195 // insert this check into kTest_TS ?12196 enterTShift(h,strat,atT);12197 }12198 /* what about setting strat->tl? */12199 }12200 #endif12201 12202 #ifdef HAVE_SHIFTBBA12203 12177 /*1 12204 12178 * put the pairs (sh \dot s[i],p) into the set B, ecart=ecart(p) -
kernel/GBEngine/kutil.h
r462eb9 r5c51ab 857 857 void enterpairsShift (poly h,int k,int ecart,int pos,kStrategy strat, int atR); 858 858 859 void updateSShift(kStrategy strat);860 861 859 void initBbaShift(kStrategy strat); 862 860
Note: See TracChangeset
for help on using the changeset viewer.