Changeset 232bbd5 in git for libpolys/polys/nc/old.gring.cc
- Timestamp:
- Feb 22, 2012, 9:51:21 PM (12 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.