Changeset 186df6 in git for factory/cfModResultant.cc
- Timestamp:
- Oct 26, 2012, 11:30:17 AM (12 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 18ccf2907a4a103e379cecf364131e83e3aebab55c890683760ed725b5c0bb38871a3459d5f5ff2b
- Parents:
- 1130ffcea9f0651b2cb15d5f7ea1758fc8cf75aa7061c1e376e43786ea799c82620a0bbed1dc5dd3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cfModResultant.cc
r1130ffc r186df6 26 26 #endif 27 27 28 #ifdef HAVE_FLINT 29 #include "FLINTconvert.h" 30 #endif 31 28 32 //TODO arrange by bound= deg (F,xlevel)*deg (G,i)+deg (G,xlevel)*deg (F, i) 29 33 static inline … … 242 246 return 0; 243 247 248 #ifdef HAVE_FLINT 249 nmod_poly_t FLINTF, FLINTG; 250 convertFacCF2nmod_poly_t (FLINTF, F); 251 convertFacCF2nmod_poly_t (FLINTG, G); 252 mp_limb_t FLINTresult= nmod_poly_resultant (FLINTF, FLINTG); 253 nmod_poly_clear (FLINTF); 254 nmod_poly_clear (FLINTG); 255 return CanonicalForm ((long) FLINTresult); 256 #else 244 257 zz_pBak bak; 245 258 bak.save(); … … 252 265 bak.restore(); 253 266 return CanonicalForm (to_long (rep (NTLResult))); 267 #endif 254 268 #else 255 269 return resultant (F, G, F.mvar());
Note: See TracChangeset
for help on using the changeset viewer.