Changeset 1c0d95 in git


Ignore:
Timestamp:
Jun 28, 2020, 3:34:10 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3ecc88f45ef1313dc0a3f042230c616aec77f588
Parents:
78242cd9e20b3bbe063e29767e95ac64f65545d6
Message:
fix: rOpposite for lp/rp
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • Tst/Short/ok_s.lst

    r78242cd r1c0d95  
    1717bug_newstruct3
    1818bug_normalize
     19bug_opposite
    1920bug_OrdSgn
    2021bug_printres
  • libpolys/polys/monomials/ring.cc

    r78242cd r1c0d95  
    52375237{
    52385238  /* works for commutative/Plural; need to be changed for Letterplace */
    5239   /* Letterpace: each block of vars needs to be reverted on it own */ 
     5239  /* Letterpace: each block of vars needs to be reverted on it own */
    52405240  int i2=(l+1)/2;
    52415241  for(int j=0; j<=i2; j++)
     
    52645264#endif
    52655265
    5266   ring r = rCopy0(src,FALSE); /* qideal will be deleted later on!!! */
     5266  ring r = rCopy0(src,FALSE);
     5267  if (src->qideal != NULL)
     5268  {
     5269    id_Delete(&(r->qideal), src);
     5270  }
    52675271
    52685272  // change vars v1..vN -> vN..v1
     
    53415345//  }
    53425346  // Change order/block structures (needed for rPrint, rAdd etc.)
    5343  
     5347
    53445348  int j=0;
    53455349  int l=rBlocks(src);
    53465350  if ( ! rIsLPRing(src) )
    5347   { 
     5351  {
    53485352    // ie Plural or commutative
    53495353    for(i=0; src->order[i]!=0; i++)
     
    53605364          r->block0[j]=rOppVar(r, src->block1[i]);
    53615365          r->block1[j]=rOppVar(r, src->block0[i]);
    5362           break;
     5366          j++;break;
    53635367        case ringorder_rp: /* rp -> lp */
    53645368          r->order[j]=ringorder_lp;
    53655369          r->block0[j]=rOppVar(r, src->block1[i]);
    53665370          r->block1[j]=rOppVar(r, src->block0[i]);
    5367           break;
     5371          j++;break;
    53685372        case ringorder_dp: /* dp -> a(1..1),ls */
    53695373        {
     
    54825486  } /* end if (!rIsLPRing(src)) */
    54835487  if (rIsLPRing(src))
    5484   { 
     5488  {
    54855489    // applies to Letterplace only
    54865490    // Letterplace conventions: dp<->Dp, lp<->rp
     
    55005504          r->block0[j]=rOppVar(r, src->block1[i]);
    55015505          r->block1[j]=rOppVar(r, src->block0[i]);
    5502           break;
     5506          j++;break;
    55035507        case ringorder_rp: /* rp -> lp */
    55045508          r->order[j]=ringorder_lp;
    55055509          r->block0[j]=rOppVar(r, src->block1[i]);
    55065510          r->block1[j]=rOppVar(r, src->block0[i]);
    5507           break;
     5511          j++;break;
    55085512        case ringorder_dp: /* dp -> Dp */
    55095513        {
     
    55115515          r->block0[j]=rOppVar(r, src->block1[i]);
    55125516          r->block1[j]=rOppVar(r, src->block0[i]);
     5517          j++;break;
    55135518        }
    55145519        case ringorder_Dp: /* Dp -> dp*/
     
    55175522          r->block0[j]=rOppVar(r, src->block1[i]);
    55185523          r->block1[j]=rOppVar(r, src->block0[i]);
     5524          j++;break;
    55195525        }
    55205526        // not clear how to do:
     
    56075613  if (src->qideal != NULL)
    56085614  {
    5609     id_Delete(&(r->qideal), r);
    5610 
    56115615#ifdef HAVE_PLURAL
    56125616    r->qideal = idOppose(src, src->qideal, r); // into the currRing: r
Note: See TracChangeset for help on using the changeset viewer.