Changeset edd818 in git


Ignore:
Timestamp:
May 4, 2012, 11:14:01 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
18a66064a9a8616bef22907b60e68633bfc80c55
Parents:
dccd6db99cc44c93669e843ddb6e06d2682769b8
git-author:
Martin Lee <martinlee84@web.de>2012-05-04 23:14:01+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-05-07 18:18:44+02:00
Message:
fix: do not add lead coeff to factorization if it's 1
fix: do not compute factorization twice
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/FLINTconvert.cc

    rdccd6d redd818  
    265265{
    266266  CFFList result;
    267   result.insert (CFFactor (CanonicalForm ((long) leadingCoeff), 1));
     267  if (leadingCoeff != 1)
     268    result.insert (CFFactor (CanonicalForm ((long) leadingCoeff), 1));
    268269
    269270  long i;
  • factory/cf_factor.cc

    rdccd6d redd818  
    441441      F= convertFLINTnmod_poly_factor2FacCFFList (result, leadingCoeff, f.mvar());
    442442      nmod_poly_factor_clear (result);
     443      nmod_poly_clear (f1);
    443444#else
    444445#ifdef HAVE_NTL
     
    542543      else
    543544#endif //HAVE_NTL
    544 #endif //HAVE_FLINT
    545545      {  // Use Factory without NTL
    546546        if ( isOn( SW_BERLEKAMP ) )
     
    549549          F=FpFactorizeUnivariateCZ( f, issqrfree, 0, Variable(), Variable() );
    550550      }
     551#endif //HAVE_FLINT
    551552    }
    552553    else
Note: See TracChangeset for help on using the changeset viewer.