Changeset d95cee in git for kernel


Ignore:
Timestamp:
Jul 17, 2009, 11:51:42 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
3c7278bb58cb6b216292adf91871509a8d8455da
Parents:
9446f84181f539db0f2689bb27e177084073a62f
Message:
*hannes: kInterRedBba/solve


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

Legend:

Unmodified
Added
Removed
  • kernel/kstd1.cc

    r9446f84 rd95cee  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd1.cc,v 1.53 2009-07-10 15:13:56 Singular Exp $ */
     4/* $Id: kstd1.cc,v 1.54 2009-07-17 09:51:42 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    323323      if (h->pTotalDeg()+h->ecart >= strat->tailRing->bitmask)
    324324      {
    325         strat->overflow=TRUE;
     325        strat->overflow=TRUE;
    326326        //Print("OVERFLOW in redEcart d=%ld, max=%ld",d,strat->tailRing->bitmask);
    327         h->GetP();
    328         at = strat->posInL(strat->L,strat->Ll,h,strat);
    329         enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);
    330         h->Clear();
     327        h->GetP();
     328        at = strat->posInL(strat->L,strat->Ll,h,strat);
     329        enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);
     330        h->Clear();
    331331        return -1;
    332332      }
     
    454454        if (h->pTotalDeg()+h->ecart >= strat->tailRing->bitmask)
    455455        {
    456           strat->overflow=TRUE;
     456          strat->overflow=TRUE;
    457457          //Print("OVERFLOW in redFirst d=%ld, max=%ld",d,strat->tailRing->bitmask);
    458           h->GetP();
    459           at = strat->posInL(strat->L,strat->Ll,h,strat);
    460           enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);
    461           h->Clear();
     458          h->GetP();
     459          at = strat->posInL(strat->L,strat->Ll,h,strat);
     460          enterL(&strat->L,&strat->Ll,&strat->Lmax,*h,at);
     461          h->Clear();
    462462          return -1;
    463463        }
     
    16651665  if (i<=kModW->length())
    16661666    return o+(*kModW)[i-1];
    1667   return o; 
     1667  return o;
    16681668}
    16691669long kHomModDeg(poly p, ring r)
     
    22732273    if (strat->Ll > lrmax) lrmax =strat->Ll;/*stat.*/
    22742274    #ifdef KDEBUG
    2275       #ifdef HAVE_RINGS
    2276         if (TEST_OPT_DEBUG) PrintS("--- next step ---\n");
    2277       #endif
    22782275      if (TEST_OPT_DEBUG) messageSets(strat);
    22792276    #endif
     
    23542351      if (strat->sl>srmax) srmax = strat->sl;
    23552352      if (pos<strat->sl)
    2356         need_retry++;
     2353      {
     2354        // move all "larger" elements fromS to L
     2355        // remove them from T
     2356        int ii=pos+1;
     2357        for(;ii<=strat->sl;ii++)
     2358        {
     2359          LObject h;
     2360          memset(&h,0,sizeof(h));
     2361          h.tailRing=strat->tailRing;
     2362          h.p=strat->S[ii]; strat->S[ii]=NULL;
     2363          strat->initEcart(&h);
     2364          h.sev=strat->sevS[ii];
     2365          int jj=strat->tl;
     2366          while (jj>=0)
     2367          {
     2368            if (strat->T[jj].p==h.p)
     2369            {
     2370              strat->T[jj].p=NULL;
     2371              if (jj<strat->tl)
     2372              {
     2373                memmove(&(strat->T[jj]),&(strat->T[jj+1]),
     2374                        (strat->tl-jj)*sizeof(strat->T[jj]));
     2375                memmove(&(strat->sevT[jj]),&(strat->sevT[jj+1]),
     2376                        (strat->tl-jj)*sizeof(strat->sevT[jj]));
     2377              }
     2378              strat->tl--;
     2379              break;
     2380            }
     2381            jj--;
     2382          }
     2383          int lpos=strat->posInL(strat->L,strat->Ll,&h,strat);
     2384          enterL(&strat->L,&strat->Ll,&strat->Lmax,h,lpos);
     2385        }
     2386        strat->sl=pos;
     2387      }
    23572388    }
    23582389
     
    23602391    memset(&(strat->P), 0, sizeof(strat->P));
    23612392#endif
    2362     kTest_TS(strat);
     2393    //kTest_TS(strat);: i_r out of sync in kInterRedBba, but not used!
    23632394  }
    23642395#ifdef KDEBUG
     
    24132444    return kInterRedOld(F,Q);
    24142445
     2446    //return kInterRedOld(F,Q);
     2447
    24152448  BITSET save=test;
    24162449  //test|=Sy_bit(OPT_NOT_SUGAR);
  • kernel/kstd2.cc

    r9446f84 rd95cee  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.97 2009-07-13 16:36:35 Singular Exp $ */
     4/* $Id: kstd2.cc,v 1.98 2009-07-17 09:51:42 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
     
    10001000    #ifdef KDEBUG
    10011001      loop_count++;
    1002       #ifdef HAVE_RINGS
    1003         if (TEST_OPT_DEBUG) PrintS("--- next step ---\n");
    1004       #endif
    10051002      if (TEST_OPT_DEBUG) messageSets(strat);
    10061003    #endif
Note: See TracChangeset for help on using the changeset viewer.