Changeset aef1b86 in git
- Timestamp:
- Jul 4, 2008, 6:17:16 PM (16 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d81b79a04dd97fbb40df1b3a823019d92d8987a7
- Parents:
- 6bde67d3ebe4f6e2535783ef325b4c27f75c7b33
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
r6bde67 raef1b86 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.9 4 2008-06-25 12:03:56 SingularExp $ */4 /* $Id: kutil.cc,v 1.95 2008-07-04 16:17:15 motsak Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 1383 1383 #ifdef HAVE_PLURAL 1384 1384 const BOOLEAN bIsPluralRing = rIsPluralRing(currRing); 1385 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat-> homog; // forprod-crit1385 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->z2homog; // for Z_2 prod-crit 1386 1386 const BOOLEAN bNCProdCrit = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA 1387 1387 … … 1650 1650 //PrintS("prod-crit\n"); 1651 1651 #ifdef HAVE_PLURAL 1652 if((!rIsPluralRing(currRing)) || (rIsSCA(currRing) && strat-> homog))1652 if((!rIsPluralRing(currRing)) || (rIsSCA(currRing) && strat->z2homog)) 1653 1653 #endif 1654 1654 { … … 5316 5316 #ifdef HAVE_PLURAL 5317 5317 // and r is plural_ring 5318 if( rIsPluralRing(currRing) || (rIsSCA(currRing) && !strat-> homog) )5318 if( rIsPluralRing(currRing) || (rIsSCA(currRing) && !strat->z2homog) ) 5319 5319 { //or it has non-quasi-comm type... later 5320 5320 strat->sugarCrit = FALSE; … … 6507 6507 6508 6508 const BOOLEAN bIsPluralRing = rIsPluralRing(currRing); 6509 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat-> homog; // for prod-crit6509 const BOOLEAN bIsSCA = rIsSCA(currRing) && strat->z2homog; // for prod-crit 6510 6510 const BOOLEAN bNCProdCrit = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA 6511 6511 -
kernel/kutil.h
r6bde67 raef1b86 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1.3 5 2008-02-26 23:35:31 levandovExp $ */6 /* $Id: kutil.h,v 1.36 2008-07-04 16:17:15 motsak Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for kStd … … 311 311 BOOLEAN interpt; 312 312 BOOLEAN homog; 313 #ifdef HAVE_PLURAL 314 BOOLEAN z2homog; // Z_2 - homogeneous input allows product criterion in commutative and SCA cases! 315 #endif 313 316 BOOLEAN kHEdgeFound; 314 317 BOOLEAN honey,sugarCrit; -
kernel/sca.cc
r6bde67 raef1b86 7 7 * Author: motsak (Oleksandr Motsak) 8 8 * Created: 2006/12/18 9 * Version: $Id: sca.cc,v 1.2 5 2008-07-02 18:07:11motsak Exp $9 * Version: $Id: sca.cc,v 1.26 2008-07-04 16:17:16 motsak Exp $ 10 10 *******************************************************************/ 11 11 … … 1001 1001 tempQ = SCAQuotient(currRing); 1002 1002 1003 bool bIdHomog = id_IsSCAHomogeneous(tempF, NULL, NULL, currRing); // wCx == wCy == NULL! 1004 1005 assume( !bIdHomog || strat->homog ); // bIdHomog =====[implies]>>>>> strat->homog 1006 1007 strat->homog = strat->homog && bIdHomog; 1008 1009 assume( strat->homog == bIdHomog ); 1003 strat->z2homog = id_IsSCAHomogeneous(tempF, NULL, NULL, currRing); // wCx == wCy == NULL! 1004 1005 // strat->homog = strat->homog && strat->z2homog; // ? 1010 1006 1011 1007 #if MYTEST … … 1651 1647 #endif 1652 1648 1653 bool bIdHomog = id_IsSCAHomogeneous(tempF, NULL, NULL, currRing); // wCx == wCy == NULL! 1654 1655 assume( !bIdHomog || strat->homog ); // bIdHomog =====[implies]>>>>> strat->homog 1656 1657 strat->homog = strat->homog && bIdHomog; 1658 1659 #ifdef PDEBUG 1660 assume( strat->homog == bIdHomog ); 1661 #endif /*PDEBUG*/ 1649 strat->z2homog = id_IsSCAHomogeneous(tempF, NULL, NULL, currRing); // wCx == wCy == NULL! 1650 1651 // strat->homog = strat->homog && strat->z2homog; // ? 1662 1652 1663 1653 … … 2531 2521 const unsigned int N = r->N; 2532 2522 2533 const int CommutativeVariable = 1;2523 const int CommutativeVariable = 0; // bug correction! 2534 2524 const int AntiCommutativeVariable = 0; 2535 2525 2536 2526 intvec* w = new intvec(N, 1, CommutativeVariable); 2537 2527 2528 if(AntiCommutativeVariable != CommutativeVariable) 2538 2529 if( rIsSCA(r) ) 2539 2530 { … … 2546 2537 } 2547 2538 } 2539 2548 2540 return w; 2549 2541 } … … 2562 2554 intvec* w = new intvec(N, 1, CommutativeVariable); 2563 2555 2556 if(AntiCommutativeVariable != CommutativeVariable) 2564 2557 if( rIsSCA(r) ) 2565 2558 {
Note: See TracChangeset
for help on using the changeset viewer.