Changeset 0047ec in git


Ignore:
Timestamp:
Jul 29, 2008, 9:39:57 AM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
d42b51540898000893023b8114f71bad09c3c7c2
Parents:
4debf02efdbe8aa7eb872be69e638d78d3ffd3d7
Message:
hannes: ratGB fixes


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

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    r4debf02 r0047ec  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.19 2008-07-28 18:18:34 Singular Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.20 2008-07-29 07:39:57 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    198198  int pass = 0;
    199199  int j = 0;
    200   int c_j=-1, c_e=-1;
     200  int c_j=-1, c_e=-2;
    201201  poly c_p=NULL;
    202202  assume(strat->tailRing==currRing);
     
    256256        pass++;
    257257        j=0;
     258        c_j=-1; c_e=-2;
    258259      }
    259260      else
     
    262263      }
    263264    }
     265    // first try usal division
     266    if (p_LmDivisibleBy(strat->S[j],(*h).p,currRing))
     267    {
     268      if(TEST_OPT_DEBUG)
     269      {
     270        p_wrp(h->p,currRing); Print(" divisibly by S[%d]=",j);
     271        p_wrp(strat->S[j],currRing); PrintS(" e=-1\n");
     272      }
     273      if ((c_j==-1)||(c_e>=0))
     274      {
     275        c_e=-1; c_j=j;
     276        pDelete(&c_p);
     277        c_p = nc_CreateSpoly(pCopy(strat->S[c_j]),pCopy((*h).p), currRing);
     278      }
     279    }
     280    else
    264281    if (p_LmDivisibleByPart(strat->S[j],(*h).p,currRing,
    265282        currRing->real_var_start,currRing->real_var_end))
     
    10191036  nc_gr_initBba(F,strat);
    10201037  initBuchMoraPos(strat);
     1038  if (currRing->real_var_start>0)
     1039  {
     1040    strat->posInL=posInL0; // by pCmp of lcm
     1041  }
    10211042  /*set enterS, spSpolyShort, reduce, red, initEcart, initEcartPair*/
    10221043  /*Shdl=*/initBuchMora(F, Q,strat);
    10231044  strat->posInT=posInT110;
    1024   if (currRing->real_var_start>0)
    1025   {
    1026     strat->posInL=posInL0; // by pCmp of lcm
    1027   }
    10281045  srmax = strat->sl;
    10291046  reduc = olddeg = lrmax = 0;
Note: See TracChangeset for help on using the changeset viewer.