Changeset c97005 in git


Ignore:
Timestamp:
Feb 20, 2006, 4:47:16 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
954abc18e35905d98450e84f5a52562d71e4fc81
Parents:
499d931ebb401eac6af5212a954bba0efafebd1c
Message:
*hannes: handle univar. in gcd_poly


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

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd.cc

    r499d93 rc97005  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_gcd.cc,v 1.41 2006-02-20 15:07:31 Singular Exp $ */
     2/* $Id: cf_gcd.cc,v 1.42 2006-02-20 15:47:16 Singular Exp $ */
    33
    44#include <config.h>
     
    408408    if ( getCharacteristic() != 0 )
    409409    {
    410       if ( f.mvar() != g.mvar() )
     410      if ( f.isUnivariate() && g.isUnivariate() )
     411      {
     412#ifdef HAVE_NTL
     413        if ( (isOn(SW_USE_NTL_GCD_P))
     414        && isPurePoly(f) && isPurePoly(g))
     415           return gcd_poly_univar0(f, g, true);
     416#else
     417        return gcd_poly_univar0( f, g, true );
     418#endif
     419      }
     420      // now: f or g is not univariate
     421      if (f.level() != g.level())
    411422      {
    412423        CFMap M, N;
Note: See TracChangeset for help on using the changeset viewer.