Changeset 83552f in git


Ignore:
Timestamp:
Jan 28, 2000, 1:41:52 PM (24 years ago)
Author:
Thomas Siebert <siebert@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
526f34914e53401cb13d2d75c1f4cf26cbb4b7e8
Parents:
8786895d3dba9270ac0695c8bc822a76d248d43c
Message:
pComp0 removed


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

Legend:

Unmodified
Added
Removed
  • Singular/ideals.cc

    r878689 r83552f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.86 2000-01-28 09:45:56 Singular Exp $ */
     4/* $Id: ideals.cc,v 1.87 2000-01-28 12:37:28 siebert Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    386386* for idSort: compare a and b revlex inclusive module comp.
    387387*/
    388 static int pComp_RevLex(poly a, poly b)
    389 {
     388static int pComp_RevLex(poly a, poly b,BOOLEAN nolex)
     389{
     390 if (nolex) return pComp0(a,b);
    390391 int l=pVariables;
    391392 while ((l>0) && (pGetExp(a,l)==pGetExp(b,l))) l--;
     
    412413  BOOLEAN notFound;
    413414
    414   pCompProc oldComp=pComp0;
    415 
    416   if (!nolex) pComp0=pComp_RevLex;
    417 
    418415  for (i=0;i<IDELEMS(id);i++)
    419416  {
     
    439436      while ((newpos>=0) && (newpos<actpos) && (notFound))
    440437      {
    441         newcomp = pComp0(id->m[i],id->m[(*result)[newpos]]);
     438        newcomp = pComp_RevLex(id->m[i],id->m[(*result)[newpos]],nolex);
    442439        olddiff = diff;
    443440        if (diff>1)
     
    486483      if (newpos<0) newpos = 0;
    487484      if (newpos>actpos) newpos = actpos;
    488       while ((newpos<actpos) && (pComp0(id->m[i],id->m[(*result)[newpos]])==0))
     485      while ((newpos<actpos) && (pComp_RevLex(id->m[i],id->m[(*result)[newpos]],nolex)==0))
    489486        newpos++;
    490487      for (j=actpos;j>newpos;j--)
     
    497494  }
    498495  for (j=0;j<actpos;j++) (*result)[j]++;
    499   pComp0=oldComp;
    500496  return result;
    501497}
  • Singular/syz1.cc

    r878689 r83552f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz1.cc,v 1.51 1999-11-25 13:12:27 siebert Exp $ */
     4/* $Id: syz1.cc,v 1.52 2000-01-28 12:37:56 siebert Exp $ */
    55/*
    66* ABSTRACT: resolutions
     
    25402540  SSet sPairs;
    25412541  int * ord,*b0,*b1;
    2542   pSetmProc oldSetm=pSetm;
    2543   pCompProc oldComp0=pComp0;
    25442542
    25452543  assume(syzstr->syRing != NULL);
    25462544  rChangeCurrRing(syzstr->syRing, TRUE);
    25472545//Print("laeufts ");
    2548   pComp0 = syzcomp2dpc;
    25492546  syzstr->bucket = kBucketCreate();
    25502547  for (index=syzstr->length-1;index>0;index--)
     
    25982595    // maybe incoporate it into syReorder ??
    25992596  }
    2600   else
    2601   {
    2602     pSetm=oldSetm;
    2603     pComp0=oldComp0;
    2604   }
    26052597  tres = syReorder(tres,syzstr->length,syzstr,FALSE,syzstr->res);
    26062598  syKillEmptyEntres(tres,syzstr->length);
     
    26622654    return syzstr;
    26632655  }
    2664   pSetmProc oldSetm=pSetm;
    2665   pCompProc oldComp0=pComp0;
    26662656
    26672657  //crit = 0;
     
    26832673  }
    26842674  rChangeSComps(currcomponents, currShiftedComponents, arg->rank);
    2685   pComp0 = syzcomp2dpc;
    26862675/*--- initializes the data structures---------------*/
    26872676  syzstr->Tl = NewIntvec1(*length);
  • Singular/syz2.cc

    r878689 r83552f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: syz2.cc,v 1.11 1999-11-20 10:17:24 siebert Exp $ */
     4/* $Id: syz2.cc,v 1.12 2000-01-28 12:41:52 siebert Exp $ */
    55/*
    66* ABSTRACT: resolutions
     
    940940  SSet nextPairs;
    941941  ring origR = currRing;
    942   pSetmProc oldSetm=pSetm;
    943   pCompProc oldComp0=pComp0;
    944942  syStrategy syzstr=(syStrategy)Alloc0SizeOf(ssyStrategy);
    945943
Note: See TracChangeset for help on using the changeset viewer.