Changeset 5c51ab in git


Ignore:
Timestamp:
Nov 20, 2018, 10:08:44 PM (5 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6b0b41353343d43decc1e6b69445b44cca8cd850
Parents:
462eb908e8ae9d64d947350f904778404a6b4528
Message:
Remove updateSShift
Location:
kernel/GBEngine
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd2.cc

    r462eb9 r5c51ab  
    41304130  initBbaShift(strat); /* DONE */
    41314131  /*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);
    41344133  if (strat->minim>0) strat->M=idInit(IDELEMS(F),F->rank);
    41354134  reduc = olddeg = 0;
  • kernel/GBEngine/kutil.cc

    r462eb9 r5c51ab  
    91519151        enterT(h,strat);
    91529152        strat->S_2_R[i] = strat->tl;
     9153#ifdef HAVE_SHIFTBBA
     9154        if (currRing->isLPring)
     9155          enterTShift(h, strat);
     9156#endif
    91539157      }
    91549158    }
     
    92479251      enterT(h,strat);
    92489252      strat->S_2_R[i] = strat->tl;
     9253#ifdef HAVE_SHIFTBBA
     9254      if (currRing->isLPring)
     9255        enterTShift(h, strat);
     9256#endif
    92499257    }
    92509258    if (suc!= -1) updateS(toT,strat);
     
    1025210260  )
    1025310261  {
    10254 #ifdef HAVE_SHIFTBBA
    10255     if (currRing->isLPring)
    10256       updateS(FALSE,strat); // T is filled by updateSShift() later
    10257     else
    10258 #endif
    1025910262    updateS(TRUE,strat);
    1026010263  }
     
    1217212175
    1217312176#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 better
    12182   strat->tl = -1; // init
    12183   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_p
    12191     /*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 first
    12194     // need a small check for above; we insert >=1 elements
    12195     // insert this check into kTest_TS ?
    12196     enterTShift(h,strat,atT);
    12197   }
    12198   /* what about setting strat->tl? */
    12199 }
    12200 #endif
    12201 
    12202 #ifdef HAVE_SHIFTBBA
    1220312177/*1
    1220412178* put the pairs (sh \dot s[i],p)  into the set B, ecart=ecart(p)
  • kernel/GBEngine/kutil.h

    r462eb9 r5c51ab  
    857857void enterpairsShift (poly h,int k,int ecart,int pos,kStrategy strat, int atR);
    858858
    859 void updateSShift(kStrategy strat);
    860 
    861859void initBbaShift(kStrategy strat);
    862860
Note: See TracChangeset for help on using the changeset viewer.