Changeset 805d0b1 in git for libpolys/polys/monomials
- Timestamp:
- Jul 17, 2012, 8:05:19 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- 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
- Location:
- libpolys/polys/monomials
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/monomials.h
r644f81 r805d0b1 10 10 11 11 #include <omalloc/omalloc.h> 12 #include <coeffs/coeffs.h> 13 #include <polys/monomials/ring.h> 12 13 struct snumber; 14 typedef struct snumber * number; 15 16 struct ip_sring; 17 typedef struct ip_sring * ring; 18 typedef struct ip_sring const * const_ring; 14 19 15 20 /*************************************************************** … … 21 26 struct spolyrec; 22 27 typedef struct spolyrec * poly; 28 23 29 struct spolyrec 24 30 { … … 27 33 unsigned long exp[1]; // make sure that exp is aligned 28 34 }; 35 36 /*************************************************************** 37 * 38 * Primitives for accessing and setting fields of a poly 39 * poly must be != NULL 40 * 41 ***************************************************************/ 42 // next 43 #define pNext(p) ((p)->next) 44 #define pIter(p) ((p) = (p)->next) 45 46 // coeff 47 // #define pGetCoeff(p) ((p)->coef) 48 /// return an alias to the leading coefficient of p 49 /// assumes that p != NULL 50 /// NOTE: not copy 51 static inline number& pGetCoeff(poly p) 52 { 53 assume(p != NULL); 54 return p->coef; 55 } 56 57 #define p_GetCoeff(p,r) pGetCoeff(p) 58 //static inline number& p_GetCoeff(poly p, const ring r) 59 //{ 60 // assume(r != NULL); 61 // return pGetCoeff(p); 62 //} 63 64 65 // 66 // deletes old coeff before setting the new one??? 67 #define pSetCoeff0(p,n) (p)->coef=(n) 68 #define p_SetCoeff0(p,n,r) pSetCoeff0(p,n) 69 70 71 #define __p_GetComp(p, r) (p)->exp[r->pCompIndex] 72 #define p_GetComp(p, r) ((long) (r->pCompIndex >= 0 ? __p_GetComp(p, r) : 0)) 73 29 74 30 75 /*************************************************************** -
libpolys/polys/monomials/p_polys.cc
r644f81 r805d0b1 24 24 #define TRANSEXT_PRIVATES 25 25 26 #include "ext_fields/transext.h" 27 #include "ext_fields/algext.h" 28 29 #include "weight.h" 30 #include "simpleideals.h" 31 32 #include "monomials/ring.h" 33 #include "monomials/p_polys.h" 26 #include <polys/ext_fields/transext.h> 27 #include <polys/ext_fields/algext.h> 28 29 #include <polys/weight.h> 30 #include <polys/simpleideals.h> 31 32 #include "ring.h" 33 #include "p_polys.h" 34 34 35 #include <polys/templates/p_MemCmp.h> 35 36 #include <polys/templates/p_MemAdd.h> -
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.