Changeset 188d2fb in git for factory/facFqBivar.cc


Ignore:
Timestamp:
Apr 2, 2012, 4:44:35 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
d2d057ebcf8b633c14f245b0c65e698c351e38e2
Parents:
6f84545a3eb72153c8952ab0eb64df17cd00d1bb
git-author:
Martin Lee <martinlee84@web.de>2012-04-02 16:44:35+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-04-04 14:44:11+02:00
Message:
fix: need SW_RATIONAL to be On for computation of buf0 and buf1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivar.cc

    r6f84545 r188d2fb  
    488488  bool recombination= false;
    489489  CanonicalForm test;
     490  bool isRat= (isOn (SW_RATIONAL) && getCharacteristic() == 0) || getCharacteristic() > 0;
     491  if (!isRat)
     492    On (SW_RATIONAL);
    490493  CanonicalForm buf0= mulNTL (buf (0, x), LCBuf);
    491   bool isRat= (isOn (SW_RATIONAL) && getCharacteristic() == 0) || getCharacteristic() > 0;
     494  if (!isRat)
     495    Off (SW_RATIONAL);
     496  buf0= buf(0,x)*LCBuf;
    492497  while (T.length() >= 2*s && s <= thres)
    493498  {
     
    559564            l -= degree (g);
    560565            M= power (y, l);
     566            buf0= mulNTL (buf (0, x), LCBuf);
    561567            if (!isRat)
    562568              Off (SW_RATIONAL);
    563             buf0= mulNTL (buf (0, x), LCBuf);
    564569            // compute new possible degree pattern
    565570            bufDegs2= DegreePattern (T);
     
    678683  adaptedLiftBound= 0;
    679684  int d= degree (F), l= 0;
     685  bool isRat= (isOn (SW_RATIONAL) && getCharacteristic() == 0) || getCharacteristic() > 0;
     686  if (!isRat)
     687    On (SW_RATIONAL);
    680688  CanonicalForm buf0= mulNTL (buf (0,x), LCBuf);
    681689  CanonicalForm buf1= mulNTL (buf (1,x), LCBuf);
     690  if (!isRat)
     691    Off (SW_RATIONAL);
    682692  CanonicalForm test0, test1;
    683   bool isRat= (isOn (SW_RATIONAL) && getCharacteristic() == 0) || getCharacteristic() > 0;
     693
    684694  for (CFListIterator i= factors; i.hasItem(); i++, l++)
    685695  {
     
    714724            d -= degree (g);
    715725            LCBuf= LC (buf, x);
     726            buf0= mulNTL (buf (0,x), LCBuf);
     727            buf1= mulNTL (buf (1,x), LCBuf);
    716728            if (!isRat)
    717729              Off (SW_RATIONAL);
    718             buf0= mulNTL (buf (0,x), LCBuf);
    719             buf1= mulNTL (buf (1,x), LCBuf);
    720730            T= Difference (T, CFList (i.getItem()));
    721731            F= buf;
Note: See TracChangeset for help on using the changeset viewer.