Changeset 5af844a in git
- Timestamp:
- Apr 25, 2007, 1:00:51 PM (16 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 2bfea7c0834b0c0cf824d85964ac31a0aab95ddb
- Parents:
- 143c6c90f4919bdaebc7dac8c26d98ffa440c1c0
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/NTLconvert.h
r143c6c9 r5af844a 1 /* $Id: NTLconvert.h,v 1. 7 2004-01-19 11:26:20Singular Exp $ */1 /* $Id: NTLconvert.h,v 1.8 2007-04-25 11:00:51 Singular Exp $ */ 2 2 #ifndef INCL_NTLCONVERT_H 3 3 #define INCL_NTLCONVERT_H … … 28 28 #include <limits.h> 29 29 #include <NTL/ZZ_pEXFactoring.h> 30 #include <NTL/lzz_pEXFactoring.h> 30 31 #include <NTL/GF2EXFactoring.h> 31 32 … … 54 55 GF2EX convertFacCF2NTLGF2EX(CanonicalForm f,GF2X mipo); 55 56 ZZ_pEX convertFacCF2NTLZZ_pEX(CanonicalForm f,ZZ_pX mipo); 57 zz_pEX convertFacCF2NTLzz_pEX(CanonicalForm f,zz_pX mipo); 58 CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(vec_pair_zz_pEX_long e,zz_pE multi,Variable x,Variable alpha); 56 59 57 60 #endif -
factory/cf_factor.cc
r143c6c9 r5af844a 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_factor.cc,v 1. 29 2005-12-13 13:59:54Singular Exp $ */2 /* $Id: cf_factor.cc,v 1.30 2007-04-25 11:00:51 Singular Exp $ */ 3 3 4 4 //{{{ docu … … 537 537 538 538 // set minimal polynomial in NTL 539 #ifdef NTL_ZZ 539 540 ZZ_pX minPo=convertFacCF2NTLZZpX(getMipo(alpha)); 540 541 ZZ_pEContext c(minPo); 542 #else 543 zz_pX minPo=convertFacCF2NTLzzpX(getMipo(alpha)); 544 zz_pEContext c(minPo); 545 #endif 541 546 542 547 c.restore(); 543 548 544 549 // convert to NTL 550 #ifdef NTL_ZZ 545 551 ZZ_pEX f1=convertFacCF2NTLZZ_pEX(f,minPo); 552 ZZ_pE leadcoeff= LeadCoeff(f1); 553 #else 554 zz_pEX f1=convertFacCF2NTLzz_pEX(f,minPo); 555 zz_pE leadcoeff= LeadCoeff(f1); 556 #endif 546 557 547 558 //make monic 548 ZZ_pE leadcoeff= LeadCoeff(f1);549 559 f1=f1 / leadcoeff; 550 560 551 561 // factorize using NTL 562 #ifdef NTL_ZZ 552 563 vec_pair_ZZ_pEX_long factors; 564 #else 565 vec_pair_zz_pEX_long factors; 566 #endif 553 567 CanZass(factors,f1); 554 568 555 569 // return converted result 556 F=convertNTLvec_pair_ ZZpEX_long2FacCFFList(factors,leadcoeff,f.mvar(),alpha);570 F=convertNTLvec_pair_zzpEX_long2FacCFFList(factors,leadcoeff,f.mvar(),alpha); 557 571 } 558 572 else
Note: See TracChangeset
for help on using the changeset viewer.