Changeset 6e3023a in git for kernel/kutil.h


Ignore:
Timestamp:
Dec 18, 2013, 2:57:02 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
3a9e92a717b194d4a06a429b452258c0269579076235be46a7d664256bb99b1bd6340cd8ad800e2c
Parents:
74c446222122656dc7859919b51f3806768e7fd331b00db0e867fa73d4415e16969423de4337f6f7
Message:
Merge pull request #437 from ederc/sig-comparisons

Improvements for SBA
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kutil.h

    r74c4462 r6e3023a  
    180180public:
    181181  unsigned long sev;
    182   unsigned long from; // from which polynomial it comes from
    183             // this is important for signature-based
    184             // algorithms
     182  unsigned long from; // index in sig up to which the correspongin LObject was already checked
    185183  unsigned long checked; // this is the index of S up to which
    186184                      // the corresponding LObject was already checked in
     
    188186                      // reduction process it is enough to start a second
    189187                      // rewritten criterion check from checked+1 onwards
    190                       // NOTE: If checked = 3 then the corresponding pair is
     188  BOOLEAN prod_crit;
     189                      // NOTE: If prod_crit = TRUE then the corresponding pair is
    191190                      // detected by Buchberger's Product Criterion and can be
    192191                      // deleted
     
    289288  void (*chainCrit) (poly p,int ecart,kStrategy strat);
    290289  BOOLEAN (*syzCrit) (poly sig, unsigned long not_sevSig, kStrategy strat);
    291   BOOLEAN (*rewCrit1) (poly sig, unsigned long not_sevSig, kStrategy strat, int start /*= 0*/);
    292   BOOLEAN (*rewCrit2) (poly sig, unsigned long not_sevSig, kStrategy strat, int start /*= 0*/);
     290  BOOLEAN (*rewCrit1) (poly sig, unsigned long not_sevSig, poly lm, kStrategy strat, int start /*= 0*/);
     291  BOOLEAN (*rewCrit2) (poly sig, unsigned long not_sevSig, poly lm, kStrategy strat, int start /*= 0*/);
     292  BOOLEAN (*rewCrit3) (poly sig, unsigned long not_sevSig, poly lm, kStrategy strat, int start /*= 0*/);
    293293  pFDegProc pOrigFDeg;
    294294  pLDegProc pOrigLDeg;
     
    310310                // syzygy of component i comes up
    311311                // important for signature-based algorithms
    312   BOOLEAN incremental;
     312  unsigned sbaOrder;
    313313  unsigned long currIdx;
    314314  int max_lower_index;
     
    446446int posInLSig (const LSet set, const int length,
    447447               LObject* L,const kStrategy strat);
     448int posInSyz (const kStrategy strat, const poly sig);
    448449int posInL0 (const LSet set, const int length,
    449450             LObject* L,const kStrategy strat);
     
    467468poly redtailBba (LObject *L, int pos,kStrategy strat,
    468469                 BOOLEAN withT = FALSE,BOOLEAN normalize=FALSE);
     470poly redtailSba (LObject *L, int pos,kStrategy strat,
     471                 BOOLEAN withT = FALSE,BOOLEAN normalize=FALSE);
    469472poly redtailBba (TObject *T, int pos,kStrategy strat);
    470473poly redtail (poly p,int pos,kStrategy strat);
     
    518521void initSyzRules (kStrategy strat);
    519522void updateS(BOOLEAN toT,kStrategy strat);
    520 void enterSyz (LObject p,kStrategy strat);
     523void enterSyz (LObject p,kStrategy strat, int atT);
    521524void enterT (LObject p,kStrategy strat, int atT = -1);
    522525void cancelunit (LObject* p,BOOLEAN inNF=FALSE);
     
    542545BOOLEAN syzCriterion(poly sig, unsigned long not_sevSig, kStrategy strat);
    543546BOOLEAN syzCriterionInc(poly sig, unsigned long not_sevSig, kStrategy strat);
    544 KINLINE BOOLEAN arriRewDummy(poly sig, unsigned long not_sevSig, kStrategy strat, int start);
    545 BOOLEAN arriRewCriterion(poly sig, unsigned long not_sevSig, kStrategy strat, int start);
    546 BOOLEAN faugereRewCriterion(poly sig, unsigned long not_sevSig, kStrategy strat, int start);
     547KINLINE BOOLEAN arriRewDummy(poly sig, unsigned long not_sevSig, poly lm, kStrategy strat, int start);
     548BOOLEAN arriRewCriterion(poly sig, unsigned long not_sevSig, poly lm, kStrategy strat, int start);
     549BOOLEAN arriRewCriterionPre(poly sig, unsigned long not_sevSig, poly lm, kStrategy strat, int start);
     550BOOLEAN faugereRewCriterion(poly sig, unsigned long not_sevSig, poly lm, kStrategy strat, int start);
    547551BOOLEAN findMinLMPair(poly sig, unsigned long not_sevSig, kStrategy strat, int start);
    548552// returns index of p in TSet, or -1 if not found
Note: See TracChangeset for help on using the changeset viewer.