Changeset ab9b40 in git


Ignore:
Timestamp:
Jul 17, 2001, 11:42:26 AM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
0b5f43b241273a85beeb00e27706018ee704a303
Parents:
6a81f86c715f2c701a838ba9632de78d778e28c6
Message:
*hannes: ported 2-0-patches: mixed order+HEcke, ill order defs


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

Legend:

Unmodified
Added
Removed
  • Singular/kutil.cc

    r6a81f8 rab9b40  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.100 2001-04-05 15:41:07 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.101 2001-07-17 09:42:25 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    292292
    293293  strat->kHEdgeFound=FALSE;
    294   if (pLexOrder)
     294  if (pLexOrder || currRing->MixedOrder)
    295295  {
    296296    return;
     
    14771477*superfluous elements in S will be deleted
    14781478*/
    1479 void enterpairs (poly h,int k,int ecart,int pos,kStrategy strat, int atR = -1)
     1479void enterpairs (poly h,int k,int ecart,int pos,kStrategy strat, int atR)
    14801480{
    14811481  int j=pos;
    14821482
    14831483  initenterpairs(h,k,ecart,0,strat, atR);
    1484   if ((!strat->fromT)
     1484  if ( (!strat->fromT)
    14851485  && ((strat->syzComp==0)
    14861486    ||(pGetComp(h)<=strat->syzComp)))
     
    36753675* puts p to the set T at position atT
    36763676*/
    3677 void enterT(LObject p, kStrategy strat, int atT = -1)
     3677void enterT(LObject p, kStrategy strat, int atT)
    36783678{
    36793679  int i;
  • Singular/ring.cc

    r6a81f8 rab9b40  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.165 2001-05-22 14:23:31 Singular Exp $ */
     4/* $Id: ring.cc,v 1.166 2001-07-17 09:42:26 Singular Exp $ */
    55
    66/*
     
    356356          case ringorder_a:
    357357            R->block0[n] = last+1;
    358             R->block1[n] = last + iv->length() - 2;
     358            R->block1[n] = min(last+iv->length()-2 , R->N);
    359359            R->wvhdl[n] = (int*)omAlloc((iv->length()-1)*sizeof(int));
    360360            for (i=2; i<iv->length(); i++)
     
    27142714* sets pMixedOrder and pComponentOrder for orderings with more than one block
    27152715* block of variables (ip is the block number, o_r the number of the ordering)
     2716* o is the position of the orderingering in r
    27162717*/
    2717 static void rHighSet(ring r, int o_r)
     2718static void rHighSet(ring r, int o_r, int o)
    27182719{
    27192720  switch(o_r)
     
    27322733    case ringorder_ds:
    27332734    case ringorder_Ds:
     2735    case ringorder_s:
     2736      break;
    27342737    case ringorder_ws:
    27352738    case ringorder_Ws:
    2736     case ringorder_s:
     2739      {
     2740        int i;
     2741        for(i=r->block1[o]-r->block0[o];i>=0;i--)
     2742          if (r->wvhdl[o][i]<0) { r->MixedOrder=TRUE; break; }
     2743      }
    27372744      break;
    27382745    case ringorder_c:
     
    27592766  r->firstBlockEnds=block1[i];
    27602767  r->firstwv = wvhdl[i];
     2768  if ((order[i]== ringorder_ws) || (order[i]==ringorder_Ws))
     2769  {
     2770    int j;
     2771    for(j=block1[i]-r->block0[i];j>=0;j--)
     2772      if (r->firstwv[j]<0) { r->MixedOrder=TRUE; break; }
     2773  }
    27612774}
    27622775
     
    28712884    {
    28722885      i--;
    2873       rHighSet(r, order[i]);
     2886      rHighSet(r, order[i],i);
    28742887    }
    28752888    while (i != 0);
Note: See TracChangeset for help on using the changeset viewer.