Changeset ae3775 in git for factory/cf_factor.cc


Ignore:
Timestamp:
Dec 20, 2011, 1:49:30 AM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7cb55903f606ba30490caea7d1b11dd71bfeb340
Parents:
7e8c9ef034b643eea4e3a9dfb0885856e6d1a5eb
git-author:
Martin Lee <martinlee84@web.de>2011-12-20 00:49:30+00:00
git-committer:
Martin Lee <martinlee84@web.de>2012-04-04 14:42:24+02:00
Message:
chg: use Flint factorization over finite fields instead of NTL
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_factor.cc

    r7e8c9e rae3775  
    4040
    4141#include <factory/cf_gmp.h>
     42#ifdef HAVE_FLINT
     43#include "FLINTconvert.h"
     44#endif
    4245
    4346int getExp(); /* cf_char.cc */
     
    430433    if (f.isUnivariate())
    431434    {
    432       #ifdef HAVE_NTL
     435#ifdef HAVE_FLINT
     436      nmod_poly_t f1;
     437      convertFacCF2nmod_poly_t (f1, f);
     438      nmod_poly_factor_t result;
     439      nmod_poly_factor_init (result);
     440      mp_limb_t leadingCoeff= nmod_poly_factor (result, f1);
     441      F= convertFLINTnmod_poly_factor2FacCFFList (result, leadingCoeff, f.mvar());
     442      nmod_poly_factor_clear (result);
     443#else ifdef HAVE_NTL
    433444      if (isOn(SW_USE_NTL) && (isPurePoly(f)))
    434445      {
Note: See TracChangeset for help on using the changeset viewer.