Changeset 5b2d2b in git
- Timestamp:
- Nov 5, 2012, 3:23:36 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 6e88340150f9c8853246d5e107fab8042207d29e
- Parents:
- 2024b69d96cd514f5fac583c96dda89d4e94215c
- git-author:
- Martin Lee <martinlee84@web.de>2012-11-05 15:23:36+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-11-16 13:16:26+01:00
- Location:
- factory
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd.cc
r2024b69 r5b2d2b 45 45 46 46 bool 47 gcd_test_one ( const CanonicalForm & f, const CanonicalForm & g, bool swap ) 48 { 47 gcd_test_one ( const CanonicalForm & f, const CanonicalForm & g, bool swap, int & d ) 48 { 49 d= 0; 49 50 int count = 0; 50 51 // assume polys have same level; … … 218 219 } 219 220 220 if ( eval1.taildegree() > 0 && eval2.taildegree() > 0 )221 {222 if (passToGF)223 setCharacteristic (p);224 if (k > 1)225 setCharacteristic (p, k, gf_name);226 return false;227 }228 229 221 CanonicalForm c= gcd (eval1, eval2); 230 bool result= c.degree() < 1; 222 d= c.degree(); 223 bool result= d < 1; 224 if (d < 0) 225 d= 0; 231 226 232 227 if (passToGF) … … 620 615 pi1 = pi1 / Ci1; pi = pi / Ci; 621 616 C = gcd( Ci, Ci1 ); 617 int d= 0; 622 618 if ( !( pi.isUnivariate() && pi1.isUnivariate() ) ) 623 619 { 624 if ( gcd_test_one( pi1, pi, true ) )620 if ( gcd_test_one( pi1, pi, true, d ) ) 625 621 { 626 622 C=abs(C); … … 739 735 pi1 = pi1 / Ci1; pi = pi / Ci; 740 736 C = gcd( Ci, Ci1 ); 737 int d= 0; 741 738 if ( pi.isUnivariate() && pi1.isUnivariate() ) 742 739 { … … 752 749 return gcd_poly_univar0( pi, pi1, true ) * C; 753 750 } 754 else if ( gcd_test_one( pi1, pi, true ) )751 else if ( gcd_test_one( pi1, pi, true, d ) ) 755 752 return C; 756 753 Variable v = f.mvar(); -
factory/cf_gcd_smallp.cc
r2024b69 r5b2d2b 4547 4547 } 4548 4548 4549 if( gcd_test_one( F, G, false ) ) 4549 int dummy= 0; 4550 if( gcd_test_one( F, G, false, dummy ) ) 4550 4551 { 4551 4552 return N (d); -
factory/fac_ezgcd.cc
r2024b69 r5b2d2b 492 492 } 493 493 494 if ( gcd_test_one( F, G, false ) ) 494 int dummy= 0; 495 if ( gcd_test_one( F, G, false, dummy ) ) 495 496 { 496 497 DEBDECLEVEL( cerr, "ezgcd" ); -
factory/fac_util.h
r2024b69 r5b2d2b 54 54 /*ENDPUBLIC*/ 55 55 56 bool gcd_test_one ( const CanonicalForm & f, const CanonicalForm & g, bool swap );56 bool gcd_test_one ( const CanonicalForm & f, const CanonicalForm & g, bool swap, int & d ); 57 57 58 58 CanonicalForm ezgcd ( const CanonicalForm & f, const CanonicalForm & g );
Note: See TracChangeset
for help on using the changeset viewer.