Changeset 713bdb in git for factory/algext.cc


Ignore:
Timestamp:
Sep 12, 2008, 12:43:58 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
fb0d9aac10ed984cf41f9bd1c5e18752cecc013b
Parents:
cab83807bb068e131a3c656b02a316119e75729c
Message:
*hannes: QGCD


git-svn-id: file:///usr/local/Singular/svn/trunk@11045 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/algext.cc

    rcab838 r713bdb  
    490490  int *bound, *other; // degree vectors
    491491  bool fail;
     492  bool off_rational=!isOn(SW_RATIONAL);
    492493  On( SW_RATIONAL ); // needed by bCommonDen
    493494  f = F * bCommonDen(F);
     
    510511      tmp = gcd( F, G );
    511512      On( SW_USE_QGCD );
     513      if (off_rational) Off(SW_RATIONAL);
    512514      return tmp;
    513515    }
     
    560562        continue;
    561563      setReduce(a,true);
     564      if (off_rational) Off(SW_RATIONAL); else On(SW_RATIONAL);
    562565      return CanonicalForm(1);
    563566    }
     
    584587        Off( SW_RATIONAL );
    585588        setReduce(a,true);
     589        if (off_rational) Off(SW_RATIONAL); else On(SW_RATIONAL);
    586590        return tmp;
    587591      }
     
    603607  D = gcd( f, g );
    604608  On( SW_USE_QGCD );
     609  if (off_rational) Off(SW_RATIONAL); else On(SW_RATIONAL);
    605610  return D;
    606611}
Note: See TracChangeset for help on using the changeset viewer.