Changeset 922ada4 in git


Ignore:
Timestamp:
Aug 3, 2010, 1:52:39 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
390cfe56b2dbce8c9ca608246c5b81258cf5e02d
Parents:
fa93ce598d169afb25e70f0de46af88382f0840e
Message:
fix subst

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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    rfa93ce5 r922ada4  
    11921192static BOOLEAN jjGE_N(leftv res, leftv u, leftv v)
    11931193{
    1194   res->data = (char *) (nGreater((number)u->Data(),(number)v->Data()) 
     1194  res->data = (char *) (nGreater((number)u->Data(),(number)v->Data())
    11951195                       || nEqual((number)u->Data(),(number)v->Data()));
    11961196  return FALSE;
     
    61216121    else bo=TRUE;
    61226122    if (bo)
    6123     { 
     6123    {
    61246124      Werror("cannot convert %s to matrix",Tok2Cmdname(v_typ));
    61256125      return TRUE;
     
    61316131  bool noCacheMinors = true; bool noCacheMonomials = true;
    61326132  ideal IasSB; int k; char* algorithm; int cacheMinors; int cacheMonomials;
    6133  
     6133
    61346134  /* here come the different cases of correct argument sets */
    61356135  if ((u->next != NULL) && (u->next->Typ() == IDEAL_CMD))
     
    61956195    }
    61966196  }
    6197  
     6197
    61986198  /* upper case conversion for the algorithm if present */
    61996199  if (!noAlgorithm)
     
    63876387  if (nok) return TRUE;
    63886388  poly p=(poly)u->Data();
    6389   if ((monomexpr!=NULL)
    6390   &&((long)pTotaldegree(monomexpr)> (currRing->bitmask / (long)pTotaldegree(p))))
    6391   {
    6392     Werror("OVERFLOW in subst, max exponent is %ld",currRing->bitmask);
    6393     return TRUE;
    6394   }
    63956389  if (ringvar>0)
    63966390  {
     6391    if ((monomexpr!=NULL)
     6392    &&((long)pTotaldegree(monomexpr)> (currRing->bitmask / (long)pTotaldegree(p))))
     6393    {
     6394      Werror("OVERFLOW in subst, max exponent is %ld",currRing->bitmask);
     6395      return TRUE;
     6396    }
    63976397    if ((monomexpr==NULL)||(pNext(monomexpr)==NULL))
    63986398      res->data = pSubst((poly)u->CopyD(res->rtyp),ringvar,monomexpr);
     
    86018601      {
    86028602        int r=res->rtyp=dArith1[i].res;
    8603         if (currRing!=NULL)
    8604         {
     8603        if (currRing!=NULL)
     8604        {
    86058605          #ifdef HAVE_PLURAL
    86068606          if ((currRing!=NULL) && (rIsPluralRing(currRing)))
     
    86298629          }
    86308630          #endif
    8631         }
     8631        }
    86328632        if (r<0)
    86338633        {
     
    88008800        res->rtyp=dArith3[i].res;
    88018801        if (currRing!=NULL)
    8802         {
     8802        {
    88038803          #ifdef HAVE_PLURAL
    88048804          if (rIsPluralRing(currRing))
     
    88278827          }
    88288828          #endif
    8829         }
     8829        }
    88308830        if ((call_failed=dArith3[i].p(res,a,b,c)))
    88318831        {
     
    90439043      {
    90449044        res->rtyp=dArithM[i].res;
    9045         if (currRing!=NULL)
    9046         {
     9045        if (currRing!=NULL)
     9046        {
    90479047          #ifdef HAVE_PLURAL
    90489048          if (rIsPluralRing(currRing))
     
    90719071          }
    90729072          #endif
    9073         }
     9073        }
    90749074        if (dArithM[i].p(res,a))
    90759075        {
Note: See TracChangeset for help on using the changeset viewer.