Changeset ae3d1f in git


Ignore:
Timestamp:
Jan 31, 2006, 10:42:23 AM (18 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
66b5b8c82efc6d9d9508f5ee9f49a7644f2635fe
Parents:
ae2e227aeba249ea683ac81f35b40451d859514e
Message:
optimal map also for gcd_poly1


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

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd.cc

    rae2e227 rae3d1f  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_gcd.cc,v 1.36 2005-12-12 15:42:36 Singular Exp $ */
     2/* $Id: cf_gcd.cc,v 1.37 2006-01-31 09:42:23 pohl Exp $ */
    33
    44#include <config.h>
     
    427427{
    428428    if ( getCharacteristic() != 0 ) {
    429         return gcd_poly1( f, g, false );
     429        if (! ( f.isUnivariate() && g.isUnivariate() ) ) {
     430            CFMap M, N;
     431            compress( f, g, M, N );
     432            return N( gcd_poly1( M(f), M(g), false ) );
     433        }
     434        else
     435            return gcd_poly1( f, g, false );
    430436    }
    431437    else if ( isOn( SW_USE_EZGCD ) && ! ( f.isUnivariate() && g.isUnivariate() ) ) {
Note: See TracChangeset for help on using the changeset viewer.