- Timestamp:
- Jan 11, 2007, 11:27:04 AM (17 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
- Children:
- d606265146ccd278e654a9d22bbcaa1132fcea2e
- Parents:
- 35c62a92d36241464b88cbd648cd39499fc70ad8
- Location:
- kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gring.h
r35c62a9 rd312f6 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: gring.h,v 1.1 5 2007-01-03 00:17:10 motsakExp $ */6 /* $Id: gring.h,v 1.16 2007-01-11 10:27:03 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT additional defines etc for --with-plural 9 9 */ 10 10 11 //#ifdef HAVE_PLURAL11 #ifdef HAVE_PLURAL 12 12 #include "structs.h" 13 13 … … 128 128 129 129 130 131 inline BOOLEAN rIsPluralRing(ring r)132 {133 #ifdef HAVE_PLURAL134 return ((r != NULL) && (r->nc != NULL) && (r->nc->type != nc_error));135 #else136 return 0;137 #endif138 }139 130 140 131 inline void ncRingType(ring r, nc_type t) … … 269 260 270 261 #endif 262 #endif -
kernel/kutil.cc
r35c62a9 rd312f6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.4 2 2007-01-05 17:59:32Singular Exp $ */4 /* $Id: kutil.cc,v 1.43 2007-01-11 10:27:03 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 1220 1220 pSetm(Lp.lcm); 1221 1221 1222 const bool bIsPluralRing = rIsPluralRing(currRing); 1223 const bool bIsSCA = rIsSCA(currRing) && strat->homog; // for prod-crit 1224 const bool bNCProdCrit = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA 1222 #ifdef HAVE_PLURAL 1223 const BOOLEAN bIsPluralRing = rIsPluralRing(currRing); 1224 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->homog; // for prod-crit 1225 const BOOLEAN bNCProdCrit = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA 1226 #else 1227 const BOOLEAN bIsPluralRing = FALSE; 1228 const BOOLEAN bIsSCA = FALSE; 1229 const BOOLEAN bNCProdCrit = TRUE; 1230 #endif 1225 1231 1226 1232 if (strat->sugarCrit && bNCProdCrit) … … 1364 1370 else 1365 1371 { 1372 #ifdef HAVE_PLURAL 1366 1373 if ( bIsPluralRing ) 1367 1374 { … … 1388 1395 } 1389 1396 else 1397 #endif 1390 1398 { 1391 1399 Lp.p = ksCreateShortSpoly(strat->S[i],p, strat->tailRing); … … 1452 1460 { 1453 1461 //PrintS("prod-crit\n"); 1462 #ifdef HAVE_PLURAL 1454 1463 if(!rIsPluralRing(currRing) || (rIsSCA(currRing) && strat->homog)) 1464 #endif 1455 1465 { 1456 1466 //PrintS("prod-crit\n"); … … 1486 1496 /*- compute the short s-polynomial -*/ 1487 1497 1488 //#ifdef HAVE_PLURAL1498 #ifdef HAVE_PLURAL 1489 1499 if (rIsPluralRing(currRing)) 1490 1500 { … … 1492 1502 } 1493 1503 else 1494 //#endif1504 #endif 1495 1505 Lp.p = ksCreateShortSpoly(strat->S[i],p,strat->tailRing); 1496 1506 … … 5136 5146 strat->noTailReduction = !TEST_OPT_REDTAIL; 5137 5147 5148 #ifdef HAVE_PLURAL 5138 5149 // and r is plural_ring 5139 5150 if( rIsPluralRing(currRing) || (rIsSCA(currRing) && !strat->homog) ) … … 5143 5154 strat->honey = FALSE; 5144 5155 } 5156 #endif 5145 5157 5146 5158 #ifdef HAVE_RING2TOM -
kernel/ring.h
r35c62a9 rd312f6 7 7 * ABSTRACT - the interpreter related ring operations 8 8 */ 9 /* $Id: ring.h,v 1.1 5 2007-01-03 00:17:12 motsakExp $ */9 /* $Id: ring.h,v 1.16 2007-01-11 10:27:04 Singular Exp $ */ 10 10 11 11 /* includes */ … … 32 32 ring rOpposite(ring r); 33 33 ring rEnvelope(ring r); 34 35 #ifdef HAVE_PLURAL 36 inline BOOLEAN rIsPluralRing(ring r) 37 { 38 return ((r != NULL) && (r->nc != NULL) && (r->nc->type != nc_error)); 39 } 40 #else 41 #define rIsPluralRing(R) 0 42 #endif 34 43 35 44 -
kernel/sca.h
r35c62a9 rd312f6 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: sca.h,v 1. 3 2007-01-09 14:29:32Singular Exp $ */7 /* $Id: sca.h,v 1.4 2007-01-11 10:27:04 Singular Exp $ */ 8 8 9 #ifdef HAVE_PLURAL 9 10 #include <structs.h> 10 11 // #include <polys-impl.h> … … 135 136 136 137 #endif // #ifndef GRING_SUPER_COMMUTATIVE_ALGEBRA_H 137 138 #endif
Note: See TracChangeset
for help on using the changeset viewer.