Changeset f7a3f2 in git
- Timestamp:
- Oct 4, 2012, 8:00:57 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 9f6cc091f81a4d6c75b4696ae3e84bc53e419051
- Parents:
- 095dee7384980b4721524a28443756f110c5faa7
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-10-04 20:00:57+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-10-05 18:15:04+02:00
- Location:
- libpolys/polys/monomials
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
r095dee7 rf7a3f2 1483 1483 #endif 1484 1484 1485 /*2 1486 * returns the LCM of the head terms of a and b in *m 1487 */ 1488 void p_Lcm(poly a, poly b, poly m, const ring r) 1489 { 1490 int i; 1491 for (i=rVar(r); i; i--) 1492 { 1485 // returns the LCM of the head terms of a and b in *m 1486 void p_Lcm(const poly a, const poly b, poly m, const ring r) 1487 { 1488 for (int i=rVar(r); i; --i) 1493 1489 p_SetExp(m,i, si_max( p_GetExp(a,i,r), p_GetExp(b,i,r)),r); 1494 }1490 1495 1491 p_SetComp(m, si_max(p_GetComp(a,r), p_GetComp(b,r)),r); 1496 1492 /* Don't do a pSetm here, otherwise hres/lres chockes */ -
libpolys/polys/monomials/p_polys.h
r095dee7 rf7a3f2 1817 1817 poly p_DivideM(poly a, poly b, const ring r); 1818 1818 poly p_Div_nn(poly p, const number n, const ring r); 1819 void p_Lcm(poly a, poly b, poly m, const ring r); 1819 1820 // returns the LCM of the head terms of a and b in *m 1821 void p_Lcm(const poly a, const poly b, poly m, const ring r); 1822 1820 1823 poly p_Diff(poly a, int k, const ring r); 1821 1824 poly p_DiffOp(poly a, poly b,BOOLEAN multiply, const ring r);
Note: See TracChangeset
for help on using the changeset viewer.