Changeset 5a3ae8 in git for libpolys/polys/pInline0.h


Ignore:
Timestamp:
Mar 23, 2011, 3:23:26 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
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/pInline0.h

    re0d8d1 r5a3ae8  
    2020#include <polys/monomials/p_polys.h>
    2121#include <polys/monomials/ring.h>
    22 
    23 PINLINE0 void p_SetCompP(poly p, int i, ring r)
    24 {
    25   if (p != NULL)
    26   {
    27 #ifdef PDEBUG
    28     poly q = p;
    29     int l = 0;
    30 #endif
    31 
    32     if (rOrd_SetCompRequiresSetm(r))
    33     {
    34       do
    35       {
    36         p_SetComp(p, i, r);
    37         p_SetmComp(p, r);
    38 #ifdef PDEBUG
    39         l++;
    40 #endif
    41         pIter(p);
    42       }
    43       while (p != NULL);
    44     }
    45     else
    46     {
    47       do
    48       {
    49         p_SetComp(p, i, r);
    50 #ifdef PDEBUG
    51         l++;
    52 #endif
    53         pIter(p);
    54       }
    55       while(p != NULL);
    56     }
    57 #ifdef PDEBUG
    58     p_Test(q, r);
    59     assume(l == pLength(q));
    60 #endif
    61   }
    62 }
    63 
    64 PINLINE0 void p_SetCompP(poly p, int i, ring lmRing, ring tailRing)
    65 {
    66   if (p != NULL)
    67   {
    68     p_SetComp(p, i, lmRing);
    69     p_SetmComp(p, lmRing);
    70     p_SetCompP(pNext(p), i, tailRing);
    71   }
    72 }
    7322
    7423// returns minimal column number in the modul element a (or 0)
Note: See TracChangeset for help on using the changeset viewer.