Changeset 0a7dbb8 in git


Ignore:
Timestamp:
May 31, 2003, 4:13:42 PM (21 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
6e365276f16e9011f5e59f6826818c488b3f568a
Parents:
3a218a195e51a92cd2ba37146f5129e3d85d99b5
Message:
*hannes: V-2-0 port


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

Legend:

Unmodified
Added
Removed
  • Singular/kutil.cc

    r3a218a r0a7dbb8  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.120 2003-05-26 13:09:34 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.121 2003-05-31 14:13:33 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    244244  int  i;
    245245  poly h;
     246
     247  if(currRing->OrdSgn != -1) return;
     248  if(TEST_OPT_CANCELUNIT) return;
     249
    246250  ring r = L->tailRing;
    247 
    248251  poly p = L->GetLmTailRing();
    249252
     
    29292932    else if (red_result < 0)
    29302933      PrintS(".");
    2931     else
     2934    if ((red_result > 0) || ((strat->Ll % 100)==99))
    29322935    {
    29332936      if (strat->Ll != *reduc && strat->Ll > 0)
     
    31953198  int   i,pos;
    31963199
    3197   if (Q!=NULL) i=IDELEMS(Q);
    3198   else i=0;
     3200  if (Q!=NULL) i=((IDELEMS(Q)+(setmaxTinc-1))/setmaxTinc)*setmaxTinc;
     3201  else i=setmaxT;
    31993202  i=((i+IDELEMS(F)+15)/16)*16;
    32003203  strat->ecartS=initec(i);
     
    33563359*tests if p.p=monomial*unit and cancels the unit
    33573360*/
    3358 void cancelunit1 (LObject* p,int index,kStrategy strat )
     3361void cancelunit1 (LObject* p,int *suc, int index,kStrategy strat )
    33593362{
    33603363  int k;
     
    33743377        (*p).ecart = 0;
    33753378        (*p).length = 1;
     3379        (*suc)=0;
    33763380        return;
    33773381      }
     
    35693573      for (i=0; i<=strat->sl; i++)
    35703574      {
    3571         if (((strat->fromQ==NULL) || (strat->fromQ[i]==0))
    3572         )
     3575        if ((strat->fromQ==NULL) || (strat->fromQ[i]==0))
     3576        {
    35733577          h.p = redtailBba(strat->S[i],i-1,strat);
     3578          if (TEST_OPT_INTSTRATEGY)
     3579          {
     3580            pCleardenom(h.p);// also does a pContent
     3581          }
     3582        }
    35743583        else
    35753584        {
     
    35953604    while (suc != -1)
    35963605    {
    3597       i=suc+1;
     3606      i=suc;
    35983607      while (i<=strat->sl)
    35993608      {
     
    36663675      }
    36673676      if ((strat->fromQ==NULL) || (strat->fromQ[i]==0))
    3668         cancelunit1(&h,strat->sl,strat);
     3677        cancelunit1(&h,&suc,strat->sl,strat);
    36693678      h.length = pLength(h.p);
    36703679      h.SetpFDeg();
     
    36733682      strat->S_2_R[i] = strat->tl;
    36743683    }
     3684    if (suc!= -1) updateS(toT,strat);
    36753685  }
    36763686  if (redSi!=NULL) pDeleteLm(&redSi);
  • Singular/tok.h

    r3a218a r0a7dbb8  
    77* ABSTRACT: tokens, types for interpreter; general macros
    88*/
    9 /* $Id: tok.h,v 1.54 2002-12-13 16:19:15 Singular Exp $ */
     9/* $Id: tok.h,v 1.55 2003-05-31 14:13:42 Singular Exp $ */
    1010
    1111#ifndef MYYSTYPE
     
    186186#define V_NSB       14
    187187#define V_CONTENTSB 15
     188#define V_CANCELUNIT 16
    188189#define V_DEG_STOP  31
    189190
     
    236237#define TEST_OPT_OLDSTD            BTEST1(OPT_OLDSTD)
    237238#define TEST_OPT_CONTENTSB         BVERBOSE(V_CONTENTSB)
     239#define TEST_OPT_CANCELUNIT        BVERBOSE(V_CANCELUNIT)
    238240
    239241#define TEST_VERB_NSB              BVERBOSE(V_NSB)
Note: See TracChangeset for help on using the changeset viewer.