Changeset 0aeeee in git for factory/cfModGcd.cc


Ignore:
Timestamp:
Oct 14, 2020, 11:25:44 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b9f50b373314e74e83c7c060a651dd2913e1f033')
Children:
5d10210628a056489efca136691a4ed49a4b26d2
Parents:
b7566c040bb4dee9a542a5848fa7e26d4c5b2d76
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2020-10-14 23:25:44+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2020-10-14 23:26:45+02:00
Message:
use: chineseRemainderCached
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cfModGcd.cc

    rb7566c r0aeeee  
    476476/// based on Alg. 7.2. as described in "Algorithms for
    477477/// Computer Algebra" by Geddes, Czapor, Labahn
    478 #ifdef HAVE_NTL // mapPrimElem
     478#if defined(HAVE_NTL) || defined(HAVE_FLINT)
    479479CanonicalForm
    480480modGCDFq (const CanonicalForm& F, const CanonicalForm& G,
     
    12031203}
    12041204
    1205 #ifdef HAVE_NTL
     1205#if defined(HAVE_NTL) || defined(HAVE_FLINT)
    12061206CanonicalForm
    12071207modGCDFp (const CanonicalForm& F, const CanonicalForm&  G,
     
    12101210#endif
    12111211
    1212 #ifdef HAVE_NTL
     1212#if defined(HAVE_NTL) || defined(HAVE_FLINT)
    12131213CanonicalForm
    12141214modGCDFp (const CanonicalForm& F, const CanonicalForm& G,
     
    12211221#endif
    12221222
    1223 #ifdef HAVE_NTL // mapPrimElem
     1223#if defined(HAVE_NTL) || defined(HAVE_FLINT)
    12241224CanonicalForm
    12251225modGCDFp (const CanonicalForm& F, const CanonicalForm&  G,
     
    41464146    gp= mapinto (g);
    41474147    TIMING_START (modZ_recursion)
    4148 #ifdef HAVE_NTL
     4148#if defined(HAVE_NTL) || defined(HAVE_FLINT)
    41494149    if (size (fp)/maxNumVars > 500 && size (gp)/maxNumVars > 500)
    41504150      Dp = modGCDFp (fp, gp, cofp, cogp);
     
    41904190      if ( dp_deg == d_deg )
    41914191      {
    4192         chineseRemainder( D, q, mapinto( Dp ), p, newD, newq );
    4193         chineseRemainder( cof, q, mapinto (cofp), p, newCof, newq);
    4194         chineseRemainder( cog, q, mapinto (cogp), p, newCog, newq);
     4192        CFArray inv(2);
     4193        chineseRemainderCached( D, q, mapinto( Dp ), p, newD, newq, inv );
     4194        chineseRemainderCached( cof, q, mapinto (cofp), p, newCof, newq, inv);
     4195        chineseRemainderCached( cog, q, mapinto (cogp), p, newCog, newq, inv);
    41954196        cof= newCof;
    41964197        cog= newCog;
Note: See TracChangeset for help on using the changeset viewer.