Changeset 5602268 in git


Ignore:
Timestamp:
Feb 20, 2013, 5:47:42 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
f769fd0fbf5b7ea0f1ffb3a9380350de652caada
Parents:
00d2a493f2a6183ad80d8757fa1e343105c497a7
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-20 17:47:42+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-20 18:58:27+01:00
Message:
Moved p_IsOne  to p_polys
Location:
libpolys/polys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r00d2a4 r5602268  
    6666#define MULT_COMPLEXITY 2   /**< complexity increase due to * and / */
    6767#define BOUND_COMPLEXITY 10   /**< maximum complexity of a number */
    68 
    69 
    70 static inline BOOLEAN p_IsOne(const poly p, const ring R)
    71 {
    72   assume( p_Test(p, R) );
    73   return (p_IsConstant(p, R) && n_IsOne(p_GetCoeff(p, R), R->cf));
    74 }
    7568
    7669/// TRUE iff num. represents 1
  • libpolys/polys/monomials/p_polys.h

    r00d2a4 r5602268  
    17741774static inline BOOLEAN p_IsConstant(const poly p, const ring r)
    17751775{
     1776  assume( p_Test(p, r) );
    17761777  if (p == NULL) return TRUE;
    17771778  return (pNext(p)==NULL) && p_LmIsConstant(p, r);
     1779}
     1780
     1781/// either poly(1)  or gen(k)?!
     1782static inline BOOLEAN p_IsOne(const poly p, const ring R)
     1783{
     1784  assume( p_Test(p, R) );
     1785  return (p_IsConstant(p, R) && n_IsOne(p_GetCoeff(p, R), R->cf));
    17781786}
    17791787
Note: See TracChangeset for help on using the changeset viewer.