Changeset 764c0f in git for libpolys


Ignore:
Timestamp:
Feb 17, 2021, 9:41:19 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
4470c0e32fbd88486ac477ef7c9a7a70bf64e46e
Parents:
d58ff1053b36c1f89b1558cad550aa1f4b0f1463
Message:
fix: p_SimpleContent
File:
1 edited

Legend:

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

    rd58ff10 r764c0f  
    26392639  }
    26402640  number d=p_InitContent(ph,r);
     2641  number h=d;
    26412642  if (n_Size(d,r->cf)<=smax)
    26422643  {
     2644    n_Delete(&h,r->cf);
    26432645    //if (TEST_OPT_PROT) PrintS("G");
    26442646    return;
     
    26462648
    26472649  poly p=ph;
    2648   number h=d;
    26492650  if (smax==1) smax=2;
    26502651  while (p!=NULL)
    26512652  {
    2652 #if 0
    2653     d=n_Gcd(h,pGetCoeff(p),r->cf);
     2653#if 1
     2654    d=n_SubringGcd(h,pGetCoeff(p),r->cf);
    26542655    n_Delete(&h,r->cf);
    26552656    h = d;
    26562657#else
    2657     STATISTIC(n_Gcd); nlInpGcd(h,pGetCoeff(p),r->cf);
     2658    n_InpGcd(h,pGetCoeff(p),r->cf);
    26582659#endif
    26592660    if(n_Size(h,r->cf)<smax)
    26602661    {
    26612662      //if (TEST_OPT_PROT) PrintS("g");
     2663      n_Delete(&h,r->cf);
    26622664      return;
    26632665    }
     
    26662668  p = ph;
    26672669  if (!n_GreaterZero(pGetCoeff(p),r->cf)) h=n_InpNeg(h,r->cf);
    2668   if(n_IsOne(h,r->cf)) return;
     2670  if(n_IsOne(h,r->cf))
     2671  {
     2672    n_Delete(&h,r->cf);
     2673    return;
     2674  }
    26692675  if (TEST_OPT_PROT) PrintS("c");
    26702676  while (p!=NULL)
Note: See TracChangeset for help on using the changeset viewer.