Changeset f3f0ad in git for libpolys


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

Legend:

Unmodified
Added
Removed
  • 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.