Changeset dccb85 in git


Ignore:
Timestamp:
Feb 3, 2015, 9:40:17 AM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
1d0b91fbec50d1a0fc884eb1fe44cf48dfd0ff8e
Parents:
bd3bac8ebfab4a67210d850dc35a296d9a4a9afa
Message:
comment: n_isUnit is not needed in cancelunit/cancelunit1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    rbd3bac rdccb85  
    339339#endif
    340340
    341 #ifdef HAVE_RINGS  // needs cleanup
     341#ifdef HAVE_RINGS
    342342  // Leading coef have to be a unit
     343  // example 2x+4x2 should be simplified to 2x*(1+2x)
     344  // and 2 is not a unit in Z
    343345  //if ( !(n_IsUnit(pGetCoeff(p), r->cf)) ) return;
    344346#endif
     
    65466548  if (!pIsVector((*p).p) && ((*p).ecart != 0))
    65476549  {
    6548 #ifdef HAVE_RINGS // needs cleanup
    6549     // Leading coef have to be a unit
    6550     if ( !(n_IsUnit(pGetCoeff((*p).p), currRing->cf)) ) return;
     6550#ifdef HAVE_RINGS
     6551    // Leading coef have to be a unit: no
     6552    // example 2x+4x2 should be simplified to 2x*(1+2x)
     6553    // and 2 is not a unit in Z
     6554    //if ( !(n_IsUnit(pGetCoeff((*p).p), currRing->cf)) ) return;
    65516555#endif
    65526556    k = 0;
Note: See TracChangeset for help on using the changeset viewer.