Changeset a8d371 in git


Ignore:
Timestamp:
Feb 26, 2014, 3:07:04 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8f26085572bdbfac4561a9322ebb192165ecda95
Parents:
8968c1705d85c26166eb14a273dabcdba2291bd0
Message:
improve OrdSgn detection (tr.577)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    r8968c17 ra8d371  
    37643764static void rCheckOrdSgn(ring r,int i/*current block*/)
    37653765{ // set r->OrdSgn
    3766   if ( r->OrdSgn==1)
    3767   {
    3768     int oo=-1;
    3769     int jj;
    3770     for(jj=i-1;jj>=0;jj--)
    3771     {
    3772       if(((r->order[jj]==ringorder_a)
    3773         ||(r->order[jj]==ringorder_aa)
    3774         ||(r->order[jj]==ringorder_a64))
    3775       &&(r->block0[jj]<=r->block0[i])
    3776       &&(r->block1[jj]>=r->block1[i]))
    3777       { oo=1; break;}
     3766  int jj;
     3767  int oo=-1;
     3768  for(jj=i-1;jj>=0;jj--)
     3769  {
     3770    if(((r->order[jj]==ringorder_a)
     3771      ||(r->order[jj]==ringorder_aa)
     3772      ||(r->order[jj]==ringorder_a64))
     3773    &&(r->block0[jj]<=r->block0[i])
     3774    &&(r->block1[jj]>=r->block1[i]))
     3775    {
     3776      int res=1;
     3777      if (r->order[jj]!=ringorder_a64)
     3778      {
     3779        for(int j=r->block1[jj]-r->block0[jj]; j>=0;j--)
     3780        {
     3781          if(r->wvhdl[jj][j]<=0) { res=-1; break;}
     3782        }
     3783      }
     3784      oo=res;
    37783785    }
    37793786    r->OrdSgn=oo;
Note: See TracChangeset for help on using the changeset viewer.