Changeset 93ebe1 in git for kernel/kspoly.cc


Ignore:
Timestamp:
Jun 25, 2008, 1:27:31 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
c0f7e2988b957111af5de1cc61d5db94117bbd43
Parents:
50be61b82bf6629f723c7dfbd65a3a1d7e764ca6
Message:
*hannes: rings


git-svn-id: file:///usr/local/Singular/svn/trunk@10794 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kspoly.cc

    r50be61 r93ebe1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kspoly.cc,v 1.14 2008-02-23 20:13:30 levandov Exp $ */
     4/* $Id: kspoly.cc,v 1.15 2008-06-25 11:27:31 Singular Exp $ */
    55/*
    66*  ABSTRACT -  Routines for Spoly creation and reductions
     
    228228    a2 = tailRing->p_Procs->pp_Mult_mm(a2, m2, tailRing,last);
    229229#ifdef HAVE_RINGS
    230   if (rField_is_Ring(currRing) && !(rField_is_Domain(currRing))) l2 = pLength(a2);
     230  if (!(rField_is_Domain(currRing))) l2 = pLength(a2);
    231231#endif
    232232
     
    365365
    366366#ifdef HAVE_RINGS
     367  BOOLEAN is_Ring=rField_is_Ring(currRing);
    367368  number lc1 = pGetCoeff(p1), lc2 = pGetCoeff(p2);
    368   if (rField_is_Ring(currRing))
     369  if (is_Ring)
    369370  {
    370371    ksCheckCoeff(&lc1, &lc2); // gcd and zero divisors
     
    414415      p_Setm(m2, currRing);
    415416#ifdef HAVE_RINGS
    416       if (rField_is_Ring(currRing))
     417      if (is_Ring)
    417418      {
    418419          nDelete(&lc1);
     
    429430    {
    430431#ifdef HAVE_RINGS
    431     if (rField_is_Ring(currRing))
     432    if (is_Ring)
    432433    {
    433434      nDelete(&lc1);
     
    466467    p_Setm(m1, currRing);
    467468#ifdef HAVE_RINGS
    468     if (rField_is_Ring(currRing))
     469    if (is_Ring)
    469470    {
    470471      pSetCoeff0(m1, t2);
     
    523524        p_LmFree(m2,currRing);
    524525#ifdef HAVE_RINGS
    525         if (rField_is_Ring(currRing))
     526        if (is_Ring)
    526527        {
    527528          pSetCoeff0(m1, t2);
     
    539540        p_LmFree(m1,currRing);
    540541#ifdef HAVE_RINGS
    541         if (rField_is_Ring(currRing))
     542        if (is_Ring)
    542543        {
    543544          pSetCoeff0(m2, t1);
     
    553554    }
    554555#ifdef HAVE_RINGS
    555     if (rField_is_Ring(currRing))
     556    if (is_Ring)
    556557    {
    557558      equal = nEqual(t1,t2);
     
    570571      p_LmFree(m2,currRing);
    571572#ifdef HAVE_RINGS
    572       if (rField_is_Ring(currRing))
     573      if (is_Ring)
    573574      {
    574575          pSetCoeff0(m1, nSub(t1, t2));
     
    586587    pIter(a2);
    587588#ifdef HAVE_RINGS
    588     if (rField_is_Ring(currRing))
     589    if (is_Ring)
    589590    {
    590591      if (a2 != NULL)
     
    598599        t2 = nMult(pGetCoeff(a1),lc2);
    599600      }
    600       while (a1 != NULL && nIsZero(t2))
     601      while ((a1 != NULL) && nIsZero(t2))
    601602      {
    602603        pIter(a1);
     
    607608        }
    608609      }
    609       while (a2 != NULL && nIsZero(t1))
     610      while ((a2 != NULL) && nIsZero(t1))
    610611      {
    611612        pIter(a2);
     
    624625      {
    625626#ifdef HAVE_RINGS
    626         if (rField_is_Ring(currRing))
     627        if (is_Ring)
    627628        {
    628629          nDelete(&lc1);
Note: See TracChangeset for help on using the changeset viewer.