Changeset 07625cb in git for kernel/kutil.cc


Ignore:
Timestamp:
Nov 6, 2007, 1:58:35 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
546f3b19e4b731ab0bb81dfd94920b298729c4ac
Parents:
22ea2e7a74e0da549b0158ff019220c1d6bcd651
Message:
*hannes: shift stuff depend on PLURAL


git-svn-id: file:///usr/local/Singular/svn/trunk@10378 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kutil.cc

    r22ea2e r07625cb  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.66 2007-11-05 12:40:19 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.67 2007-11-06 12:58:34 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    60526052#endif
    60536053
     6054#ifdef HAVE_PLURAL
    60546055/* including the self pairs? */
    60556056
     
    61096110
    61106111
    6111 #ifdef HAVE_PLURAL
    61126112  const BOOLEAN bIsPluralRing = rIsPluralRing(currRing);
    61136113  const BOOLEAN bIsSCA        = rIsSCA(currRing) && strat->homog; // for prod-crit
    61146114  const BOOLEAN bNCProdCrit   = ( !bIsPluralRing || bIsSCA ); // commutative or homogeneous SCA
    6115 #else
    6116   const BOOLEAN bIsPluralRing = FALSE;
    6117   const BOOLEAN bIsSCA        = FALSE;
    6118   const BOOLEAN bNCProdCrit   = TRUE;
    6119 #endif
    61206115
    61216116  if (strat->sugarCrit && bNCProdCrit)
     
    62596254  else
    62606255  {
    6261     #ifdef HAVE_PLURAL
    62626256    if ( bIsPluralRing )
    62636257    {
     
    62836277    }
    62846278    else
    6285     #endif
    62866279    {
    62876280      Lp.p = ksCreateShortSpoly(strat->S[i],p, strat->tailRing);
     
    63976390  }
    63986391}
    6399 
    6400 
    6401 
     6392#endif
     6393
     6394
     6395
     6396#ifdef HAVE_PLURAL
    64026397/*2
    64036398*reduces h with elements from T choosing  the first possible
     
    64066401int redFirstShift (LObject* h,kStrategy strat)
    64076402{
     6403  assume(rIsPluralRing(currRing));
    64086404  int at,reddeg,d,i;
    64096405  int pass = 0;
     
    64356431        wrp(strat->S[j]);
    64366432      }
    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);
    64446435
    64456436      if (TEST_OPT_DEBUG)
     
    65116502  }
    65126503}
     6504#endif
    65136505
    65146506
Note: See TracChangeset for help on using the changeset viewer.