Changeset aef1b86 in git


Ignore:
Timestamp:
Jul 4, 2008, 6:17:16 PM (16 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d81b79a04dd97fbb40df1b3a823019d92d8987a7
Parents:
6bde67d3ebe4f6e2535783ef325b4c27f75c7b33
Message:
*motsak: correction of Z_2 - homogeneity


git-svn-id: file:///usr/local/Singular/svn/trunk@10837 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/kutil.cc

    r6bde67 raef1b86  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.94 2008-06-25 12:03:56 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.95 2008-07-04 16:17:15 motsak Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    13831383#ifdef HAVE_PLURAL
    13841384  const BOOLEAN bIsPluralRing = rIsPluralRing(currRing);
    1385   const BOOLEAN bIsSCA        = rIsSCA(currRing) && strat->homog; // for prod-crit
     1385  const BOOLEAN bIsSCA        = rIsSCA(currRing) && strat->z2homog; // for Z_2 prod-crit
    13861386  const BOOLEAN bNCProdCrit   = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA
    13871387
     
    16501650    //PrintS("prod-crit\n");
    16511651    #ifdef HAVE_PLURAL
    1652     if((!rIsPluralRing(currRing)) || (rIsSCA(currRing) && strat->homog))
     1652    if((!rIsPluralRing(currRing)) || (rIsSCA(currRing) && strat->z2homog))
    16531653    #endif
    16541654    {
     
    53165316#ifdef HAVE_PLURAL
    53175317  // and r is plural_ring
    5318   if( rIsPluralRing(currRing) || (rIsSCA(currRing) && !strat->homog) )
     5318  if( rIsPluralRing(currRing) || (rIsSCA(currRing) && !strat->z2homog) )
    53195319  {    //or it has non-quasi-comm type... later
    53205320    strat->sugarCrit = FALSE;
     
    65076507
    65086508  const BOOLEAN bIsPluralRing = rIsPluralRing(currRing);
    6509   const BOOLEAN bIsSCA        = rIsSCA(currRing) && strat->homog; // for prod-crit
     6509  const BOOLEAN bIsSCA        = rIsSCA(currRing) && strat->z2homog; // for prod-crit
    65106510  const BOOLEAN bNCProdCrit   = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA
    65116511
  • kernel/kutil.h

    r6bde67 raef1b86  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kutil.h,v 1.35 2008-02-26 23:35:31 levandov Exp $ */
     6/* $Id: kutil.h,v 1.36 2008-07-04 16:17:15 motsak Exp $ */
    77/*
    88* ABSTRACT: kernel: utils for kStd
     
    311311  BOOLEAN interpt;
    312312  BOOLEAN homog;
     313#ifdef HAVE_PLURAL
     314  BOOLEAN z2homog; // Z_2 - homogeneous input allows product criterion in commutative and SCA cases!
     315#endif
    313316  BOOLEAN kHEdgeFound;
    314317  BOOLEAN honey,sugarCrit;
  • kernel/sca.cc

    r6bde67 raef1b86  
    77 *  Author:  motsak (Oleksandr Motsak)
    88 *  Created: 2006/12/18
    9  *  Version: $Id: sca.cc,v 1.25 2008-07-02 18:07:11 motsak Exp $
     9 *  Version: $Id: sca.cc,v 1.26 2008-07-04 16:17:16 motsak Exp $
    1010 *******************************************************************/
    1111
     
    10011001    tempQ = SCAQuotient(currRing);
    10021002
    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; // ?
    10101006
    10111007#if MYTEST
     
    16511647#endif
    16521648 
    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; // ?
    16621652
    16631653
     
    25312521  const unsigned int N  = r->N;
    25322522
    2533   const int CommutativeVariable = 1;
     2523  const int CommutativeVariable = 0; // bug correction!
    25342524  const int AntiCommutativeVariable = 0;
    25352525
    25362526  intvec* w = new intvec(N, 1, CommutativeVariable);
    25372527
     2528  if(AntiCommutativeVariable != CommutativeVariable)
    25382529  if( rIsSCA(r) )
    25392530  {
     
    25462537    }
    25472538  }
     2539
    25482540  return w;
    25492541}
     
    25622554  intvec* w = new intvec(N, 1, CommutativeVariable);
    25632555
     2556  if(AntiCommutativeVariable != CommutativeVariable)
    25642557  if( rIsSCA(r) )
    25652558  {
Note: See TracChangeset for help on using the changeset viewer.