Changeset a7ee69 in git


Ignore:
Timestamp:
Nov 8, 2010, 5:55:06 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
Message:
moved pLcm to p_poly: p_Lcm
Location:
polys
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • polys/monomials/p_polys.cc

    rfb4075b ra7ee69  
    13521352}
    13531353
     1354/*2
     1355* returns the LCM of the head terms of a and b in *m
     1356*/
     1357void 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
    13541368/***************************************************************
    13551369 *
  • polys/monomials/p_polys.h

    rfb4075b ra7ee69  
    17571757poly      p_Divide(poly a, poly b, const ring r);
    17581758poly      p_DivideM(poly a, poly b, const ring r);
     1759void      p_Lcm(poly a, poly b, poly m, const ring r);
    17591760#endif // P_POLYS_H
    17601761
  • polys/polys.cc

    rfb4075b ra7ee69  
    126126#endif
    127127
    128 /*2
    129 * returns the LCM of the head terms of a and b in *m
    130 */
    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 
    142128BOOLEAN _p_Test(poly p, ring r, int level);
    143129
  • polys/polys.h

    rfb4075b ra7ee69  
    290290
    291291#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
    294294poly      pDiff(poly a, int k);
    295295poly      pDiffOp(poly a, poly b,BOOLEAN multiply);
Note: See TracChangeset for help on using the changeset viewer.