Changeset 4604b84 in git


Ignore:
Timestamp:
Sep 14, 2012, 3:26:49 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
692aed67dd3c1feda459176230989bad62071027
Parents:
4782bce35ff5691eb0a20e9bcbc6b9df9724de3f
git-author:
Martin Lee <martinlee84@web.de>2012-09-14 15:26:49+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-10-25 15:11:13+02:00
Message:
chg: use FLINT in modular resultant computation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cfModResultant.cc

    r4782bc r4604b84  
    2626#endif
    2727
     28#ifdef HAVE_FLINT
     29#include "FLINTconvert.h"
     30#endif
     31
    2832//TODO arrange by bound= deg (F,xlevel)*deg (G,i)+deg (G,xlevel)*deg (F, i)
    2933static inline
     
    242246    return 0;
    243247
     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
    244257  zz_pBak bak;
    245258  bak.save();
     
    252265  bak.restore();
    253266  return CanonicalForm (to_long (rep (NTLResult)));
     267#endif
    254268#else
    255269  return resultant (F, G, F.mvar());
Note: See TracChangeset for help on using the changeset viewer.