Changeset f3f0ad in git


Ignore:
Timestamp:
Mar 18, 2015, 12:25:24 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
efb09679f464982644f48e648b0d4a8c20f4f5ca
Parents:
45d2e45fd4ec2a9209f724d4ccfaff36d3f61c92
Message:
add rHasMixedOrdering
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r45d2e45 rf3f0ad  
    426426
    427427  strat->kHEdgeFound=FALSE;
    428   if (currRing->pLexOrder || currRing->MixedOrder)
     428  if (currRing->pLexOrder || rHasMixedOrdering(currRing))
    429429  {
    430430    return;
     
    38683868  int en = length;
    38693869  int cmp_int = currRing->OrdSgn;
    3870   if ((currRing->MixedOrder)
     3870  if ((rHasMixedOrdering(currRing))
    38713871#ifdef HAVE_PLURAL
    38723872  && (currRing->real_var_start==0)
     
    73087308
    73097309  //if the ordering is local, then hilb criterion
    7310   //can be used also if tzhe ideal is not homogenous
    7311   if((rHasLocalOrMixedOrdering(currRing)) && (currRing->MixedOrder == 0 ))
     7310  //can be used also if the ideal is not homogenous
     7311  if((rHasLocalOrMixedOrdering(currRing)) && (rHasMixedOrdering(currRing)==FALSE))
    73127312  #ifdef HAVE_RINGS
    73137313  {
     
    73517351  * - in local rings, - in lex order case, -in ring over extensions */
    73527352  strat->noTailReduction = !TEST_OPT_REDTAIL;
     7353  //if(rHasMixedOrdering(currRing)==2)
     7354  //{
     7355  // strat->noTailReduction =TRUE;
     7356  //}
    73537357
    73547358#ifdef HAVE_PLURAL
     
    74237427  * - in local rings, - in lex order case, -in ring over extensions */
    74247428  strat->noTailReduction = !TEST_OPT_REDTAIL;
    7425   //strat->noTailReduction = NULL;
     7429  if(rHasMixedOrdering(currRing)) strat->noTailReduction =TRUE;
    74267430
    74277431#ifdef HAVE_PLURAL
     
    76237627  }
    76247628  strat->fromT = FALSE;
    7625   strat->noTailReduction = !TEST_OPT_REDTAIL;
    76267629  if ((!TEST_OPT_SB_1)
    76277630  #ifdef HAVE_RINGS
     
    78177820  }
    78187821  strat->fromT = FALSE;
    7819   strat->noTailReduction = !TEST_OPT_REDTAIL;
    78207822  if (!TEST_OPT_SB_1)
    78217823  {
     
    80038005
    80048006  strat->noTailReduction = FALSE;
     8007  //if(rHasMixedOrdering(currRing)) strat->noTailReduction = TRUE;
    80058008  if (TEST_OPT_PROT)
    80068009  {
     
    91139116  }
    91149117  strat->fromT = FALSE;
    9115   strat->noTailReduction = !TEST_OPT_REDTAIL;
    91169118  if (!TEST_OPT_SB_1)
    91179119  {
  • libpolys/polys/ext_fields/transext.cc

    r45d2e45 rf3f0ad  
    13221322  /* here we assume: NUM(f), DEN(f) !=NULL, in Z_a reqp. Z/p_a */
    13231323  poly pGcd = singclap_gcd_and_divide(NUM(f), DEN(f), ntRing);
     1324  //PrintS("gcd= ");p_wrp(pGcd,ntRing);PrintLn();
    13241325  if (p_IsConstant(pGcd, ntRing)
    13251326  && n_IsOne(p_GetCoeff(pGcd, ntRing), ntCoeffs)
     
    14571458  if ( /*(*/ a!=NULL /*)*/ )
    14581459  {
     1460    //PrintS("num=");p_wrp(NUM(a),ntRing);
     1461    //PrintS(" den=");p_wrp(DEN(a),ntRing);PrintLn();
    14591462    definiteGcdCancellation(a, cf, FALSE);
    14601463    if ((DEN(a)!=NULL)
  • libpolys/polys/monomials/ring.cc

    r45d2e45 rf3f0ad  
    13181318  res->CanShortOut=r->CanShortOut;
    13191319  res->LexOrder=r->LexOrder; // TRUE if the monomial ordering has polynomial and power series blocks
    1320   res->MixedOrder=r->MixedOrder; // ?? 1 for lex ordering (except ls), -1 otherwise
     1320  res->MixedOrder=r->MixedOrder; // TRUE for mixed (global/local) ordering, FALSE otherwise,
     1321  // 2 for diffenerent signs within one block
    13211322  res->ComponentOrder=r->ComponentOrder;
    13221323
     
    14601461  res->CanShortOut=r->CanShortOut;
    14611462  res->LexOrder=r->LexOrder; // TRUE if the monomial ordering has polynomial and power series blocks
    1462   res->MixedOrder=r->MixedOrder; // ?? 1 for lex ordering (except ls), -1 otherwise
     1463  res->MixedOrder=r->MixedOrder; // TRUE for mixed (global/local) ordering, FALSE otherwise,
     1464  // 2 for diffenerent signs within one block
    14631465  res->ComponentOrder=r->ComponentOrder;
    14641466
     
    30153017        int i;
    30163018        for(i=r->block1[o]-r->block0[o];i>=0;i--)
    3017           if (r->wvhdl[o][i]<0) { r->MixedOrder=TRUE; break; }
     3019          if (r->wvhdl[o][i]<0) { r->MixedOrder=2; break; }
    30183020      }
    30193021      break;
     
    30233025    case ringorder_C:
    30243026    case ringorder_S:
    3025       r->ComponentOrder=-1;
     3027      r->ComponentOrder=TRUE;
    30263028      break;
    30273029    case ringorder_M:
     
    31303132    r->MixedOrder = FALSE;
    31313133    for(int ii=block0[0];ii<=block1[0];ii++)
    3132       if (wvhdl[0][ii-1]<0) { r->MixedOrder=TRUE;break;}
     3134      if (wvhdl[0][ii-1]<0) { r->MixedOrder=2;break;}
    31333135    r->LexOrder=FALSE;
    31343136    for(int ii=block0[0];ii<=block1[0];ii++)
     
    56285630  return 0;
    56295631}
    5630 
  • libpolys/polys/monomials/ring.h

    r45d2e45 rf3f0ad  
    741741inline BOOLEAN rHasGlobalOrdering(const ring r){ return (r->OrdSgn==1); }
    742742inline BOOLEAN rHasLocalOrMixedOrdering(const ring r){ return (r->OrdSgn==-1); }
     743inline BOOLEAN rHasMixedOrdering(const ring r) { return (r->MixedOrder==1); }
    743744
    744745// #define rHasGlobalOrdering(R) ((R)->OrdSgn==1)
Note: See TracChangeset for help on using the changeset viewer.