Changeset bb82f0 in git for factory/cf_gcd.cc


Ignore:
Timestamp:
Jun 16, 2008, 2:55:41 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
c99b6b9aa9684f111c07fca497f1d2256859ad05
Parents:
ca4a07322f31d377c0c316a145437504fb8e6be0
Message:
*hannes: SW_USE_QGCD


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

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd.cc

    rca4a073 rbb82f0  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_gcd.cc,v 1.61 2008-05-16 13:11:31 Singular Exp $ */
     2/* $Id: cf_gcd.cc,v 1.62 2008-06-16 12:55:41 Singular Exp $ */
    33
    44#include <config.h>
     
    1616#include "ftmpl_functions.h"
    1717#include "ffreval.h"
     18#include "algext.h"
    1819
    1920#ifdef HAVE_NTL
     
    762763                return cf_content( g, f );
    763764        }
     765        if (isOn(SW_USE_QGCD))
     766        {
     767          Variable m;
     768          if ((hasFirstAlgVar(f,m) || hasFirstAlgVar(g,m))
     769          //&& f.isUnivariate()
     770          //&& g.isUnivariate()
     771          && (getCharacteristic() == 0)
     772          )
     773            return QGCD(f,g);
     774        }
     775           
    764776        if ( f.inExtension() && getReduce( f.mvar() ) )
    765             return 1;
     777            return CanonicalForm(1);
    766778        else
    767779        {
     
    11491161  }
    11501162}
     1163#include "algext.cc"
Note: See TracChangeset for help on using the changeset viewer.