Changeset 348448 in git


Ignore:
Timestamp:
Jan 10, 2020, 2:53:21 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
cda219b49052ca5cb986873dea788d108e8164c5
Parents:
ba395e82b78541478d15708d0c9437137658d1e2
Message:
fix: OrdSgn for matrix orderings with 0 in first row
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • Tst/Short/ok_s.lst

    rba395e r348448  
    1616bug_newstruct3
    1717bug_normalize
     18bug_OrdSgn
    1819bug_printres
    1920bug_qring2
  • libpolys/polys/monomials/ring.cc

    rba395e r348448  
    38633863          else
    38643864          {
    3865             // very bad:
    3866             nonpos++;
    3867             nonneg++;
    3868             found=1;
     3865            // very bad: try next row(s)
     3866            int add=r->block1[j]-r->block0[j]+1;
     3867            int max_i=r->block0[j]+add*add-add-1;
     3868            while(found==0)
     3869            {
     3870              i+=add;
     3871              if (r->wvhdl[j][i-r->block0[j]]<0)
     3872              {
     3873                r->OrdSgn=-1;
     3874                nonpos++;
     3875                found=1;
     3876              }
     3877              else if(r->wvhdl[j][i-r->block0[j]]>0)
     3878              {
     3879                nonneg++;
     3880                found=1;
     3881              }
     3882              else if(i>max_i)
     3883              {
     3884                nonpos++;
     3885                nonneg++;
     3886                found=1;
     3887              }
     3888            }
    38693889          }
    38703890        }
Note: See TracChangeset for help on using the changeset viewer.