Changeset 07625cb in git for kernel/kutil.cc
- Timestamp:
- Nov 6, 2007, 1:58:35 PM (16 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 546f3b19e4b731ab0bb81dfd94920b298729c4ac
- Parents:
- 22ea2e7a74e0da549b0158ff019220c1d6bcd651
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
r22ea2e r07625cb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.6 6 2007-11-05 12:40:19Singular Exp $ */4 /* $Id: kutil.cc,v 1.67 2007-11-06 12:58:34 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 6052 6052 #endif 6053 6053 6054 #ifdef HAVE_PLURAL 6054 6055 /* including the self pairs? */ 6055 6056 … … 6109 6110 6110 6111 6111 #ifdef HAVE_PLURAL6112 6112 const BOOLEAN bIsPluralRing = rIsPluralRing(currRing); 6113 6113 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->homog; // for prod-crit 6114 6114 const BOOLEAN bNCProdCrit = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA 6115 #else6116 const BOOLEAN bIsPluralRing = FALSE;6117 const BOOLEAN bIsSCA = FALSE;6118 const BOOLEAN bNCProdCrit = TRUE;6119 #endif6120 6115 6121 6116 if (strat->sugarCrit && bNCProdCrit) … … 6259 6254 else 6260 6255 { 6261 #ifdef HAVE_PLURAL6262 6256 if ( bIsPluralRing ) 6263 6257 { … … 6283 6277 } 6284 6278 else 6285 #endif6286 6279 { 6287 6280 Lp.p = ksCreateShortSpoly(strat->S[i],p, strat->tailRing); … … 6397 6390 } 6398 6391 } 6399 6400 6401 6392 #endif 6393 6394 6395 6396 #ifdef HAVE_PLURAL 6402 6397 /*2 6403 6398 *reduces h with elements from T choosing the first possible … … 6406 6401 int redFirstShift (LObject* h,kStrategy strat) 6407 6402 { 6403 assume(rIsPluralRing(currRing)); 6408 6404 int at,reddeg,d,i; 6409 6405 int pass = 0; … … 6435 6431 wrp(strat->S[j]); 6436 6432 } 6437 #ifdef HAVE_PLURAL 6438 if (rIsPluralRing(currRing)) 6439 (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p, currRing); 6440 else 6441 #else 6442 spSpolyRed(strat->T[j].p,(*h).p,strat->kNoether); 6443 #endif 6433 (*h).p = nc_ReduceSpoly(strat->S[j],(*h).p, currRing); 6434 // spSpolyRed(strat->T[j].p,(*h).p,strat->kNoether); 6444 6435 6445 6436 if (TEST_OPT_DEBUG) … … 6511 6502 } 6512 6503 } 6504 #endif 6513 6505 6514 6506
Note: See TracChangeset
for help on using the changeset viewer.