Changeset 232bbd5 in git
- Timestamp:
- Feb 22, 2012, 9:51:21 PM (11 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- f23ccea9a38ee5dfa1e6454e84dd4bd11cd5ce90
- Parents:
- 64f0ca8d7049bea31d0e107cf5c613e0b6ffa5d3
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-22 21:51:21+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-23 20:35:08+01:00
- Location:
- libpolys/polys/nc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/nc/nc.h
r64f0ca r232bbd5 352 352 353 353 354 // const int GRMASK = 1 << 1; 355 const int SCAMASK = 1; // For backward compatibility 356 const int TESTSYZSCAMASK = 0x0100 | SCAMASK; // 354 const int GENERICMASK = 0x000; // gnc... must do its dirty job first! 355 const int SCAMASK = 0x001; 356 357 #if 0 358 static const bool bNoPluralMultiplication = false; // use only formula shortcuts in my OOP Multiplier 359 // the following make sense only if bNoPluralMultiplication is false: 360 static const bool bNoFormula = true; // don't use any formula shortcuts 361 static const bool bNoCache = false; // only formula whenever possible, only make sanse if bNoFormula is false! 362 #endif 363 364 // false, true, false == old "good" Plural 365 // false, false ==>> Plural + Cache + Direct Formula - not much 366 // false, false, true ==>> Plural Mult + Direct Formula (no ~cache) 367 // true, *, * == new OOP multiplication! 368 369 const int NOPLURALMASK= 0x002; // bNoPluralMultiplication 370 const int NOFORMULAMASK=0x004; // bNoFormula 371 const int NOCACHEMASK = 0x008; // bNoCache 372 373 const int TESTSYZSCAMASK = 0x0100 | SCAMASK; 374 375 357 376 358 377 // NCExtensions Mask Property -
libpolys/polys/nc/old.gring.cc
r64f0ca r232bbd5 72 72 poly nc_p_Bracket_qq(poly p, const poly q, const ring r); 73 73 74 int iNCExtensions = 0; // SCAMASK; // only SCA can be usedby default75 74 // only SCA can be used by default, formulas are off by default 75 int iNCExtensions = SCAMASK | NOFORMULAMASK; 76 76 77 77 int& getNCExtensions() … … 87 87 } 88 88 89 90 89 bool ncExtensions(int iMask) // = 0x0FFFF 91 90 { 92 91 return ((getNCExtensions() & iMask) == iMask); 93 92 } 94 95 96 97 98 static const bool bNoPluralMultiplication = false; // use only formula shortcuts in my OOP Multiplier99 100 // the following make sense only if bNoPluralMultiplication is false:101 static const bool bNoFormula = true; // don't use any formula shortcuts102 static const bool bNoCache = false; // only formula whenever possible, only make sanse if bNoFormula is false!103 104 105 // false, true, false == old "good" Plural106 // false, false ==>> Plural + Cache + Direct Formula - not much107 // false, false, true ==>> Plural Mult + Direct Formula (no ~cache)108 // true, *, * == new OOP multiplication!109 110 93 111 94 /* global nc_macros : */ … … 1071 1054 static inline poly gnc_uu_Mult_ww_formula (int i, int a, int j, int b, const ring r) 1072 1055 { 1073 if( bNoFormula)1056 if(ncExtensions(NOFORMULAMASK)) 1074 1057 return gnc_uu_Mult_ww_vert(i, a, j, b, r); 1075 1058 … … 1140 1123 1141 1124 1142 if( bNoCache && !bNoFormula) // don't use cache whenever possible!1125 if(ncExtensions(NOCACHEMASK) && !ncExtensions(NOFORMULAMASK)) // don't use cache whenever possible! 1143 1126 { // without cache!? 1144 1127 CFormulaPowerMultiplier* FormulaMultiplier = GetFormulaPowerMultiplier(r); … … 3271 3254 } 3272 3255 3273 if( bNoPluralMultiplication)3256 if( ncExtensions(NOPLURALMASK) ) 3274 3257 ncInitSpecialPairMultiplication(rGR); 3275 3258 3276 if(!rIsSCA(rGR) && ! bNoFormula)3259 if(!rIsSCA(rGR) && !ncExtensions(NOFORMULAMASK)) 3277 3260 ncInitSpecialPowersMultiplication(rGR); 3278 3261
Note: See TracChangeset
for help on using the changeset viewer.