Changeset 644b31 in git


Ignore:
Timestamp:
Feb 20, 2013, 7:02:58 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
0723d52f38b257cac43d6e4c57aa7a5d243f5002628f663dc4f87ee80a30f2fabcac34fba9b2b144
Parents:
ef7324f0fe134054c1000413c4d1fa21ccc163b1
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-20 19:02:58+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-20 19:17:44+01:00
Message:
fix: ntDiv: normlization of .../(-1)
Location:
libpolys/polys
Files:
2 edited

Legend:

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

    ref7324 r644b31  
    850850  fraction result = (fraction)omAlloc0Bin(fractionObjectBin);
    851851  NUM(result) = g;
     852  if (!n_GreaterZero(pGetCoeff(f),ntRing->cf))
     853  {
     854    g=p_Neg(g,ntRing);
     855    f=p_Neg(f,ntRing);
     856    NUM(result) = g;
     857  }
    852858  if (!p_IsConstant(f,ntRing) || !n_IsOne(pGetCoeff(f),ntRing->cf))
     859  {
    853860    DEN(result) = f;
     861  }
    854862  COM(result) = COM(fa) + COM(fb) + MULT_COMPLEXITY;
    855863  heuristicGcdCancellation((number)result, cf);
  • libpolys/polys/monomials/p_polys.cc

    ref7324 r644b31  
    24842484  if (rField_is_Zp(r) && TEST_OPT_INTSTRATEGY)
    24852485  {
    2486     assume( n_GreaterZero(pGetCoeff(ph),C) );
    24872486    if(!n_GreaterZero(pGetCoeff(ph),C)) ph = p_Neg(ph,r);
    24882487    return start;
Note: See TracChangeset for help on using the changeset viewer.