Changeset 5c6cea in git


Ignore:
Timestamp:
Aug 14, 2013, 5:42:25 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
dfa84937f0c3f7da5b22bc6282fb9c46eccad506
Parents:
ff6cd3f6cb4fc95b698a95fed6f127fb7c3074d2
git-author:
Martin Lee <martinlee84@web.de>2013-08-14 17:42:25+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-08-30 13:48:32+02:00
Message:
fix: handling of SW_RATIONAL
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facAbsBiFact.cc

    rff6cd3 r5c6cea  
    227227{
    228228  CanonicalForm F= bCommonDen (G)*G;
     229  bool isRat= isOn (SW_RATIONAL);
    229230  Off (SW_RATIONAL);
    230231  F /= icontent (F);
     
    248249    TIMING_END_AND_PRINT (fac_evalpoint, "time to find eval point: ");
    249250
     251    //after here isOn (SW_RATIONAL)==false
    250252    setCharacteristic (p);
    251253    Fp=F.mapinto();
     
    259261      if (absIrredTest (Fp))
    260262      {
     263        if (isRat)
     264          On (SW_RATIONAL);
    261265        setCharacteristic(0);
    262266        return CFAFList (CFAFactor (G, 1, 1));
     
    267271        if (modularIrredTestWithShift (F))
    268272        {
     273          if (isRat)
     274            On (SW_RATIONAL);
    269275          return CFAFList (CFAFactor (G, 1, 1));
    270276        }
     
    691697  }
    692698
     699  if (isRat)
     700    On (SW_RATIONAL);
     701  else
     702    Off (SW_RATIONAL);
     703
    693704  return result;
    694705}
Note: See TracChangeset for help on using the changeset viewer.