Changeset afa93a in git
- Timestamp:
- Apr 27, 2011, 1:56:45 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 5c97e10bb44ba586b18c55984cb4187d64f2d618
- Parents:
- b5b9dc3fbf31410fce6496f383303df8ed1e5461
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-27 13:56:45+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:30+01:00
- Location:
- libpolys/polys/monomials
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.h
rb5b9dc rafa93a 52 52 53 53 // coeff 54 #define pGetCoeff(p) ((p)->coef) 55 // deletes old coeff before setting the new one 54 // #define pGetCoeff(p) ((p)->coef) 55 static inline number& pGetCoeff(poly p) 56 { 57 assume(p != NULL); 58 return p->coef; 59 } 60 61 // #define p_GetCoeff(p,r) pGetCoeff(p) 62 static inline number& p_GetCoeff(poly p, const ring r) 63 { 64 assume(p != NULL); 65 assume(r != NULL); 66 return p->coef; 67 } 68 69 70 71 // 72 // deletes old coeff before setting the new one??? 56 73 #define pSetCoeff0(p,n) (p)->coef=(n) 57 #define p_GetCoeff(p,r) pGetCoeff(p) 74 58 75 #define p_SetCoeff0(p,n,r) pSetCoeff0(p,n) 59 76 -
libpolys/polys/monomials/ring.cc
rb5b9dc rafa93a 395 395 for (j = i+1; j<=r->N; j++) 396 396 { 397 nl = n_IsOne(p_GetCoeff(MATELEM(r->GetNC()->C,i,j),r ->GetNC()->basering), r->cf);397 nl = n_IsOne(p_GetCoeff(MATELEM(r->GetNC()->C,i,j),r), r->cf); 398 398 if ( (MATELEM(r->GetNC()->D,i,j)!=NULL) || (!nl) ) 399 399 {
Note: See TracChangeset
for help on using the changeset viewer.