Changeset de714a7 in git


Ignore:
Timestamp:
Sep 2, 2020, 11:13:41 AM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d1aba562c8f27c78d855590201241d36c3bef972
Parents:
40632978ce2cb84dae846b23a573eee15545abcc
Message:
Revert "removed: p_IsConstantPoly (->p_IsConstant)"

This reverts commit 08f2a1fadb363c59a659cf6741ae0a35a7aed204.
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r4063297 rde714a7  
    222222  {
    223223    poly n=DEN((fraction)(p));
    224     if(!p_IsConstant(n,r->cf->extRing))
     224    if(!p_IsConstantPoly(n,r->cf->extRing))
    225225    {
    226226      WarnS("denominator must be constant - ignoring it");
     
    343343  {
    344344    poly n=DEN((fraction)(p));
    345     if(!p_IsConstant(n,currRing->cf->extRing))
     345    if(!p_IsConstantPoly(n,currRing->cf->extRing))
    346346    {
    347347      WarnS("denominator must be constant - ignoring it");
  • kernel/polys.h

    r4063297 rde714a7  
    244244
    245245/// return TRUE if all monomials of p are constant
    246 #define   pIsConstantPoly(p)        p_IsConstant(p, currRing)
     246#define   pIsConstantPoly(p)        p_IsConstantPoly(p, currRing)
    247247
    248248#define   pIsPurePower(p)   p_IsPurePower(p, currRing)
  • libpolys/polys/clapconv.cc

    r4063297 rde714a7  
    325325
    326326    // test if denominator is constant
    327     if (!errorreported && !p_IsConstant(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
     327    if (!errorreported && !p_IsConstantPoly(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
    328328      WerrorS("conversion error: denominator!= 1");
    329329
     
    357357
    358358    // test if denominator is constant
    359     if (!p_IsConstant(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
     359    if (!p_IsConstantPoly(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
    360360      return FALSE;
    361361    pIter(p);
  • libpolys/polys/clapsing.cc

    r4063297 rde714a7  
    826826  p_Test(fac,r);
    827827  int e=0;
    828   if (!p_IsConstant(fac,r))
     828  if (!p_IsConstantPoly(fac,r))
    829829  {
    830830#ifdef FACTORIZE2_DEBUG
     
    11411141        prune (a);
    11421142#ifndef SING_NDEBUG
    1143     if ((r->cf->extRing!=NULL) && (!p_IsConstant(ff,r)))
     1143    if ((r->cf->extRing!=NULL) && (!p_IsConstantPoly(ff,r)))
    11441144    {
    11451145      singclap_factorize_retry++;
  • libpolys/polys/monomials/p_polys.h

    r4063297 rde714a7  
    19831983}
    19841984
    1985 #define p_IsConstantPoly(p,r) p_IsConstant(p,r)
     1985static inline BOOLEAN p_IsConstantPoly(const poly p, const ring r)
     1986{
     1987  p_Test(p, r);
     1988  poly pp=p;
     1989  while(pp!=NULL)
     1990  {
     1991    if (! p_LmIsConstantComp(pp, r))
     1992      return FALSE;
     1993    pIter(pp);
     1994  }
     1995  return TRUE;
     1996}
    19861997
    19871998static inline BOOLEAN p_IsUnit(const poly p, const ring r)
  • libpolys/polys/nc/old.gring.cc

    r4063297 rde714a7  
    33613361
    33623362  int *perm=(int *)omAlloc0((Rop->N+1)*sizeof(int));
    3363   if (!p_IsConstant(p, Rop))
     3363  if (!p_IsConstantPoly(p, Rop))
    33643364  {
    33653365    /* we know perm exactly */
  • libpolys/polys/simpleideals.cc

    r4063297 rde714a7  
    404404  for (int k = IDELEMS(id)-1; k>=0; k--)
    405405  {
    406     if (!p_IsConstant(id->m[k],r))
     406    if (!p_IsConstantPoly(id->m[k],r))
    407407      return FALSE;
    408408  }
Note: See TracChangeset for help on using the changeset viewer.