Changeset a794e7 in git


Ignore:
Timestamp:
Feb 21, 2009, 6:50:29 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
28f16452ba2351e155e944280a5d83ffdfd1ffc8
Parents:
d2fb9b798dfbc73c80fa4e362821dec99824da4f
Message:
*hannes: PROD_CRIT(strat)


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

Legend:

Unmodified
Added
Removed
  • kernel/kstd1.cc

    rd2fb9b7 ra794e7  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.42 2008-12-08 10:00:44 wienand Exp $ */
     4/* $Id: kstd1.cc,v 1.43 2009-02-21 17:50:11 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    17051705  if (rIsPluralRing(currRing))
    17061706  {
     1707    const BOOLEAN bIsSCA  = rIsSCA(currRing) && strat->z2homog; // for Z_2 prod-crit
     1708    strat->no_prod_crit   = ! bIsSCA;
    17071709    if (w!=NULL)
    17081710      r = nc_GB(F, Q, *w, hilb, strat);
  • kernel/kutil.cc

    rd2fb9b7 ra794e7  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.118 2009-02-21 11:04:19 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.119 2009-02-21 17:50:11 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    13871387#define MYTEST 0
    13881388
    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))
    14021390  {
    14031391    if((!((strat->ecartS[i]>0)&&(ecart>0)))
     
    14681456  else /*sugarcrit*/
    14691457  {
    1470     if (bNCProdCrit)
     1458    if (PROD_CRIT(strat))
    14711459    {
    14721460      // if currRing->nc_type!=quasi (or skew)
     
    15421530  {
    15431531    #ifdef HAVE_PLURAL
    1544     if ( bIsPluralRing )
     1532    if ( rIsPluralRing(currRing) )
    15451533    {
    15461534      if(pHasNotCF(p, strat->S[i]))
     
    15531541//         }
    15541542//         else
    1555         if( bIsSCA )
     1543        if( PROD_CRIT(strat) )
    15561544        {
    15571545            // product criterion for homogeneous case in SCA
     
    16181606    Lp.p2 = p;
    16191607
    1620 //    if ( !bIsPluralRing ) // !!!!
     1608//    if ( !rIsPluralRing(currRing) ) // !!!!
    16211609    assume(pNext(Lp.p)==NULL);
    16221610    pNext(Lp.p) = strat->tail; // !!!
     
    16361624    if (TEST_OPT_INTSTRATEGY)
    16371625    {
    1638       if (!bIsPluralRing)
     1626      if (!rIsPluralRing(currRing))
    16391627        nDelete(&(Lp.p->coef));
    16401628    }
     
    16551643  {
    16561644    //PrintS("prod-crit\n");
    1657     #ifdef HAVE_PLURAL
    1658     if((!rIsPluralRing(currRing)) || (rIsSCA(currRing) && strat->z2homog))
    1659     #endif
     1645    if(PROD_CRIT(strat))
    16601646    {
    16611647      //PrintS("prod-crit\n");
     
    69286914  }
    69296915
    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))
    69356917  {
    69366918    if((!((ecartq>0)&&(ecart>0)))
     
    70016983  else /*sugarcrit*/
    70026984  {
    7003     if (bNCProdCrit)
     6985    if (PROD_CRIT(strat))
    70046986    {
    70056987      // if currRing->nc_type!=quasi (or skew)
     
    70727054  else
    70737055  {
    7074 //     if ( bIsPluralRing )
     7056//     if ( rIsPluralRing(currRing) )
    70757057//     {
    70767058//       if(pHasNotCF(p, q))
     
    70837065//         }
    70847066//         else
    7085 //         if( bIsSCA )
     7067//         if( PROD_CRIT(strat) )
    70867068//         {
    70877069//             // product criterion for homogeneous case in SCA
     
    71307112    Lp.p2 = p; // already in the needed form
    71317113
    7132     if ( !bIsPluralRing )
     7114    if ( !rIsPluralRing(currRing) )
    71337115      pNext(Lp.p) = strat->tail;
    71347116
     
    71507132    if (TEST_OPT_INTSTRATEGY)
    71517133    {
    7152       if (!bIsPluralRing)
     7134      if (!rIsPluralRing(currRing))
    71537135        nDelete(&(Lp.p->coef));
    71547136    }
  • kernel/kutil.h

    rd2fb9b7 ra794e7  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kutil.h,v 1.38 2008-09-16 12:33:18 Singular Exp $ */
     6/* $Id: kutil.h,v 1.39 2009-02-21 17:50:11 Singular Exp $ */
    77/*
    88* ABSTRACT: kernel: utils for kStd
     
    330330  BOOLEAN posInLDependsOnLength;
    331331  /*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
    332338  char    redTailChange;
    333339  char    news;
  • kernel/ring.h

    rd2fb9b7 ra794e7  
    77* ABSTRACT - the interpreter related ring operations
    88*/
    9 /* $Id: ring.h,v 1.37 2009-01-06 16:56:05 Singular Exp $ */
     9/* $Id: ring.h,v 1.38 2009-02-21 17:50:29 Singular Exp $ */
    1010
    1111/* includes */
     
    3838#ifdef HAVE_PLURAL
    3939  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)*/;
    4141#else
    4242  return false;
  • kernel/sca.cc

    rd2fb9b7 ra794e7  
    77 *  Author:  motsak (Oleksandr Motsak)
    88 *  Created: 2006/12/18
    9  *  Version: $Id: sca.cc,v 1.30 2009-01-06 15:49:14 Singular Exp $
     9 *  Version: $Id: sca.cc,v 1.31 2009-02-21 17:50:11 Singular Exp $
    1010 *******************************************************************/
    1111
     
    10411041
    10421042  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;
    10431046
    10441047//  strat->homog = strat->homog && strat->z2homog; // ?
     
    16871690 
    16881691  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;
    16891695
    16901696//  strat->homog = strat->homog && strat->z2homog; // ?
Note: See TracChangeset for help on using the changeset viewer.