Changeset 48e0bcb in git for factory/facMul.cc
- Timestamp:
- Jun 17, 2020, 3:34:43 PM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- e4514d3151a5c53437b9fa2f30bda8febfd87539ed6f2bb0876535189130e32d71be46f776012a36
- Parents:
- 95e373294f19817a4516238a9d8dd18b1a626ab9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facMul.cc
r95e3732 r48e0bcb 32 32 #include <NTL/lzz_pEX.h> 33 33 #include "NTLconvert.h" 34 #endif 34 35 35 36 #ifdef HAVE_FLINT … … 452 453 fq_ctx_clear (fq_con); 453 454 return b (result); 454 #else 455 #endif 456 #ifdef HAVE_NTL 455 457 ZZ_p::init (convertFacCF2NTLZZ (b.getpk())); 456 458 ZZ_pX NTLmipo= to_ZZ_pX (convertFacCF2NTLZZX (mipo)); … … 489 491 } 490 492 return mulFLINTQ (F, G); 491 #else 493 #endif 494 #ifdef HAVE_NTL 492 495 if (b.getp() != 0) 493 496 { … … 569 572 570 573 return b (result); 571 #else 574 #endif 575 #ifdef HAVE_NTL 572 576 ZZ_p::init (convertFacCF2NTLZZ (b.getpk())); 573 577 ZZ_pX NTLmipo= to_ZZ_pX (convertFacCF2NTLZZX (getMipo (alpha))); … … 607 611 ASSERT (F.isUnivariate() && G.isUnivariate(), "expected univariate polys"); 608 612 ASSERT (F.level() == G.level(), "expected polys of same level"); 613 #ifdef HAVE_NTL 609 614 #if (!defined(HAVE_FLINT) || __FLINT_RELEASE < 20400) 610 615 if (fac_NTL_char != getCharacteristic()) … … 613 618 zz_p::init (getCharacteristic()); 614 619 } 620 #endif 615 621 #endif 616 622 Variable alpha; … … 646 652 nmod_poly_clear (FLINTmipo); 647 653 fq_nmod_ctx_clear (fq_con); 648 #else 654 return result; 655 #elif defined(AHVE_NTL) 649 656 zz_pX NTLMipo= convertFacCF2NTLzzpX (getMipo (alpha)); 650 657 zz_pE::init (NTLMipo); … … 653 660 mul (NTLF, NTLF, NTLG); 654 661 result= convertNTLzz_pEX2CF(NTLF, F.mvar(), alpha); 662 return result; 655 663 #endif 656 664 } … … 665 673 nmod_poly_clear (FLINTF); 666 674 nmod_poly_clear (FLINTG); 667 #else 675 return result; 676 #endif 677 #ifdef HAVE_NTL 668 678 zz_pX NTLF= convertFacCF2NTLzzpX (F); 669 679 zz_pX NTLG= convertFacCF2NTLzzpX (G); 670 680 mul (NTLF, NTLF, NTLG); 671 re sult=convertNTLzzpX2CF(NTLF, F.mvar());672 #endif 673 } 674 return result;681 return convertNTLzzpX2CF(NTLF, F.mvar()); 682 #endif 683 } 684 return F*G; 675 685 } 676 686 … … 3735 3745 // end division 3736 3746 3737 #endif
Note: See TracChangeset
for help on using the changeset viewer.