Changeset 5a3ae8 in git for libpolys/polys/pInline0.h
- Timestamp:
- Mar 23, 2011, 3:23:26 PM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/pInline0.h
re0d8d1 r5a3ae8 20 20 #include <polys/monomials/p_polys.h> 21 21 #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 PDEBUG28 poly q = p;29 int l = 0;30 #endif31 32 if (rOrd_SetCompRequiresSetm(r))33 {34 do35 {36 p_SetComp(p, i, r);37 p_SetmComp(p, r);38 #ifdef PDEBUG39 l++;40 #endif41 pIter(p);42 }43 while (p != NULL);44 }45 else46 {47 do48 {49 p_SetComp(p, i, r);50 #ifdef PDEBUG51 l++;52 #endif53 pIter(p);54 }55 while(p != NULL);56 }57 #ifdef PDEBUG58 p_Test(q, r);59 assume(l == pLength(q));60 #endif61 }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 }73 22 74 23 // returns minimal column number in the modul element a (or 0)
Note: See TracChangeset
for help on using the changeset viewer.