Changeset 9a12097 in git
- Timestamp:
- May 8, 2012, 11:05:19 AM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 6ff7fd14966b591a5233a7ef59d31a99925575fa
- Parents:
- a5b5dfd5ca7d49ae6201c6005102422b80cb2eb7
- git-author:
- Martin Lee <martinlee84@web.de>2012-05-08 11:05:19+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-05-11 11:06:45+02:00
- Location:
- factory
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd_smallp.cc
ra5b5df r9a12097 41 41 42 42 #ifdef HAVE_NTL 43 #include <NTL/ZZ_pEX.h>44 43 #include <NTLconvert.h> 45 44 #endif … … 435 434 { 436 435 int p= getCharacteristic(); 437 ZZ NTLp= to_ZZ (p); 438 ZZ_p::init (NTLp); 439 ZZ_pX NTLirredpoly; 436 zz_p::init (p); 437 zz_pX NTLirredpoly; 440 438 //TODO: replace d by max_{i} (deg_x{i}(f)) 441 439 int i= (int) (log ((double) ipower (d + 1, num_vars))/log ((double) p)); … … 444 442 i= 2; 445 443 BuildIrred (NTLirredpoly, i*m); 446 CanonicalForm mipo= convertNTL ZZpX2CF (NTLirredpoly, Variable(1));444 CanonicalForm mipo= convertNTLzzpX2CF (NTLirredpoly, Variable(1)); 447 445 beta= rootOf (mipo); 448 446 } … … 1335 1333 { 1336 1334 int p= getCharacteristic(); 1337 ZZ NTLp= to_ZZ (p); 1338 ZZ_p::init (NTLp); 1339 ZZ_pX NTLirredpoly; 1335 zz_p::init (p); 1336 zz_pX NTLirredpoly; 1340 1337 CanonicalForm CFirredpoly; 1341 1338 BuildIrred (NTLirredpoly, i + 1); 1342 CFirredpoly= convertNTL ZZpX2CF (NTLirredpoly, x);1339 CFirredpoly= convertNTLzzpX2CF (NTLirredpoly, x); 1343 1340 return CFirredpoly; 1344 1341 } -
factory/cf_map_ext.cc
ra5b5df r9a12097 28 28 29 29 #ifdef HAVE_NTL 30 #include <NTL/ZZ_pEXFactoring.h>31 30 #include "NTLconvert.h" 32 31 #endif -
factory/facFqBivar.cc
ra5b5df r9a12097 154 154 "univariate polynomial expected or constant expected"); 155 155 CFFList factorsA; 156 ZZ p= to_ZZ (getCharacteristic()); 157 ZZ_p::init (p); 156 zz_p::init (getCharacteristic()); 158 157 if (GF) 159 158 { … … 166 165 if (getCharacteristic() > 2) 167 166 { 168 ZZ_pX NTLMipo= convertFacCF2NTLZZpX (mipo.mapinto());169 ZZ_pE::init (NTLMipo);170 ZZ_pEX NTLA= convertFacCF2NTLZZ_pEX (buf, NTLMipo);167 zz_pX NTLMipo= convertFacCF2NTLzzpX (mipo.mapinto()); 168 zz_pE::init (NTLMipo); 169 zz_pEX NTLA= convertFacCF2NTLzz_pEX (buf, NTLMipo); 171 170 MakeMonic (NTLA); 172 vec_pair_ ZZ_pEX_long NTLFactorsA= CanZass (NTLA);173 ZZ_pE multi= to_ZZ_pE (1);174 factorsA= convertNTLvec_pair_ ZZpEX_long2FacCFFList (NTLFactorsA, multi,171 vec_pair_zz_pEX_long NTLFactorsA= CanZass (NTLA); 172 zz_pE multi= to_zz_pE (1); 173 factorsA= convertNTLvec_pair_zzpEX_long2FacCFFList (NTLFactorsA, multi, 175 174 x, beta); 176 175 } … … 198 197 if (getCharacteristic() > 2) 199 198 { 200 ZZ_pX NTLMipo= convertFacCF2NTLZZpX (getMipo (alpha));201 ZZ_pE::init (NTLMipo);202 ZZ_pEX NTLA= convertFacCF2NTLZZ_pEX (A, NTLMipo);199 zz_pX NTLMipo= convertFacCF2NTLzzpX (getMipo (alpha)); 200 zz_pE::init (NTLMipo); 201 zz_pEX NTLA= convertFacCF2NTLzz_pEX (A, NTLMipo); 203 202 MakeMonic (NTLA); 204 vec_pair_ ZZ_pEX_long NTLFactorsA= CanZass (NTLA);205 ZZ_pE multi= to_ZZ_pE (1);206 factorsA= convertNTLvec_pair_ ZZpEX_long2FacCFFList (NTLFactorsA, multi,203 vec_pair_zz_pEX_long NTLFactorsA= CanZass (NTLA); 204 zz_pE multi= to_zz_pE (1); 205 factorsA= convertNTLvec_pair_zzpEX_long2FacCFFList (NTLFactorsA, multi, 207 206 x, alpha); 208 207 } … … 235 234 if (getCharacteristic() > 2) 236 235 { 237 ZZ_pX NTLA= convertFacCF2NTLZZpX (A);236 zz_pX NTLA= convertFacCF2NTLzzpX (A); 238 237 MakeMonic (NTLA); 239 vec_pair_ ZZ_pX_long NTLFactorsA= CanZass (NTLA);240 ZZ_p multi= to_ZZ_p (1);241 factorsA= convertNTLvec_pair_ ZZpX_long2FacCFFList (NTLFactorsA, multi,238 vec_pair_zz_pX_long NTLFactorsA= CanZass (NTLA); 239 zz_p multi= to_zz_p (1); 240 factorsA= convertNTLvec_pair_zzpX_long2FacCFFList (NTLFactorsA, multi, 242 241 x); 243 242 } -
factory/facFqFactorize.cc
ra5b5df r9a12097 35 35 36 36 #ifdef HAVE_NTL 37 #include <NTL/ZZ_pEX.h>38 37 #include "NTLconvert.h" 39 38
Note: See TracChangeset
for help on using the changeset viewer.