Changeset f7a3f2 in git


Ignore:
Timestamp:
Oct 4, 2012, 8:00:57 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
Message:
Minor changes to p_Lcm for (module) monomials
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    r095dee7 rf7a3f2  
    14831483#endif
    14841484
    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
     1486void p_Lcm(const poly a, const poly b, poly m, const ring r)
     1487{
     1488  for (int i=rVar(r); i; --i)
    14931489    p_SetExp(m,i, si_max( p_GetExp(a,i,r), p_GetExp(b,i,r)),r);
    1494   }
     1490 
    14951491  p_SetComp(m, si_max(p_GetComp(a,r), p_GetComp(b,r)),r);
    14961492  /* Don't do a pSetm here, otherwise hres/lres chockes */
  • libpolys/polys/monomials/p_polys.h

    r095dee7 rf7a3f2  
    18171817poly      p_DivideM(poly a, poly b, const ring r);
    18181818poly      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
     1821void p_Lcm(const poly a, const poly b, poly m, const ring r);
     1822
    18201823poly      p_Diff(poly a, int k, const ring r);
    18211824poly      p_DiffOp(poly a, poly b,BOOLEAN multiply, const ring r);
Note: See TracChangeset for help on using the changeset viewer.