Changeset 9c98c2 in git for factory/FLINTconvert.cc
- Timestamp:
- Feb 17, 2012, 11:12:16 AM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- e785e9081044da918572223fdfab379044387182
- Parents:
- c2aeb9aa4f5b5bc845c3d83ce3c7ab67db049358
- git-author:
- Martin Lee <martinlee84@web.de>2012-02-17 11:12:16+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-04-04 14:42:26+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/FLINTconvert.cc
rc2aeb9 r9c98c2 16 16 17 17 #include "canonicalform.h" 18 #include "fac_util.h" 18 19 #include "cf_iter.h" 19 20 #include "cf_factory.h" … … 35 36 #include <fmpq.h> 36 37 #include <fmpz_poly.h> 38 #include <fmpz_mod_poly.h> 37 39 #include <nmod_poly.h> 38 40 #include <fmpq_poly.h> … … 270 272 } 271 273 272 #endif 273 274 274 void 275 convertFacCF2Fmpz_mod_poly_t (fmpz_mod_poly_t result, const CanonicalForm& f, 276 const fmpz_t p) 277 { 278 fmpz_mod_poly_init2 (result, p, degree (f) + 1); 279 fmpz_poly_t buf; 280 convertFacCF2Fmpz_poly_t (buf, f); 281 fmpz_mod_poly_set_fmpz_poly (result, buf); 282 fmpz_poly_clear (buf); 283 } 284 285 CanonicalForm 286 convertFmpz_mod_poly_t2FacCF (fmpz_mod_poly_t poly, const Variable& x, 287 const modpk& b) 288 { 289 fmpz_poly_t buf; 290 fmpz_poly_init (buf); 291 fmpz_mod_poly_get_fmpz_poly (buf, poly); 292 CanonicalForm result= convertFmpz_poly_t2FacCF (buf, x); 293 fmpz_poly_clear (buf); 294 return b (result); 295 } 296 297 #endif 298 299
Note: See TracChangeset
for help on using the changeset viewer.