Changeset 237c42 in git
- Timestamp:
- Oct 17, 2012, 10:37:28 AM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- b37b3984a12e1552c7bafc9fd5a7849240ea7980
- Parents:
- 72f1e4ba707e83cf6b23e8920fb57f610d7ef8bc
- git-author:
- Martin Lee <martinlee84@web.de>2012-10-17 10:37:28+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-10-18 17:42:58+02:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facHensel.cc
r72f1e4b r237c42 544 544 } 545 545 546 setReduce (alpha, false); 546 547 for (k= 0; k < factors.length(); k++) 547 548 { … … 554 555 } 555 556 } 557 setReduce (alpha, true); 556 558 setCharacteristic(0); 557 559 … … 591 593 } 592 594 setCharacteristic (p); 595 setReduce (alpha, false); 593 596 recResult= mapinto (recResult); 597 setReduce (alpha, true); 594 598 if (mipoHasDen) 595 599 { … … 606 610 coeffE= div (e, modulus); 607 611 setCharacteristic (p); 612 if (mipoHasDen) 613 setReduce (gamma, false); 614 else 615 setReduce (alpha, false); 608 616 coeffE= coeffE.mapinto(); 617 if (mipoHasDen) 618 setReduce (gamma, true); 619 else 620 setReduce (alpha, true); 609 621 if (mipoHasDen) 610 622 coeffE= replacevar (coeffE, gamma, beta); … … 619 631 { 620 632 setCharacteristic (p); 633 setReduce (alpha, false); 621 634 g= mulNTL (coeffE, j.getItem()); 622 635 g= modNTL (g, bufFactors[ii]); 636 setReduce (alpha, true); 623 637 setCharacteristic (0); 624 638 if (mipoHasDen) 625 639 { 640 setReduce (beta, false); 626 641 k.getItem() += replacevar (g.mapinto()*modulus, beta, gamma); 627 642 e -= mulNTL (replacevar (g.mapinto(), beta, gamma)*modulus, 628 643 l.getItem(), b); 644 setReduce (beta, true); 629 645 } 630 646 else -
factory/facMul.cc
r72f1e4b r237c42 404 404 { 405 405 ZZ_p::init (convertFacCF2NTLZZ (b.getpk())); 406 ZZ_pX NTLmipo= to_ZZ_pX (convertFacCF2NTLZZX (getMipo (alpha))); 406 CanonicalForm mipo= getMipo (alpha); 407 bool is_rat= isOn (SW_RATIONAL); 408 if (!is_rat) 409 On (SW_RATIONAL); 410 mipo *=bCommonDen (mipo); 411 if (!is_rat) 412 Off (SW_RATIONAL); 413 ZZ_pX NTLmipo= to_ZZ_pX (convertFacCF2NTLZZX (mipo)); 407 414 ZZ_pE::init (NTLmipo); 408 415 ZZ_pEX NTLg= convertFacCF2NTLZZ_pEX (G, NTLmipo);
Note: See TracChangeset
for help on using the changeset viewer.