Changeset fe89b98 in git


Ignore:
Timestamp:
Aug 21, 2011, 3:28:09 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
2e757c48501ca724ccafe96fc2ffb048a4ca59de
Parents:
4691363437c8cb2f8bd9e698274bb467a91b9feb
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-08-21 15:28:09+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:24+01:00
Message:
fix pLeXOrder
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r4691363 rfe89b98  
    23052305  }
    23062306  pFDegProc deg;
    2307   if (pLexOrder && (currRing->order[0]==ringorder_lp))
     2307  if (currRing->pLexOrder && (currRing->order[0]==ringorder_lp))
    23082308    deg=p_Totaldegree;
    23092309   else
     
    23252325  pFDegProc save_FDeg=currRing->pFDeg;
    23262326  pLDegProc save_LDeg=currRing->pLDeg;
    2327   BOOLEAN save_pLexOrder=pLexOrder;
    2328   pLexOrder=FALSE;
     2327  BOOLEAN save_pLexOrder=currRing->pLexOrder;
     2328  currRing->pLexOrder=FALSE;
    23292329  kHomW=vw;
    23302330  kModW=w;
    23312331  pSetDegProcs(currRing,kHomModDeg);
    23322332  res->data=(void *)(long)idHomModule(v_id,currQuotient,&w);
    2333   pLexOrder=save_pLexOrder;
     2333  currRing->pLexOrder=save_pLexOrder;
    23342334  kHomW=NULL;
    23352335  kModW=NULL;
  • kernel/gr_kstd2.cc

    r4691363 rfe89b98  
    906906        return 0;
    907907      }
    908       if (strat->honey && pLexOrder)
     908      if (strat->honey && currRing->pLexOrder)
    909909        strat->initEcart(h);
    910910      /* h.length:=l; */
     
    922922//        }
    923923//      }
    924       if (strat->honey || pLexOrder)
     924      if (strat->honey || currRing->pLexOrder)
    925925      {
    926926        pass++;
     
    979979  else if (strat->honey)
    980980    strat->red = nc_redHoney;
    981   else if (pLexOrder && !strat->homog)
     981  else if (currRing->pLexOrder && !strat->homog)
    982982    strat->red = nc_redLazy;
    983983  else if (TEST_OPT_INTSTRATEGY && strat->homog)
     
    10071007#endif
    10081008
    1009   if (pLexOrder && strat->honey)
     1009  if (currRing->pLexOrder && strat->honey)
    10101010    strat->initEcart = initEcartNormal;
    10111011  else
  • kernel/kstd1.cc

    r4691363 rfe89b98  
    10551055  if (strat->honey)
    10561056    strat->red = redHoney;
    1057   else if (pLexOrder && !strat->homog)
     1057  else if (currRing->pLexOrder && !strat->homog)
    10581058    strat->red = redLazy;
    10591059  else
     
    10681068  }
    10691069#endif
    1070   if (pLexOrder && strat->honey)
     1070  if (currRing->pLexOrder && strat->honey)
    10711071    strat->initEcart = initEcartNormal;
    10721072  else
     
    17171717
    17181718  ideal r;
    1719   BOOLEAN b=pLexOrder,toReset=FALSE;
     1719  BOOLEAN b=currRing->pLexOrder,toReset=FALSE;
    17201720  BOOLEAN delete_w=(w==NULL);
    17211721  kStrategy strat=new skStrategy;
     
    17371737  if (vw != NULL)
    17381738  {
    1739     pLexOrder=FALSE;
     1739    currRing->pLexOrder=FALSE;
    17401740    strat->kHomW=kHomW=vw;
    17411741    pFDegOld = currRing->pFDeg;
     
    17561756    }
    17571757  }
    1758   pLexOrder=b;
     1758  currRing->pLexOrder=b;
    17591759  if (h==isHomog)
    17601760  {
     
    17701770      }
    17711771    }
    1772     pLexOrder = TRUE;
     1772    currRing->pLexOrder = TRUE;
    17731773    if (hilb==NULL) strat->LazyPass*=2;
    17741774  }
     
    18281828    pRestoreDegProcs(currRing,pFDegOld, pLDegOld);
    18291829  }
    1830   pLexOrder = b;
     1830  currRing->pLexOrder = b;
    18311831//Print("%d reductions canceled \n",strat->cel);
    18321832  HCord=strat->HCord;
     
    18411841{
    18421842  ideal r;
    1843   BOOLEAN b=pLexOrder,toReset=FALSE;
     1843  BOOLEAN b=currRing->pLexOrder,toReset=FALSE;
    18441844  BOOLEAN delete_w=(w==NULL);
    18451845  kStrategy strat=new skStrategy;
     
    18591859  if (vw != NULL)
    18601860  {
    1861     pLexOrder=FALSE;
     1861    currRing->pLexOrder=FALSE;
    18621862    strat->kHomW=kHomW=vw;
    18631863    pFDegOld = currRing->pFDeg;
     
    18781878    }
    18791879  }
    1880   pLexOrder=b;
     1880  currRing->pLexOrder=b;
    18811881  if (h==isHomog)
    18821882  {
     
    18921892      }
    18931893    }
    1894     pLexOrder = TRUE;
     1894    currRing->pLexOrder = TRUE;
    18951895    if (hilb==NULL) strat->LazyPass*=2;
    18961896  }
     
    19211921    pRestoreDegProcs(currRing,pFDegOld, pLDegOld);
    19221922  }
    1923   pLexOrder = b;
     1923  currRing->pLexOrder = b;
    19241924//Print("%d reductions canceled \n",strat->cel);
    19251925  HCord=strat->HCord;
     
    19481948  int Kstd1_OldDeg = Kstd1_deg,i;
    19491949  intvec* temp_w=NULL;
    1950   BOOLEAN b=pLexOrder,toReset=FALSE;
     1950  BOOLEAN b=currRing->pLexOrder,toReset=FALSE;
    19511951  BOOLEAN delete_w=(w==NULL);
    19521952  BOOLEAN oldDegBound=TEST_OPT_DEGBOUND;
     
    20032003      }
    20042004    }
    2005     pLexOrder = TRUE;
     2005    currRing->pLexOrder = TRUE;
    20062006    strat->LazyPass*=2;
    20072007  }
     
    20332033    kModW = NULL;
    20342034  }
    2035   pLexOrder = b;
     2035  currRing->pLexOrder = b;
    20362036  HCord=strat->HCord;
    20372037  if ((delete_w)&&(temp_w!=NULL)) delete temp_w;
  • kernel/kstd2.cc

    r4691363 rfe89b98  
    118118#if 1
    119119  int ende;
    120   if ((strat->ak>0) || pLexOrder) ende=strat->sl;
     120  if ((strat->ak>0) || currRing->pLexOrder) ende=strat->sl;
    121121  else ende=posInS(strat,*max_ind,p,0)+1;
    122122  if (ende>(*max_ind)) ende=(*max_ind);
     
    19751975  strat->red = redFirstShift; /* no redHomog ! */
    19761976
    1977   if (pLexOrder && strat->honey)
     1977  if (currRing->pLexOrder && strat->honey)
    19781978    strat->initEcart = initEcartNormal;
    19791979  else
  • kernel/kstdfac.cc

    r4691363 rfe89b98  
    898898#ifdef HAVE_FACTORY
    899899  ideal r;
    900   BOOLEAN b=pLexOrder,toReset=FALSE;
     900  BOOLEAN b=currRing->pLexOrder,toReset=FALSE;
    901901  BOOLEAN delete_w=(w==NULL);
    902902  kStrategy strat=new skStrategy;
     
    931931      toReset = TRUE;
    932932    }
    933     pLexOrder = TRUE;
     933    currRing->pLexOrder = TRUE;
    934934    strat->LazyPass*=2;
    935935  }
     
    10321032    kModW = NULL;
    10331033  }
    1034   pLexOrder = b;
     1034  currRing->pLexOrder = b;
    10351035  delete(strat);
    10361036  strat=orgstrat;
  • kernel/kutil.cc

    r4691363 rfe89b98  
    391391
    392392  strat->kHEdgeFound=FALSE;
    393   if (pLexOrder || currRing->MixedOrder)
     393  if (currRing->pLexOrder || currRing->MixedOrder)
    394394  {
    395395    return;
     
    58355835        strat->posInT = posInT_EcartpLength;
    58365836    }
    5837     else if (pLexOrder && !TEST_OPT_INTSTRATEGY)
     5837    else if (currRing->pLexOrder && !TEST_OPT_INTSTRATEGY)
    58385838    {
    58395839      strat->posInL = posInL11;
  • kernel/tgb.cc

    r4691363 rfe89b98  
    32223222    }
    32233223  }
    3224   eliminationProblem = ((!(is_homog)) && ((pLexOrder) || (I->rank > 1)));
     3224  eliminationProblem = ((!(is_homog)) && ((currRing->pLexOrder) || (I->rank > 1)));
    32253225  tailReductions = ((is_homog) || ((TEST_OPT_REDTAIL) && (!(I->rank > 1))));
    32263226  //  Print("is homog:%d",c->is_homog);
  • libpolys/polys/polys.h

    r4691363 rfe89b98  
    225225typedef poly*   polyset;
    226226extern int      pOrdSgn;
    227 extern BOOLEAN  pLexOrder;
    228227extern poly     ppNoether;
    229228extern BOOLEAN  pVectorOut;
Note: See TracChangeset for help on using the changeset viewer.