Ignore:
Timestamp:
Sep 22, 2015, 7:58:09 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
67e5ab0da2ad921df018e78f9e74488dfa49f81f725efa2b691355a6799c770abbf272ad733020b0
Parents:
43baf487c88de3795e5280940c8769982e610f21
Message:
rAssure_SyzOrder (allow order (c,..) for syzComp orderings)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    r43baf48 rec3d9a  
    43794379// had already this property
    43804380//
     4381ring rAssure_SyzOrder(const ring r, BOOLEAN complete)
     4382{
     4383  if ( r->order[0] == ringorder_c ) return r;
     4384  return rAssure_SyzComp(r,complete);
     4385}
    43814386ring rAssure_SyzComp(const ring r, BOOLEAN complete)
    43824387{
     
    44294434#endif
    44304435
    4431 
    44324436#ifdef HAVE_PLURAL
    44334437    ring old_ring = r;
     
    44584462#endif
    44594463  }
    4460 
    44614464  return res;
    44624465}
     
    46774680  if (new_r_1 != new_r && new_r_1 != old_r) rDelete(new_r_1);
    46784681
    4679    rComplete(new_r, 1);
     4682  rComplete(new_r, TRUE);
    46804683#ifdef HAVE_PLURAL
    4681    if (rIsPluralRing(old_r))
    4682    {
    4683        if ( nc_rComplete(old_r, new_r, false) ) // no qideal!
    4684        {
     4684  if (rIsPluralRing(old_r))
     4685  {
     4686    if ( nc_rComplete(old_r, new_r, false) ) // no qideal!
     4687    {
    46854688# ifndef SING_NDEBUG
    4686           WarnS("error in nc_rComplete"); // cleanup?      rDelete(res);       return r;  // just go on...?
     4689      WarnS("error in nc_rComplete"); // cleanup?      rDelete(res);       return r;  // just go on...?
    46874690# endif
    4688        }
    4689    }
     4691    }
     4692  }
    46904693#endif
    46914694
    46924695///?    rChangeCurrRing(new_r);
    4693    if (old_r->qideal != NULL)
    4694    {
    4695       new_r->qideal = idrCopyR(old_r->qideal, old_r, new_r);
    4696    }
     4696  if (old_r->qideal != NULL)
     4697  {
     4698    new_r->qideal = idrCopyR(old_r->qideal, old_r, new_r);
     4699  }
    46974700
    46984701#ifdef HAVE_PLURAL
    4699    if( rIsPluralRing(old_r) )
    4700      if( nc_SetupQuotient(new_r, old_r, true) )
    4701        {
     4702  if( rIsPluralRing(old_r) )
     4703    if( nc_SetupQuotient(new_r, old_r, true) )
     4704    {
    47024705#ifndef SING_NDEBUG
    4703           WarnS("error in nc_SetupQuotient"); // cleanup?      rDelete(res);       return r;  // just go on...?
    4704 #endif
    4705        }
     4706      WarnS("error in nc_SetupQuotient"); // cleanup?      rDelete(res);       return r;  // just go on...?
     4707#endif
     4708    }
    47064709#endif
    47074710
    47084711#ifdef HAVE_PLURAL
    4709    assume((new_r->qideal==NULL) == (old_r->qideal==NULL));
    4710    assume(rIsPluralRing(new_r) == rIsPluralRing(old_r));
    4711    assume(rIsSCA(new_r) == rIsSCA(old_r));
    4712    assume(ncRingType(new_r) == ncRingType(old_r));
    4713 #endif
    4714 
    4715    rTest(new_r);
    4716    rTest(old_r);
    4717    return new_r;
     4712  assume((new_r->qideal==NULL) == (old_r->qideal==NULL));
     4713  assume(rIsPluralRing(new_r) == rIsPluralRing(old_r));
     4714  assume(rIsSCA(new_r) == rIsSCA(old_r));
     4715  assume(ncRingType(new_r) == ncRingType(old_r));
     4716#endif
     4717
     4718  rTest(new_r);
     4719  rTest(old_r);
     4720  return new_r;
    47184721}
    47194722
Note: See TracChangeset for help on using the changeset viewer.