Changeset 7fcc5b1 in git


Ignore:
Timestamp:
Jan 30, 2017, 3:57:29 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
ee8cdb02450fdfa9053b378628d72181b97f0d85
Parents:
255be23a24e8d8e66bb9940f2b28682b72397092
Message:
opt: p_DivideM
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

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

    r255be23 r7fcc5b1  
    15141514  poly result=a;
    15151515  poly prev=NULL;
    1516   int i;
    15171516#ifdef HAVE_RINGS
    15181517  number inv=pGetCoeff(b);
     
    15251524    if (p_DivisibleBy(b,a,r))
    15261525    {
    1527       for(i=(int)r->N; i; i--)
    1528          p_SubExp(a,i, p_GetExp(b,i,r),r);
    1529       p_SubComp(a, p_GetComp(b,r),r);
    1530       p_Setm(a,r);
     1526      p_ExpVectorSub(a,b,r);
    15311527      prev=a;
    15321528      pIter(a);
  • libpolys/polys/monomials/p_polys.h

    r255be23 r7fcc5b1  
    13741374  p_MemSub_LengthGeneral(p1->exp, p2->exp, r->ExpL_Size);
    13751375  p_MemSub_NegWeightAdjust(p1, r);
    1376 
    1377 }
     1376}
     1377
    13781378// ExpVector(p1) += ExpVector(p2) - ExpVector(p3)
    13791379static inline void p_ExpVectorAddSub(poly p1, poly p2, poly p3, const ring r)
Note: See TracChangeset for help on using the changeset viewer.