Changeset 21c6b3 in git


Ignore:
Timestamp:
Mar 30, 2011, 5:01:50 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4f0f42c2c9f0111e4c4acdd825e2e7922154ad28
Parents:
bb6c8a5b9ffdd315338acd9b7d6eb2fd40522955
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-30 17:01:50+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:16+01:00
Message:
FIX: p_GetMaxExp
File:
1 edited

Legend:

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

    rbb6c8a r21c6b3  
    5353 *
    5454 ***************************************************************/
    55 // return the maximal exponent of p in form of the maximal long var
    56 unsigned long p_GetMaxExpL(poly p, const ring r, unsigned long l_max = 0);
    57 // return monomial r such that GetExp(r,i) is maximum of all
    58 // monomials in p; coeff == 0, next == NULL, ord is not set
    59 poly p_GetMaxExpP(poly p, ring r);
    60 
    6155int p_MinDeg(poly p,intvec *w, const ring R);
    6256
     
    698692 ***************************************************************/
    699693
    700 
    701 static inline unsigned long p_GetMaxExp(const poly p, const ring r)
    702 {
    703   return p_GetMaxExp(p_GetMaxExpL(p, r), r);
    704 }
     694/// return the maximal exponent of p in form of the maximal long var
     695unsigned long p_GetMaxExpL(poly p, const ring r, unsigned long l_max = 0);
     696
     697/// return monomial r such that GetExp(r,i) is maximum of all
     698/// monomials in p; coeff == 0, next == NULL, ord is not set
     699poly p_GetMaxExpP(poly p, ring r);
    705700
    706701static inline unsigned long p_GetMaxExp(const unsigned long l, const ring r)
     
    725720  }
    726721  return max;
     722}
     723
     724static inline unsigned long p_GetMaxExp(const poly p, const ring r)
     725{
     726  return p_GetMaxExp(p_GetMaxExpL(p, r), r);
    727727}
    728728
Note: See TracChangeset for help on using the changeset viewer.