Changeset 2c52441 in git for libpolys/polys


Ignore:
Timestamp:
Aug 3, 2011, 8:29:27 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
b54a36e9b7e412f88420858a291fa64c90adfebe
Parents:
47a4c2d983f929beff4c8f6c6aff4ac93dda2323
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-03 20:29:27+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:14:24+01:00
Message:
FIX: last corrections for broken libpolys
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

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

    r47a4c2 r2c52441  
    44974497}
    44984498
    4499 static ring rAssure_CompLastBlock(ring r, BOOLEAN complete = TRUE)
     4499ring rAssure_CompLastBlock(ring r, BOOLEAN complete)
    45004500{
    45014501  int last_block = rBlocks(r) - 2;
     
    45524552
    45534553// Moves _c or _C ordering to the last place AND adds _s on the 1st place
    4554 ring rAssure_SyzComp_CompLastBlock(const ring r)
    4555 {
     4554ring rAssure_SyzComp_CompLastBlock(const ring r, BOOLEAN)
     4555{
     4556  rTest(r);
     4557   
    45564558  ring new_r_1 = rAssure_CompLastBlock(r, FALSE); // due to this FALSE - no completion!
    45574559  ring new_r = rAssure_SyzComp(new_r_1, FALSE); // new_r_1 is used only here!!!
    45584560
    4559   if (new_r != r)
    4560   {
    4561     ring old_r = r;
    4562     if (new_r_1 != new_r && new_r_1 != old_r) rDelete(new_r_1);
    4563     rComplete(new_r, 1);
     4561  if (new_r == r)
     4562     return r;
     4563     
     4564  ring old_r = r;
     4565  if (new_r_1 != new_r && new_r_1 != old_r) rDelete(new_r_1);
     4566     
     4567   rComplete(new_r, 1);
    45644568#ifdef HAVE_PLURAL
    4565     if (rIsPluralRing(old_r))
    4566     {
    4567       if ( nc_rComplete(old_r, new_r, false) ) // no qideal!
    4568       {
    4569 #ifndef NDEBUG
    4570         WarnS("error in nc_rComplete"); // cleanup?      rDelete(res);       return r;  // just go on...?
    4571 #endif
    4572         }
    4573     }
    4574     assume(rIsPluralRing(new_r) == rIsPluralRing(old_r));
    4575 #endif
     4569   if (rIsPluralRing(old_r))
     4570   {
     4571       if ( nc_rComplete(old_r, new_r, false) ) // no qideal!
     4572       {
     4573# ifndef NDEBUG
     4574          WarnS("error in nc_rComplete"); // cleanup?      rDelete(res);       return r;  // just go on...?
     4575# endif
     4576       }
     4577   }
     4578#endif
     4579     
    45764580///?    rChangeCurrRing(new_r);
    4577     if (old_r->qideal != NULL)
    4578     {
     4581   if (old_r->qideal != NULL)
     4582   {
    45794583      new_r->qideal = idrCopyR(old_r->qideal, old_r, new_r);
    45804584      //currQuotient = new_r->qideal;
     4585   }
    45814586
    45824587#ifdef HAVE_PLURAL
    4583       if( rIsPluralRing(old_r) )
    4584         if( nc_SetupQuotient(new_r, old_r, true) )
    4585         {
     4588   if( rIsPluralRing(old_r) )
     4589     if( nc_SetupQuotient(new_r, old_r, true) )
     4590       {
    45864591#ifndef NDEBUG
    4587           WarnS("error in nc_SetupQuotient"); // cleanup?      rDelete(res);       return r;  // just go on...?
    4588 #endif
    4589         }
    4590 #endif
    4591     }
     4592          WarnS("error in nc_SetupQuotient"); // cleanup?      rDelete(res);       return r;  // just go on...?
     4593#endif
     4594       }
     4595#endif
    45924596
    45934597#ifdef HAVE_PLURAL
    4594     assume((new_r->qideal==NULL) == (old_r->qideal==NULL));
    4595     assume(rIsPluralRing(new_r) == rIsPluralRing(old_r));
    4596     assume(rIsSCA(new_r) == rIsSCA(old_r));
    4597     assume(ncRingType(new_r) == ncRingType(old_r));
    4598 #endif
    4599 
    4600     rTest(new_r);
    4601     rTest(old_r);
    4602   }
    4603   return new_r;
     4598   assume((new_r->qideal==NULL) == (old_r->qideal==NULL));
     4599   assume(rIsPluralRing(new_r) == rIsPluralRing(old_r));
     4600   assume(rIsSCA(new_r) == rIsSCA(old_r));
     4601   assume(ncRingType(new_r) == ncRingType(old_r));
     4602#endif
     4603   
     4604   rTest(new_r);
     4605   rTest(old_r);
     4606   return new_r;
    46044607}
    46054608
  • libpolys/polys/monomials/ring.h

    r47a4c2 r2c52441  
    632632/// makes sure that c/C ordering is last ordering and SyzIndex is first
    633633ring   rAssure_SyzComp_CompLastBlock(const ring r, BOOLEAN complete = TRUE);
    634 ring   rAssure_TDeg(const ring r, int start_var, int end_var, int &pos, BOOLEAN complete = TRUE);
     634ring   rAssure_TDeg(const ring r, int start_var, int end_var, int &pos);
    635635
    636636/// return the max-comonent wchich has syzIndex i
Note: See TracChangeset for help on using the changeset viewer.