Changeset e48172 in git for libpolys


Ignore:
Timestamp:
Sep 9, 2011, 4:04:39 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1db880fcd4839a96f69bdde0fc3337c25fd0d29d
Parents:
2fce0e72bb8742c39ab721c3ed1e0d384db1ea25
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-09 16:04:39+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:39+01:00
Message:
FIX: reenabled/fixed p_SimpleContent (for the use in Singular/janet)
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

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

    r2fce0e re48172  
    21322132  }
    21332133}
    2134 #if 0 // currently not used
    2135 void p_SimpleContent(poly ph,int smax, const ring r)
     2134
     2135// Not yet?
     2136#if 1 // currently only used by Singular/janet
     2137void p_SimpleContent(poly ph, int smax, const ring r)
    21362138{
    21372139  if(TEST_OPT_CONTENTSB) return;
     
    21392141  if (pNext(ph)==NULL)
    21402142  {
    2141     p_SetCoeff(ph,n_Init(1,r_cf),r);
     2143    p_SetCoeff(ph,n_Init(1,r->cf),r);
    21422144    return;
    21432145  }
     
    21472149  }
    21482150  number d=p_InitContent(ph,r);
    2149   if (nlSize(d,r->cf)<=smax)
     2151  if (n_Size(d,r->cf)<=smax)
    21502152  {
    21512153    //if (TEST_OPT_PROT) PrintS("G");
    21522154    return;
    21532155  }
     2156
     2157   
    21542158  poly p=ph;
    21552159  number h=d;
  • libpolys/polys/monomials/p_polys.h

    r2fce0e re48172  
    226226
    227227void      p_Content(poly p, const ring r);
     228#if 1
     229// currently only used by Singular/janet
    228230void      p_SimpleContent(poly p, int s, const ring r);
     231#endif
    229232
    230233poly      p_Cleardenom(poly p, const ring r);
Note: See TracChangeset for help on using the changeset viewer.