Changeset 0aeeee in git for factory/cfModGcd.cc
- Timestamp:
- Oct 14, 2020, 11:25:44 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cfModGcd.cc
rb7566c r0aeeee 476 476 /// based on Alg. 7.2. as described in "Algorithms for 477 477 /// Computer Algebra" by Geddes, Czapor, Labahn 478 #if def HAVE_NTL // mapPrimElem478 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 479 479 CanonicalForm 480 480 modGCDFq (const CanonicalForm& F, const CanonicalForm& G, … … 1203 1203 } 1204 1204 1205 #if def HAVE_NTL1205 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 1206 1206 CanonicalForm 1207 1207 modGCDFp (const CanonicalForm& F, const CanonicalForm& G, … … 1210 1210 #endif 1211 1211 1212 #if def HAVE_NTL1212 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 1213 1213 CanonicalForm 1214 1214 modGCDFp (const CanonicalForm& F, const CanonicalForm& G, … … 1221 1221 #endif 1222 1222 1223 #if def HAVE_NTL // mapPrimElem1223 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 1224 1224 CanonicalForm 1225 1225 modGCDFp (const CanonicalForm& F, const CanonicalForm& G, … … 4146 4146 gp= mapinto (g); 4147 4147 TIMING_START (modZ_recursion) 4148 #if def HAVE_NTL4148 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 4149 4149 if (size (fp)/maxNumVars > 500 && size (gp)/maxNumVars > 500) 4150 4150 Dp = modGCDFp (fp, gp, cofp, cogp); … … 4190 4190 if ( dp_deg == d_deg ) 4191 4191 { 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); 4195 4196 cof= newCof; 4196 4197 cog= newCog;
Note: See TracChangeset
for help on using the changeset viewer.