Changeset f3a5b8 in git


Ignore:
Timestamp:
Sep 10, 2013, 4:05:40 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b21a664aa22dc6e196223af8a74ad4885e83547c')
Children:
918ca09282483016057240878bd4a20cd2d7305f
Parents:
c149e345cb58e789ed28fe569ddaee8906cdbdc7
Message:
fix: delete DEN if it is 1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    rc149e3 rf3a5b8  
    14261426      NUM(f) = p_Neg(NUM(f), ntRing);
    14271427      DEN(f) = p_Neg(DEN(f), ntRing);
     1428      if (p_IsConstant(DEN(f), ntRing) &&
     1429        n_IsOne(p_GetCoeff(DEN(f), ntRing), ntCoeffs))
     1430      {
     1431        /* DEN(f) = 1 needs to be represented by NULL! */
     1432        p_Delete(&DEN(f), ntRing);
     1433        DEN (f) = NULL;
     1434      }
    14281435    }
    14291436#endif /* HAVE_FACTORY */
Note: See TracChangeset for help on using the changeset viewer.