Changeset 713bdb in git
- Timestamp:
- Sep 12, 2008, 12:43:58 PM (15 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- fb0d9aac10ed984cf41f9bd1c5e18752cecc013b
- Parents:
- cab83807bb068e131a3c656b02a316119e75729c
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/algext.cc
rcab838 r713bdb 490 490 int *bound, *other; // degree vectors 491 491 bool fail; 492 bool off_rational=!isOn(SW_RATIONAL); 492 493 On( SW_RATIONAL ); // needed by bCommonDen 493 494 f = F * bCommonDen(F); … … 510 511 tmp = gcd( F, G ); 511 512 On( SW_USE_QGCD ); 513 if (off_rational) Off(SW_RATIONAL); 512 514 return tmp; 513 515 } … … 560 562 continue; 561 563 setReduce(a,true); 564 if (off_rational) Off(SW_RATIONAL); else On(SW_RATIONAL); 562 565 return CanonicalForm(1); 563 566 } … … 584 587 Off( SW_RATIONAL ); 585 588 setReduce(a,true); 589 if (off_rational) Off(SW_RATIONAL); else On(SW_RATIONAL); 586 590 return tmp; 587 591 } … … 603 607 D = gcd( f, g ); 604 608 On( SW_USE_QGCD ); 609 if (off_rational) Off(SW_RATIONAL); else On(SW_RATIONAL); 605 610 return D; 606 611 } -
factory/cf_gcd.cc
rcab838 r713bdb 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_gcd.cc,v 1.6 5 2008-08-06 13:53:15Singular Exp $ */2 /* $Id: cf_gcd.cc,v 1.66 2008-09-12 10:43:58 Singular Exp $ */ 3 3 4 4 #include <config.h> … … 782 782 // return univarQGCD(f,g); 783 783 //else 784 return QGCD(f,g); 784 //return QGCD(f,g); 785 bool on_rational = isOn(SW_RATIONAL); 786 On(SW_RATIONAL); 787 CanonicalForm r=QGCD(f,g); 788 CanonicalForm cdF = bCommonDen( r ); 789 if (!on_rational) Off(SW_RATIONAL); 790 return cdF*r; 785 791 } 786 792 } 787 793 788 794 if ( f.inExtension() && getReduce( f.mvar() ) ) 789 795 return CanonicalForm(1); -
factory/cf_switches.cc
rcab838 r713bdb 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_switches.cc,v 1.1 2 2008-06-24 12:54:31Singular Exp $ */2 /* $Id: cf_switches.cc,v 1.13 2008-09-12 10:43:58 Singular Exp $ */ 3 3 4 4 //{{{ docu … … 37 37 On(SW_USE_EZGCD); 38 38 //On(SW_USE_EZGCD_P); // still testing 39 //On(SW_USE_QGCD);39 On(SW_USE_QGCD); 40 40 //On(SW_USE_fieldGCD); 41 41 }
Note: See TracChangeset
for help on using the changeset viewer.