Changeset abf7a5 in git


Ignore:
Timestamp:
Feb 2, 2015, 3:50:37 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5861b1f57747f96f2119b414f9879eaf0f9f4925
Parents:
71e0a96366b62fc28f5a9790c3f67a0c68bbe2d6
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2015-02-02 15:50:37+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2015-02-02 15:54:32+01:00
Message:
fix: nIsUnit,  pGetCoeff, etc. ring-cf handling in kutil.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r71e0a9 rabf7a5  
    336336#ifdef HAVE_RINGS
    337337    if (rField_is_Ring(r) /*&& (rHasLocalOrMixedOrdering(r))*/)
    338       lc = p_GetCoeff(p,r);
     338      lc = pGetCoeff(p);
    339339#endif
    340340
    341341#ifdef HAVE_RINGS
    342342  // Leading coef have to be a unit
    343   if ( !(nIsUnit(p_GetCoeff(p, r))) ) return;
     343  if ( !(n_IsUnit(pGetCoeff(p), r->cf)) ) return;
    344344#endif
    345345
     
    399399      //       domains), no zerodivisor test needed  CAUTION
    400400      if (rField_is_Ring(r) /*&&(rHasLocalOrMixedOrdering(r)) */)
    401         if(n_DivBy(p_GetCoeff(h,r->cf),lc,r->cf) == 0)
     401        if(n_DivBy(pGetCoeff(h),lc,r->cf) == 0)
    402402          return;
    403403      #endif
     
    547547{
    548548  assume((*L)!=NULL);
    549   assume((length+incr)>0);
     549  assume(((*length)+incr)>0);
    550550
    551551  *L = (LSet)omReallocSize((*L),(*length)*sizeof(LObject),
     
    907907      if (strat->L[i].i_r2 < 0 ||
    908908          strat->L[i].i_r2 > strat->tl ||
    909           strat->L[i].T_2(strat)->p != strat->L[i].p2);
     909          strat->L[i].T_2(strat)->p != strat->L[i].p2)
     910        return dReportError("L[%d].i_r2 out of sync", i);
    910911    }
    911912    else
     
    14401441    wrp(gcd);
    14411442    PrintS("\n--- create strong gcd poly: ");
    1442     Print("\n p: ", i);
     1443    Print("\n p: %d", i);
    14431444    wrp(p);
    14441445    Print("\n strat->S[%d]: ", i);
     
    33373338  }
    33383339  step[1] = 500000;
    3339   habsind = ind2((long) p_GetCoeff(p, currRing));
     3340  habsind = ind2(n_Int(pGetCoeff(p), currRing->cf);
    33403341  long bound = currRing->ch - habsind;
    33413342#ifdef OLI_DEBUG
     
    65446545#ifdef HAVE_RINGS
    65456546    // Leading coef have to be a unit
    6546     if ( !(nIsUnit(p_GetCoeff((*p).p, r))) ) return;
     6547    if ( !(n_IsUnit(pGetCoeff((*p).p), currRing->cf)) ) return;
    65476548#endif
    65486549    k = 0;
Note: See TracChangeset for help on using the changeset viewer.