Ignore:
Timestamp:
Mar 23, 2011, 3:23:26 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
a22a8227b35ff5ff3ca67bc9be266ae7f0f60380
Parents:
e0d8d1b3734f485420a004dfc86eb0b5c5cc62e9
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-03-23 15:23:26+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:10+01:00
Message:
p_SetCompP -> p_polys.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.h

    re0d8d1 r5a3ae8  
    330330
    331331// sets component of poly a to i, returns length of a
    332 static inline   void p_SetCompP(poly a, int i, ring r);
     332static inline   void p_SetCompP(poly a, int i, ring r)
     333{
     334  if (p != NULL)
     335  {
     336#ifdef PDEBUG
     337    poly q = p;
     338    int l = 0;
     339#endif
     340
     341    if (rOrd_SetCompRequiresSetm(r))
     342    {
     343      do
     344      {
     345        p_SetComp(p, i, r);
     346        p_SetmComp(p, r);
     347#ifdef PDEBUG
     348        l++;
     349#endif
     350        pIter(p);
     351      }
     352      while (p != NULL);
     353    }
     354    else
     355    {
     356      do
     357      {
     358        p_SetComp(p, i, r);
     359#ifdef PDEBUG
     360        l++;
     361#endif
     362        pIter(p);
     363      }
     364      while(p != NULL);
     365    }
     366#ifdef PDEBUG
     367    p_Test(q, r);
     368    assume(l == pLength(q));
     369#endif
     370  }
     371}
     372
    333373static inline   void p_SetCompP(poly a, int i, ring lmRing, ring tailRing);
     374{
     375  if (p != NULL)
     376  {
     377    p_SetComp(p, i, lmRing);
     378    p_SetmComp(p, lmRing);
     379    p_SetCompP(pNext(p), i, tailRing);
     380  }
     381}
    334382
    335383// returns maximal column number in the modul element a (or 0)
Note: See TracChangeset for help on using the changeset viewer.