Changeset 0145cb4 in git
- Timestamp:
- Mar 23, 2011, 3:33:42 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 53ca3d94166d37edb1866aebb7bb4d2fc87ade0d
- Parents:
- c1a2b203c3a09a973199bdfed4fbfe7cdf3d220f
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-03-23 15:33:42+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:12+01:00
- Location:
- libpolys/polys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.h
rc1a2b20 r0145cb4 188 188 static inline BOOLEAN p_IsConstantComp(const poly p, const ring r); 189 189 static inline BOOLEAN p_IsConstant(const poly p, const ring r); 190 static inline BOOLEAN p_IsConstantPoly(const poly p, const ring r); 190 static inline BOOLEAN p_IsConstantPoly(const poly p, const ring r) 191 { 192 poly pp=p; 193 while(pp!=NULL) 194 { 195 if (! p_LmIsConstantComp(pp, r)) 196 return FALSE; 197 pIter(pp); 198 } 199 return TRUE; 200 } 201 191 202 192 203 // return TRUE if all monoms have the same component -
libpolys/polys/pInline0.h
rc1a2b20 r0145cb4 20 20 #include <polys/monomials/p_polys.h> 21 21 #include <polys/monomials/ring.h> 22 23 // returns minimal column number in the modul element a (or 0)24 BOOLEAN p_IsConstantPoly(const poly p, const ring r)25 {26 poly pp=p;27 while(pp!=NULL)28 {29 if (! p_LmIsConstantComp(pp, r))30 return FALSE;31 pIter(pp);32 }33 return TRUE;34 }35 22 36 23 /***************************************************************
Note: See TracChangeset
for help on using the changeset viewer.