Changeset 485989 in git for gfanlib


Ignore:
Timestamp:
Oct 1, 2013, 10:58:43 AM (11 years ago)
Author:
Yue Ren <ren@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
87f627ffaf78fab8020e21cbc82112b42eb09475
Parents:
62393da950b3f0e2f7ae740773cd556f16a20bda
Message:
fix: missing pivotscaling before comparing matrices

now canonicalizing cones will properly scale pivots to one,
so that the system of inequalities and equations becomes unique,
and cones can be properly compared via those two matrices.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gfanlib/gfanlib_zcone.cpp

    r62393d r485989  
    699699          QMatrix m=ZToQMatrix(equations);
    700700          m.reduce();
    701           m.REformToRREform();
     701          m.REformToRREform(true);
    702702          ZMatrix inequalities2(0,equations.getWidth());
    703703          for(int i=0;i<inequalities.getHeight();i++)
     
    12241224  ZCone temp2=f;
    12251225  temp2.canonicalize();
    1226 
    12271226  return !(temp2!=temp1);
    12281227}
Note: See TracChangeset for help on using the changeset viewer.