Changeset 57bfa2 in git
- Timestamp:
- Apr 14, 2009, 2:40:46 PM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 29a96670493a61dce0e68a57c46668b689508d12
- Parents:
- 797d4f19229a77bdf9613bc5ed8a5f46eaebabe4
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gring.cc
r797d4f r57bfa2 7 7 * Author: levandov (Viktor Levandovsky) 8 8 * Created: 8/00 - 11/00 9 * Version: $Id: gring.cc,v 1.7 2 2009-04-03 18:28:53motsak Exp $9 * Version: $Id: gring.cc,v 1.73 2009-04-14 12:40:46 motsak Exp $ 10 10 *******************************************************************/ 11 11 … … 51 51 52 52 53 54 int iNCExtensions = 0x00001; // only SCA can be used... 55 56 57 int& getNCExtensions() 58 { 59 return (iNCExtensions); 60 } 61 62 int setNCExtensions(int iMask) 63 { 64 const int iOld = getNCExtensions(); 65 getNCExtensions() = iMask; 66 return (iOld); 67 } 68 69 70 bool ncExtensions(int iMask) // = 0x0FFFF 71 { 72 return ((getNCExtensions() & iMask) == iMask); 73 } 74 75 76 77 53 78 static const bool bNoPluralMultiplication = false; // use only formula shortcuts in my OOP Multiplier 54 79 … … 63 88 // true, *, * == new OOP multiplication! 64 89 65 bool bUseExtensions = true;66 90 67 91 /* global nc_macros : */ … … 3390 3414 gnc_p_ProcsSet(rGR, p_Procs); 3391 3415 3392 if(rIsSCA(rGR) && bUseExtensions)3416 if(rIsSCA(rGR) && ncExtensions(SCAMASK) ) 3393 3417 { 3394 3418 sca_p_ProcsSet(rGR, p_Procs); … … 3811 3835 // currently only super-commutative extension deals with factors. 3812 3836 3813 if( bUseExtensions)3837 if( ncExtensions(SCAMASK) ) 3814 3838 { 3815 3839 bool sca_ret = sca_SetupQuotient(rGR, rG, bCopy); -
kernel/gring.h
r797d4f r57bfa2 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: gring.h,v 1.2 7 2009-04-03 18:28:53motsak Exp $ */6 /* $Id: gring.h,v 1.28 2009-04-14 12:40:46 motsak Exp $ */ 7 7 /* 8 8 * ABSTRACT additional defines etc for --with-plural … … 104 104 105 105 106 // const int GRMASK = 1 << 1; 107 const int SCAMASK = 1; // For backward compatibility 108 const int TESTSYZSCAMASK = 0x0100 | SCAMASK; // 109 110 // NCExtensions Mask Property 111 int& getNCExtensions(); 112 int setNCExtensions(int iMask); 113 114 // Test 115 bool ncExtensions(int iMask); // = 0x0FFFF 106 116 107 117 -
kernel/syz.cc
r797d4f r57bfa2 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz.cc,v 1.2 0 2009-04-10 19:03:44motsak Exp $ */4 /* $Id: syz.cc,v 1.21 2009-04-14 12:40:46 motsak Exp $ */ 5 5 6 6 /* … … 616 616 syStrategy syResolution(ideal arg, int maxlength,intvec * w, BOOLEAN minim) 617 617 { 618 #define QSyzTest 0619 618 620 619 #ifdef HAVE_PLURAL 621 620 622 #if QSyzTest 623 ideal idSaveCurrQuotient = currQuotient; 624 ideal idSaveCurrRingQuotient = currRing->qideal; 625 #endif 621 const ideal idSaveCurrQuotient = currQuotient; 622 const ideal idSaveCurrRingQuotient = currRing->qideal; 626 623 627 624 if( rIsSCA(currRing) ) … … 633 630 #endif 634 631 635 #if QSyzTest 636 currQuotient = SCAQuotient(currRing); 637 currRing->qideal = currQuotient; 638 #endif 632 if( ncExtensions(TESTSYZSCAMASK) ) 633 { 634 currQuotient = SCAQuotient(currRing); 635 currRing->qideal = currQuotient; 636 } 639 637 640 638 const unsigned int m_iFirstAltVar = scaFirstAltVar(currRing); … … 685 683 { 686 684 687 #if QSyzTest 688 currQuotient = idSaveCurrQuotient; 689 currRing->qideal = idSaveCurrRingQuotient; 690 #endif 685 if( ncExtensions(TESTSYZSCAMASK) ) 686 { 687 currQuotient = idSaveCurrQuotient; 688 currRing->qideal = idSaveCurrRingQuotient; 689 } 691 690 692 691 id_Delete(&arg, currRing);
Note: See TracChangeset
for help on using the changeset viewer.