Changeset b1326b in git for factory/cf_factor.cc
- Timestamp:
- Aug 28, 2003, 1:54:32 PM (21 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 4bc9c25c9a8c589240a894844cee71be5220ee1b
- Parents:
- 9b1e4c9febca790a3b9509dfd1c33492e29780fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_factor.cc
r9b1e4c rb1326b 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_factor.cc,v 1. 19 2003-02-14 15:53:27Singular Exp $ */2 /* $Id: cf_factor.cc,v 1.20 2003-08-28 11:54:32 Singular Exp $ */ 3 3 4 4 //{{{ docu … … 373 373 #ifdef HAVE_NTL 374 374 //if (isOn(SW_USE_NTL)) 375 if (isOn(SW_USE_NTL) && (isPurePoly(f,alpha)))375 if (isOn(SW_USE_NTL) /*&& (isPurePoly(f,alpha))*/) 376 376 { 377 377 //USE NTL … … 410 410 411 411 // remainder is two ==> nothing to do 412 // set remainder 413 ZZ r; 414 r=getCharacteristic(); 415 ZZ_pContext ccc(r); 416 ccc.restore(); 412 417 413 418 // set minimal polynomial in NTL using the optimized conversion routines for characteristic 2 … … 417 422 418 423 // convert to NTL again using the faster conversion routines 419 GF2X f_tmp=convertFacCF2NTLGF2X(f); 420 GF2EX f1=to_GF2EX(f_tmp); 421 422 // no make monic necessary in GF2 424 GF2EX f1; 425 if (isPurePoly(f)) 426 { 427 GF2X f_tmp=convertFacCF2NTLGF2X(f); 428 f1=to_GF2EX(f_tmp); 429 } 430 else 431 { 432 f1=convertFacCF2NTLGF2EX(f,minPo); 433 } 434 435 // make monic (in Z/2(a)) 436 GF2E f1_coef=LeadCoeff(f1); 437 MakeMonic(f1); 423 438 424 439 // factorize using NTL … … 427 442 428 443 // return converted result 429 F=convertNTLvec_pair_GF2EX_long2FacCFFList(factors, LeadCoeff(f1),f.mvar(),alpha);444 F=convertNTLvec_pair_GF2EX_long2FacCFFList(factors,f1_coef,f.mvar(),alpha); 430 445 } 431 446
Note: See TracChangeset
for help on using the changeset viewer.