Changeset c92316 in git


Ignore:
Timestamp:
Jan 25, 2005, 2:20:33 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
35b491070e491129fca66fa0994cc109a9358830
Parents:
179ce1570b5fb5f22c467a21340a677556afd078
Message:
*hannes: code cleanup


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

Legend:

Unmodified
Added
Removed
  • factory/fac_ezgcd.cc

    r179ce15 rc92316  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: fac_ezgcd.cc,v 1.15 2005-01-05 11:27:17 Singular Exp $ */
     2/* $Id: fac_ezgcd.cc,v 1.16 2005-01-25 13:20:33 Singular Exp $ */
    33
    44#include <config.h>
     
    170170                DEBOUTLN( cerr, "(test) G: "<<G<<" % gcd:"<<cand<<" -> " << G%cand );
    171171                gcdfound= divides(cand,G);
    172                 //gcdfound= ((G-((G/cand)*cand))==0);
    173                 //gcdfound= ((G % cand)==0);
    174172              }
    175173              else
     
    177175                DEBOUTLN( cerr, "(test) F: "<<F<<" % gcd:"<<cand<<" -> " << F%cand);
    178176                gcdfound= divides(cand,F);
    179                 //gcdfound= ((F-((F/cand)*cand))==0);
    180                 //gcdfound= ((F % cand)==0);
    181177              }
    182178            }
     
    271267findeval( const CanonicalForm & F, const CanonicalForm & G, CanonicalForm & Fb, CanonicalForm & Gb, CanonicalForm & Db, REvaluation & b, int delta, int degF, int degG )
    272268{
    273 //    int t=tmax(F.level(),G.level());
    274269    int i;
    275270    bool ok;
    276271    if ( delta != 0 )
    277272        b.nextpoint();
    278 //    i=2;
    279 //    while(i<=t)
    280 //    {
    281 //      if (b[i]==0) { b.nextpoint(); i=2; }
    282 //      else i++;
    283 //    }
    284273    DEBOUTLN( cerr, "ezgcd: (findeval) F = " << F  <<", G="<< G);
    285274    DEBOUTLN( cerr, "ezgcd: (findeval) degF = " << degF << ", degG="<<degG );
     
    293282        }
    294283       
    295         if ( ok ) {
    296 //          if ((Fb.isZero())||(Gb.isZero()))
    297 //            ok=false;
    298 //          else
    299             {   
    300               Db = gcd( Fb, Gb );
    301               if ( delta > 0 )
    302                 ok = degree( Db ) < delta;
    303             }
     284        if ( ok )
     285        {   
     286            Db = gcd( Fb, Gb );
     287            if ( delta > 0 )
     288              ok = degree( Db ) < delta;
    304289        }
    305290        if ( ! ok )
Note: See TracChangeset for help on using the changeset viewer.