Changeset 5ecf042 in git for Singular/kutil.cc


Ignore:
Timestamp:
Dec 19, 2000, 7:31:48 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7022cd9d4b1177139f7d205efecb93fa232cc319
Parents:
b9d57bdc42ac80a762bda08cdb917d46e9f35616
Message:
* LIB: some categoy changes
* libparse: added -c option
* reimplementation of reing dpenendent options (put to ring->options)


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

Legend:

Unmodified
Added
Removed
  • Singular/kutil.cc

    rb9d57b r5ecf042  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.86 2000-12-18 17:47:18 obachman Exp $ */
     4/* $Id: kutil.cc,v 1.87 2000-12-19 18:31:41 obachman Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    647647    }
    648648  }
    649   r_assume(L->max == NULL);
    650649  if (L->p1 == NULL)
    651650  {
     
    776775        return dReportError("L[%d].i_r2 out of sync", i);
    777776    }
     777    if (strat->L[i].i_r != -1)
     778      return dReportError("L[%d].i_r out of sync", i);
    778779  }
    779780  return TRUE;
     
    39913992    for (i=strat->sl; i>0; i--)
    39923993    {
    3993       //if (strat->interpt) test_int_std(strat->kIdeal);
    3994       strat->S[i] = redtailBba(strat->S[i],i-1,strat);
     3994      TObject* T_j = strat->s_2_t(i);
     3995      if (T_j != NULL)
     3996      {
     3997        assume(strat->S[i] == T_j->p);
     3998        strat->S[i] = redtailBba(T_j, i-1, strat);
     3999        assume(strat->S[i] == T_j->p);
     4000        if (strat->redTailChange && strat->tailRing != currRing)
     4001        {
     4002          if (T_j->max != NULL) p_LmFree(T_j->max, strat->tailRing);
     4003          if (pNext(T_j->p) != NULL)
     4004            T_j->max = p_GetMaxExpP(pNext(T_j->p), strat->tailRing);
     4005          else
     4006            T_j->max = NULL;
     4007        }
     4008      }
     4009      else
     4010        strat->S[i] = redtailBba(strat->S[i],i-1,strat);
     4011
    39954012      if (TEST_OPT_INTSTRATEGY)
    39964013      {
     
    41304147 
    41314148  if (L != NULL && L->tailRing != new_tailRing)
    4132     L->ShallowCopyDelete(new_tailRing, p_shallow_copy_delete);
    4133   if (T != NULL && T->tailRing != new_tailRing)
     4149  {
     4150    if (L->i_r < 0)   
     4151      L->ShallowCopyDelete(new_tailRing, p_shallow_copy_delete);
     4152    else
     4153    {
     4154      assume(L->i_r <= strat->tl);
     4155      TObject* t_l = strat->R[L->i_r];
     4156      assume(t_l != NULL);
     4157      L->tailRing = new_tailRing;
     4158      L->p = t_l->p;
     4159      L->t_p = t_l->t_p;
     4160      L->max = t_l->max;
     4161    }
     4162  }
     4163     
     4164  if (T != NULL && T->tailRing != new_tailRing && T->i_r < 0)
    41344165    T->ShallowCopyDelete(new_tailRing, new_tailBin, p_shallow_copy_delete);
    41354166   
     
    41724203}
    41734204
    4174 #endif // KUTIL_CC
    41754205
    41764206#if 0
     
    43254355
    43264356#endif
     4357
     4358#endif // KUTIL_CC
Note: See TracChangeset for help on using the changeset viewer.