Changeset 237c42 in git for factory/facMul.cc


Ignore:
Timestamp:
Oct 17, 2012, 10:37:28 AM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b37b3984a12e1552c7bafc9fd5a7849240ea7980
Parents:
72f1e4ba707e83cf6b23e8920fb57f610d7ef8bc
git-author:
Martin Lee <martinlee84@web.de>2012-10-17 10:37:28+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-10-18 17:42:58+02:00
Message:
fix: factorization over Q(a) if minimal polynomial has denominator
fix: more failed assertions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facMul.cc

    r72f1e4b r237c42  
    404404      {
    405405        ZZ_p::init (convertFacCF2NTLZZ (b.getpk()));
    406         ZZ_pX NTLmipo= to_ZZ_pX (convertFacCF2NTLZZX (getMipo (alpha)));
     406        CanonicalForm mipo= getMipo (alpha);
     407        bool is_rat= isOn (SW_RATIONAL);
     408        if (!is_rat)
     409          On (SW_RATIONAL);
     410        mipo *=bCommonDen (mipo);
     411        if (!is_rat)
     412          Off (SW_RATIONAL);
     413        ZZ_pX NTLmipo= to_ZZ_pX (convertFacCF2NTLZZX (mipo));
    407414        ZZ_pE::init (NTLmipo);
    408415        ZZ_pEX NTLg= convertFacCF2NTLZZ_pEX (G, NTLmipo);
Note: See TracChangeset for help on using the changeset viewer.