Changeset 6c55ae in git


Ignore:
Timestamp:
Feb 22, 2009, 6:38:18 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d8be851dd8f2cf657611debe1b34b05aedcdf65d
Parents:
9efc0ed3b1b416b47dc688365553407a6550f518
Message:
*hannes: chainCrit ->strat


git-svn-id: file:///usr/local/Singular/svn/trunk@11439 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/kstdfac.cc

    r9efc0e r6c55ae  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstdfac.cc,v 1.15 2009-02-22 17:37:55 Singular Exp $ */
     4/* $Id: kstdfac.cc,v 1.16 2009-02-22 17:38:18 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: factorizing alg. of Buchberger
     
    173173  s->posInLOld=o->posInLOld;
    174174  s->enterOnePair=o->enterOnePair;
     175  s->chainCrit=o->chainCrit;
    175176  s->Shdl=idCopy(o->Shdl);
    176177  s->S=s->Shdl->m;
  • kernel/kutil.cc

    r9efc0e r6c55ae  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.120 2009-02-22 10:39:42 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.121 2009-02-22 17:37:55 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    13671367
    13681368
    1369 void enterOnePair (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR = -1)
     1369void enterOnePairNormal (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR = -1)
    13701370{
    13711371  assume(i<=strat->sl);
     
    17451745*using the chain-criterion in B and L and enters B to L
    17461746*/
    1747 void chainCrit (poly p,int ecart,kStrategy strat)
     1747void chainCritNormal (poly p,int ecart,kStrategy strat)
    17481748{
    17491749  int i,j,l;
     
    22652265          {
    22662266            new_pair=TRUE;
    2267             enterOnePair(j,h,ecart,isFromQ,strat, atR);
     2267            strat->enterOnePair(j,h,ecart,isFromQ,strat, atR);
    22682268          //Print("j:%d, Ll:%d\n",j,strat->Ll);
    22692269          }
     
    22752275        for (j=0; j<=k; j++)
    22762276        {
    2277           enterOnePair(j,h,ecart,isFromQ,strat, atR);
     2277          strat->enterOnePair(j,h,ecart,isFromQ,strat, atR);
    22782278          //Print("j:%d, Ll:%d\n",j,strat->Ll);
    22792279        }
     
    22882288        {
    22892289          new_pair=TRUE;
    2290           enterOnePair(j,h,ecart,isFromQ,strat, atR);
     2290          strat->enterOnePair(j,h,ecart,isFromQ,strat, atR);
    22912291        //Print("j:%d, Ll:%d\n",j,strat->Ll);
    22922292        }
     
    23012301      else
    23022302#endif
    2303       chainCrit(h,ecart,strat);
     2303      strat->chainCrit(h,ecart,strat);
    23042304    }
    23052305  }
     
    55995599void initBuchMoraCrit(kStrategy strat)
    56005600{
     5601  strat->enterOnePair=enterOnePairNormal;
     5602  strat->chainCrit=chainCritNormal;
     5603
    56015604  strat->sugarCrit =        TEST_OPT_SUGARCRIT;
    56025605  // obachman: Hmm.. I need BTEST1(2) for notBuckets ..
     
    72477250      else
    72487251#endif
    7249       chainCrit(h,ecart,strat);
     7252      strat->chainCrit(h,ecart,strat);
    72507253    }
    72517254
  • kernel/kutil.h

    r9efc0e r6c55ae  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kutil.h,v 1.40 2009-02-22 10:39:42 Singular Exp $ */
     6/* $Id: kutil.h,v 1.41 2009-02-22 17:37:55 Singular Exp $ */
    77/*
    88* ABSTRACT: kernel: utils for kStd
     
    255255  int (*posInLOld)(const LSet Ls,const int Ll,
    256256                   LObject* Lo,const kStrategy strat);
     257  void (*enterOnePair) (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR /*= -1*/);
     258  void (*chainCrit) (poly p,int ecart,kStrategy strat);
    257259  pFDegProc pOrigFDeg;
    258260  pLDegProc pOrigLDeg;
     
    449451void completeReduce (kStrategy strat, BOOLEAN withT=FALSE);
    450452void kFreeStrat(kStrategy strat);
     453void enterOnePairNormal (int i,poly p,int ecart, int isFromQ,kStrategy strat, int atR);
     454void chainCritNormal (poly p,int ecart,kStrategy strat);
    451455BOOLEAN homogTest(polyset F, int Fmax);
    452456BOOLEAN newHEdge(polyset S, kStrategy strat);
Note: See TracChangeset for help on using the changeset viewer.