Changeset 805d0b1 in git for libpolys/polys/monomials/p_polys.h
- Timestamp:
- Jul 17, 2012, 8:05:19 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c987db42cd2ec943b97ac5746c99892ceddf909c')
- Children:
- 98474f69bc5c570dd7cb85f5f8a0b2164abccb91
- Parents:
- 644f813f8a73f38c6448af263a3ee11e37731a67
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-17 20:05:19+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-17 21:33:55+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.h
r644f81 r805d0b1 34 34 #include <polys/nc/nc.h> 35 35 #endif 36 37 38 /***************************************************************39 *40 * Primitives for accessing and setting fields of a poly41 * poly must be != NULL42 *43 ***************************************************************/44 // next45 #define pNext(p) ((p)->next)46 #define pIter(p) ((p) = (p)->next)47 48 // coeff49 // #define pGetCoeff(p) ((p)->coef)50 /// return an alias to the leading coefficient of p51 /// assumes that p != NULL52 /// NOTE: not copy53 static inline number& pGetCoeff(poly p)54 {55 assume(p != NULL);56 return p->coef;57 }58 59 #define p_GetCoeff(p,r) pGetCoeff(p)60 //static inline number& p_GetCoeff(poly p, const ring r)61 //{62 // assume(r != NULL);63 // return pGetCoeff(p);64 //}65 66 67 68 //69 // deletes old coeff before setting the new one???70 #define pSetCoeff0(p,n) (p)->coef=(n)71 72 #define p_SetCoeff0(p,n,r) pSetCoeff0(p,n)73 74 #define __p_GetComp(p, r) (p)->exp[r->pCompIndex]75 #define p_GetComp(p, r) ((long) (r->pCompIndex >= 0 ? __p_GetComp(p, r) : 0))76 36 77 37 /***************************************************************
Note: See TracChangeset
for help on using the changeset viewer.