Changeset 186df6 in git for factory/cfModResultant.cc


Ignore:
Timestamp:
Oct 26, 2012, 11:30:17 AM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
18ccf2907a4a103e379cecf364131e83e3aebab55c890683760ed725b5c0bb38871a3459d5f5ff2b
Parents:
1130ffcea9f0651b2cb15d5f7ea1758fc8cf75aa7061c1e376e43786ea799c82620a0bbed1dc5dd3
Message:
Merge pull request #199 from mmklee/flintinterface_sw

Flintinterface sw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cfModResultant.cc

    r1130ffc r186df6  
    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.