Changeset b44d16 in git
- Timestamp:
- Jan 19, 2004, 12:27:46 PM (19 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 241b061058e7977a7c88da78f369a2fc3b76e55f
- Parents:
- f11d7badcdaf6188ba929aa6bf7fcc40bfccf113
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_factor.cc
rf11d7b rb44d16 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_factor.cc,v 1.2 1 2003-08-28 14:13:12Singular Exp $ */2 /* $Id: cf_factor.cc,v 1.22 2004-01-19 11:27:46 Singular Exp $ */ 3 3 4 4 //{{{ docu … … 207 207 { 208 208 // set remainder 209 #ifdef NTL_ZZ 209 210 ZZ r; 210 211 r=getCharacteristic(); 211 212 ZZ_pContext ccc(r); 213 #else 214 zz_pContext ccc(getCharacteristic()); 215 #endif 212 216 ccc.restore(); 217 #ifdef NTL_ZZ 213 218 ZZ_p::init(r); 219 #else 220 zz_p::init(getCharacteristic()); 221 #endif 214 222 // convert to NTL 223 #ifdef NTL_ZZ 215 224 ZZ_pX f1=convertFacCF2NTLZZpX(f); 216 225 ZZ_p leadcoeff = LeadCoeff(f1); 226 #else 227 zz_pX f1=convertFacCF2NTLzzpX(f); 228 zz_p leadcoeff = LeadCoeff(f1); 229 #endif 217 230 //make monic 218 231 f1=f1 / LeadCoeff(f1); 219 232 220 233 // factorize 234 #ifdef NTL_ZZ 221 235 vec_pair_ZZ_pX_long factors; 236 #else 237 vec_pair_zz_pX_long factors; 238 #endif 222 239 CanZass(factors,f1); 223 240 224 241 // convert back to factory 242 #ifdef NTL_ZZ 225 243 F=convertNTLvec_pair_ZZpX_long2FacCFFList(factors,leadcoeff,f.mvar()); 244 #else 245 F=convertNTLvec_pair_zzpX_long2FacCFFList(factors,leadcoeff,f.mvar()); 246 #endif 226 247 //test_cff(F,f); 227 248 }
Note: See TracChangeset
for help on using the changeset viewer.