Changeset a7ee69 in git
- Timestamp:
- Nov 8, 2010, 5:55:06 PM (13 years ago)
- Branches:
- (u'spielwiese', 'd1ba061a762c62d3a25159d8da8b6e17332291fa')
- Children:
- ac0bd60e1d213f4d9b7e9b2c6e9dd526c82bac2d
- Parents:
- fb4075bf0613cccede0552d05c1b4ee37a7f6530
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-11-08 17:55:06+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:36+01:00
- Location:
- polys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
polys/monomials/p_polys.cc
rfb4075b ra7ee69 1352 1352 } 1353 1353 1354 /*2 1355 * returns the LCM of the head terms of a and b in *m 1356 */ 1357 void p_Lcm(poly a, poly b, poly m, const ring r) 1358 { 1359 int i; 1360 for (i=rVar(r); i; i--) 1361 { 1362 p_SetExp(m,i, si_max( p_GetExp(a,i,r), p_GetExp(b,i,r)),r); 1363 } 1364 p_SetComp(m, si_max(p_GetComp(a,r), p_GetComp(b,r)),r); 1365 /* Don't do a pSetm here, otherwise hres/lres chockes */ 1366 } 1367 1354 1368 /*************************************************************** 1355 1369 * -
polys/monomials/p_polys.h
rfb4075b ra7ee69 1757 1757 poly p_Divide(poly a, poly b, const ring r); 1758 1758 poly p_DivideM(poly a, poly b, const ring r); 1759 void p_Lcm(poly a, poly b, poly m, const ring r); 1759 1760 #endif // P_POLYS_H 1760 1761 -
polys/polys.cc
rfb4075b ra7ee69 126 126 #endif 127 127 128 /*2129 * returns the LCM of the head terms of a and b in *m130 */131 void pLcm(poly a, poly b, poly m)132 {133 int i;134 for (i=pVariables; i; i--)135 {136 pSetExp(m,i, si_max( pGetExp(a,i), pGetExp(b,i)));137 }138 pSetComp(m, si_max(pGetComp(a), pGetComp(b)));139 /* Don't do a pSetm here, otherwise hres/lres chockes */140 }141 142 128 BOOLEAN _p_Test(poly p, ring r, int level); 143 129 -
polys/polys.h
rfb4075b ra7ee69 290 290 291 291 #define pDivide(a,b) p_Divide(a,b,currRing) 292 293 void pLcm(poly a, poly b, poly m); 292 #define pLcm(a,b,m) p_Lcm(a,b,m,currRing) 293 294 294 poly pDiff(poly a, int k); 295 295 poly pDiffOp(poly a, poly b,BOOLEAN multiply);
Note: See TracChangeset
for help on using the changeset viewer.