Changeset a794e7 in git
- Timestamp:
- Feb 21, 2009, 6:50:29 PM (14 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 28f16452ba2351e155e944280a5d83ffdfd1ffc8
- Parents:
- d2fb9b798dfbc73c80fa4e362821dec99824da4f
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd1.cc
rd2fb9b7 ra794e7 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd1.cc,v 1.4 2 2008-12-08 10:00:44 wienandExp $ */4 /* $Id: kstd1.cc,v 1.43 2009-02-21 17:50:11 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 1705 1705 if (rIsPluralRing(currRing)) 1706 1706 { 1707 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->z2homog; // for Z_2 prod-crit 1708 strat->no_prod_crit = ! bIsSCA; 1707 1709 if (w!=NULL) 1708 1710 r = nc_GB(F, Q, *w, hilb, strat); -
kernel/kutil.cc
rd2fb9b7 ra794e7 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.11 8 2009-02-21 11:04:19Singular Exp $ */4 /* $Id: kutil.cc,v 1.119 2009-02-21 17:50:11 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 1387 1387 #define MYTEST 0 1388 1388 1389 #ifdef HAVE_PLURAL 1390 const BOOLEAN bIsPluralRing = rIsPluralRing(currRing); 1391 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->z2homog; // for Z_2 prod-crit 1392 const BOOLEAN bNCProdCrit = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA 1393 1394 #else 1395 const BOOLEAN bIsPluralRing = FALSE; 1396 const BOOLEAN bIsSCA = FALSE; 1397 const BOOLEAN bNCProdCrit = TRUE; 1398 #endif 1399 1400 1401 if (strat->sugarCrit && bNCProdCrit) 1389 if (strat->sugarCrit && PROD_CRIT(strat)) 1402 1390 { 1403 1391 if((!((strat->ecartS[i]>0)&&(ecart>0))) … … 1468 1456 else /*sugarcrit*/ 1469 1457 { 1470 if ( bNCProdCrit)1458 if (PROD_CRIT(strat)) 1471 1459 { 1472 1460 // if currRing->nc_type!=quasi (or skew) … … 1542 1530 { 1543 1531 #ifdef HAVE_PLURAL 1544 if ( bIsPluralRing)1532 if ( rIsPluralRing(currRing) ) 1545 1533 { 1546 1534 if(pHasNotCF(p, strat->S[i])) … … 1553 1541 // } 1554 1542 // else 1555 if( bIsSCA)1543 if( PROD_CRIT(strat) ) 1556 1544 { 1557 1545 // product criterion for homogeneous case in SCA … … 1618 1606 Lp.p2 = p; 1619 1607 1620 // if ( ! bIsPluralRing) // !!!!1608 // if ( !rIsPluralRing(currRing) ) // !!!! 1621 1609 assume(pNext(Lp.p)==NULL); 1622 1610 pNext(Lp.p) = strat->tail; // !!! … … 1636 1624 if (TEST_OPT_INTSTRATEGY) 1637 1625 { 1638 if (! bIsPluralRing)1626 if (!rIsPluralRing(currRing)) 1639 1627 nDelete(&(Lp.p->coef)); 1640 1628 } … … 1655 1643 { 1656 1644 //PrintS("prod-crit\n"); 1657 #ifdef HAVE_PLURAL 1658 if((!rIsPluralRing(currRing)) || (rIsSCA(currRing) && strat->z2homog)) 1659 #endif 1645 if(PROD_CRIT(strat)) 1660 1646 { 1661 1647 //PrintS("prod-crit\n"); … … 6928 6914 } 6929 6915 6930 const BOOLEAN bIsPluralRing = rIsPluralRing(currRing); 6931 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->z2homog; // for prod-crit 6932 const BOOLEAN bNCProdCrit = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA 6933 6934 if (strat->sugarCrit && bNCProdCrit) 6916 if (strat->sugarCrit && PROD_CRIT(strat)) 6935 6917 { 6936 6918 if((!((ecartq>0)&&(ecart>0))) … … 7001 6983 else /*sugarcrit*/ 7002 6984 { 7003 if ( bNCProdCrit)6985 if (PROD_CRIT(strat)) 7004 6986 { 7005 6987 // if currRing->nc_type!=quasi (or skew) … … 7072 7054 else 7073 7055 { 7074 // if ( bIsPluralRing)7056 // if ( rIsPluralRing(currRing) ) 7075 7057 // { 7076 7058 // if(pHasNotCF(p, q)) … … 7083 7065 // } 7084 7066 // else 7085 // if( bIsSCA)7067 // if( PROD_CRIT(strat) ) 7086 7068 // { 7087 7069 // // product criterion for homogeneous case in SCA … … 7130 7112 Lp.p2 = p; // already in the needed form 7131 7113 7132 if ( ! bIsPluralRing)7114 if ( !rIsPluralRing(currRing) ) 7133 7115 pNext(Lp.p) = strat->tail; 7134 7116 … … 7150 7132 if (TEST_OPT_INTSTRATEGY) 7151 7133 { 7152 if (! bIsPluralRing)7134 if (!rIsPluralRing(currRing)) 7153 7135 nDelete(&(Lp.p->coef)); 7154 7136 } -
kernel/kutil.h
rd2fb9b7 ra794e7 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1.3 8 2008-09-16 12:33:18Singular Exp $ */6 /* $Id: kutil.h,v 1.39 2009-02-21 17:50:11 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for kStd … … 330 330 BOOLEAN posInLDependsOnLength; 331 331 /*FALSE, if posInL == posInL10*/ 332 #ifdef HAVE_PLURAL 333 BOOLEAN no_prod_crit; 334 #define PROD_CRIT(A) (!(A)->no_prod_crit) 335 #else 336 #define PROD_CRIT(A) (1) 337 #endif 332 338 char redTailChange; 333 339 char news; -
kernel/ring.h
rd2fb9b7 ra794e7 7 7 * ABSTRACT - the interpreter related ring operations 8 8 */ 9 /* $Id: ring.h,v 1.3 7 2009-01-06 16:56:05Singular Exp $ */9 /* $Id: ring.h,v 1.38 2009-02-21 17:50:29 Singular Exp $ */ 10 10 11 11 /* includes */ … … 38 38 #ifdef HAVE_PLURAL 39 39 nc_struct *n; 40 return (r != NULL) && ((n=r->GetNC()) != NULL) && (n->type != nc_error);40 return (r != NULL) && ((n=r->GetNC()) != NULL) /*&& (n->type != nc_error)*/; 41 41 #else 42 42 return false; -
kernel/sca.cc
rd2fb9b7 ra794e7 7 7 * Author: motsak (Oleksandr Motsak) 8 8 * Created: 2006/12/18 9 * Version: $Id: sca.cc,v 1.3 0 2009-01-06 15:49:14Singular Exp $9 * Version: $Id: sca.cc,v 1.31 2009-02-21 17:50:11 Singular Exp $ 10 10 *******************************************************************/ 11 11 … … 1041 1041 1042 1042 strat->z2homog = id_IsSCAHomogeneous(tempF, NULL, NULL, currRing); // wCx == wCy == NULL! 1043 // redo: no_prod_crit 1044 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->z2homog; // for Z_2 prod-crit 1045 strat->no_prod_crit = ! bIsSCA; 1043 1046 1044 1047 // strat->homog = strat->homog && strat->z2homog; // ? … … 1687 1690 1688 1691 strat->z2homog = id_IsSCAHomogeneous(tempF, NULL, NULL, currRing); // wCx == wCy == NULL! 1692 // redo no_prod_crit: 1693 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->z2homog; // for Z_2 prod-crit 1694 strat->no_prod_crit = ! bIsSCA; 1689 1695 1690 1696 // strat->homog = strat->homog && strat->z2homog; // ?
Note: See TracChangeset
for help on using the changeset viewer.