Changeset 08f2a1f in git for libpolys/polys


Ignore:
Timestamp:
Sep 1, 2020, 4:17:50 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
40632978ce2cb84dae846b23a573eee15545abcc
Parents:
20bab7d91a9351cbc13245eeb4da8a9ec894b6d2
Message:
removed: p_IsConstantPoly (->p_IsConstant)
Location:
libpolys/polys
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapconv.cc

    r20bab7 r08f2a1f  
    325325
    326326    // test if denominator is constant
    327     if (!errorreported && !p_IsConstantPoly(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
     327    if (!errorreported && !p_IsConstant(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_IsConstantPoly(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
     359    if (!p_IsConstant(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
    360360      return FALSE;
    361361    pIter(p);
  • libpolys/polys/clapsing.cc

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

    r20bab7 r08f2a1f  
    19831983}
    19841984
    1985 static 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 }
     1985#define p_IsConstantPoly(p,r) p_IsConstant(p,r)
    19971986
    19981987static inline BOOLEAN p_IsUnit(const poly p, const ring r)
  • libpolys/polys/nc/old.gring.cc

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

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