Changeset 5eb865 in git for kernel/kstd2.cc


Ignore:
Timestamp:
Jun 9, 2009, 8:21:50 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
e4be351ada16eebdaa1e48ce01115ffc5287dbd3
Parents:
b82abb0dc3349df20acd8231f648b8ff51bc61b6
Message:
*hannes: redtail for Z


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

Legend:

Unmodified
Added
Removed
  • kernel/kstd2.cc

    rb82abb r5eb865  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.87 2009-06-04 08:15:45 Singular Exp $ */
     4/* $Id: kstd2.cc,v 1.88 2009-06-09 18:21:50 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
     
    12211221  if ((p!=NULL)&&((lazyReduce & KSTD_NF_LAZY)==0))
    12221222  {
    1223     BITSET save=test;
    1224     test &= ~Sy_bit(OPT_INTSTRATEGY);
    12251223    if (TEST_OPT_PROT) { PrintS("t"); mflush(); }
    1226     p = redtailBba(p,max_ind,strat,(lazyReduce & KSTD_NF_NONORM)==0);
    1227     test=save;
     1224    #ifdef HAVE_RINGS
     1225    if (rField_is_Ring())
     1226    {
     1227      p = redtailBba_Z(p,max_ind,strat);
     1228    }
     1229    else
     1230    #endif
     1231    {
     1232      BITSET save=test;
     1233      test &= ~Sy_bit(OPT_INTSTRATEGY);
     1234      p = redtailBba(p,max_ind,strat,(lazyReduce & KSTD_NF_NONORM)==0);
     1235      test=save;
     1236    }
    12281237  }
    12291238  /*- release temp data------------------------------- -*/
     
    12771286  /*- compute------------------------------------------------------- -*/
    12781287  res=idInit(IDELEMS(q),si_max(q->rank,F->rank));
     1288  BITSET save=test;
     1289  test &= ~Sy_bit(OPT_INTSTRATEGY);
    12791290  for (i=IDELEMS(q)-1; i>=0; i--)
    12801291  {
     
    12851296      if ((p!=NULL)&&((lazyReduce & KSTD_NF_LAZY)==0))
    12861297      {
    1287         BITSET save=test;
    1288         test &= ~Sy_bit(OPT_INTSTRATEGY);
    12891298        if (TEST_OPT_PROT) { PrintS("t"); mflush(); }
    1290         p = redtailBba(p,max_ind,strat,(lazyReduce & KSTD_NF_NONORM)==0);
    1291         test=save;
     1299        #ifdef HAVE_RINGS
     1300        if (rField_is_Ring())
     1301        {
     1302          p = redtailBba_Z(p,max_ind,strat);
     1303        }
     1304        else
     1305        #endif
     1306        {
     1307          p = redtailBba(p,max_ind,strat,(lazyReduce & KSTD_NF_NONORM)==0);
     1308        }
    12921309      }
    12931310      res->m[i]=p;
     
    12971314  }
    12981315  /*- release temp data------------------------------- -*/
     1316  test=save;
    12991317  omfree(strat->sevS);
    13001318  omfree(strat->ecartS);
Note: See TracChangeset for help on using the changeset viewer.