Ignore:
Timestamp:
Dec 5, 2012, 3:28:19 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0145f469b68cb4ac35da3518ae5cb1464fbc85a4a07784ce2c96d788165ee1c5046e4e2f60bec8e3f659855c746f8978e0386f9dc2f9d9ecfc3d73b2
Parents:
80d7722e6833c629fe2c07881a5d23b7c4a9b4e4
Message:
optim. multiplication/equality test for algext.cc
File:
1 edited

Legend:

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

    r80d772 r07ff96  
    15181518    poly t = p_ISet(1, r);
    15191519    number c = n_Div(p_GetCoeff(p, r), divisorLC, r->cf);
     1520    n_Normalize(c,r->cf);
    15201521    p_SetCoeff(t, c, r);
    15211522    int e = p_GetExp(p, 1, r) - divisorLE;
     
    39173918    if (! p_LmEqual(p1, p2,r))
    39183919      return FALSE;
    3919     if (! n_Equal(p_GetCoeff(p1,r), p_GetCoeff(p2,r),r ))
     3920    if (! n_Equal(p_GetCoeff(p1,r), p_GetCoeff(p2,r),r->cf ))
    39203921      return FALSE;
    39213922    pIter(p1);
     
    40024003        return FALSE;
    40034004    }
    4004     if (!n_Equal(p_GetCoeff(p1, r), nn = n_Mult(p_GetCoeff(p2, r),n, r), r))
     4005    if (!n_Equal(p_GetCoeff(p1, r), nn = n_Mult(p_GetCoeff(p2, r),n, r->cf), r->cf))
    40054006    {
    40064007      n_Delete(&n, r);
Note: See TracChangeset for help on using the changeset viewer.