Changeset aa4e28 in git for Singular


Ignore:
Timestamp:
Apr 9, 2024, 4:45:14 PM (6 weeks ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
806aa6c0fd11dd028cc4613b3207981bf99cd82a
Parents:
b731111a31281d6447b4a56ab74d5c5ca6660db9
Message:
HAVE_RINGS is default (p1)
Location:
Singular
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/gfanlib/tropicalStrategy.cc

    rb731111 raa4e28  
    3131    int i = idPosConstant(I);
    3232    if ((i != -1)
    33     #ifdef HAVE_RINGS
    3433    && (n_IsUnit(p_GetCoeff(I->m[i],currRing->cf),currRing->cf))
    35     #endif
    3634    )
    3735      return -1;
  • Singular/extra.cc

    rb731111 raa4e28  
    104104
    105105
    106 #ifdef HAVE_RINGS
    107106#include "kernel/GBEngine/ringgb.h"
    108 #endif
    109107
    110108#ifdef HAVE_F5
     
    29632961  #endif
    29642962  /*==================== redNF_ring =================*/
    2965   #ifdef HAVE_RINGS
    29662963      if (strcmp(sys_cmd, "redNF_ring")==0)
    29672964      {
     
    29752972      }
    29762973      else
    2977   #endif
    29782974  /*==================== Roune Hilb  =================*/
    29792975       if (strcmp(sys_cmd, "hilbroune") == 0)
     
    30303026  #endif
    30313027  /*==================== Testing groebner basis =================*/
    3032   #ifdef HAVE_RINGS
    30333028      if (strcmp(sys_cmd, "NF_ring")==0)
    30343029      {
     
    30633058      }
    30643059      else
    3065   #endif
    30663060    /*==================== sca:AltVar ==================================*/
    30673061  #ifdef HAVE_PLURAL
  • Singular/gentable.cc

    rb731111 raa4e28  
    1818#include "Singular/tok.h"
    1919
    20 #ifdef HAVE_RINGS
    21   #define RING_MASK        4
    22   #define ZERODIVISOR_MASK 8
    23 #else
    24   #define RING_MASK        0
    25   #define ZERODIVISOR_MASK 0
    26 #endif
     20#define RING_MASK        4
     21#define ZERODIVISOR_MASK 8
    2722
    2823static inline int RingDependend(int t) { return (BEGIN_RING<t)&&(t<END_RING); }
     
    877872        }
    878873        #endif
    879         #ifdef HAVE_RINGS
    880         #endif
    881874      }
    882875    }
     
    907900        }
    908901        #endif
    909         #ifdef HAVE_RINGS
    910         #endif
    911902      }
    912903    }
     
    937928        }
    938929        #endif
    939         #ifdef HAVE_RINGS
    940         #endif
    941930      }
    942931    }
     
    965954        }
    966955        #endif
    967         #ifdef HAVE_RINGS
    968         #endif
    969956    }
    970957    i++;
  • Singular/iparith.cc

    rb731111 raa4e28  
    9595#endif /* HAVE_PLURAL */
    9696
    97 #ifdef HAVE_RINGS
    98   #define RING_MASK        4
    99   #define ZERODIVISOR_MASK 8
    100 #else
    101   #define RING_MASK        0
    102   #define ZERODIVISOR_MASK 0
    103 #endif
     97#define RING_MASK        4
     98#define ZERODIVISOR_MASK 8
    10499#define ALLOW_PLURAL     1
    105100#define NO_NC            0
     
    24122407static BOOLEAN jjHILBERT2(leftv res, leftv u, leftv v)
    24132408{
    2414 #ifdef HAVE_RINGS
    24152409  if (rField_is_Z(currRing))
    24162410  {
     
    24182412    PrintS("//       performed for generic fibre, that is, over Q\n");
    24192413  }
    2420 #endif
    24212414  assumeStdFlag(u);
    24222415  intvec *module_w=(intvec*)atGet(u,"isHomog",INTVEC_CMD);
     
    40514044{
    40524045  SPrintStart();
    4053 #ifdef HAVE_RINGS
    40544046  if (rField_is_Z(currRing))
    40554047  {
     
    40574049    PrintS("//       generic fibre, that is, over Q\n");
    40584050  }
    4059 #endif
    40604051  assumeStdFlag(v);
    40614052  intvec *module_w=(intvec*)atGet(v,"isHomog",INTVEC_CMD);
     
    41644155  if (rIsLPRing(currRing))
    41654156  {
    4166 #ifdef HAVE_RINGS
    41674157    if (rField_is_Ring(currRing))
    41684158    {
     
    41704160      return TRUE;
    41714161    }
    4172 #endif
    41734162    if (currRing->qideal != NULL)
    41744163    {
     
    43494338static BOOLEAN jjHILBERT(leftv, leftv v)
    43504339{
    4351 #ifdef HAVE_RINGS
    43524340  if (rField_is_Z(currRing))
    43534341  {
     
    43554343    PrintS("//       performed for generic fibre, that is, over Q\n");
    43564344  }
    4357 #endif
    43584345  assumeStdFlag(v);
    43594346  intvec *module_w=(intvec*)atGet(v,"isHomog",INTVEC_CMD);
     
    43644351static BOOLEAN jjHILBERT_IV(leftv res, leftv v)
    43654352{
    4366 #ifdef HAVE_RINGS
    43674353  if (rField_is_Z(currRing))
    43684354  {
     
    43704356    PrintS("//       performed for generic fibre, that is, over Q\n");
    43714357  }
    4372 #endif
    43734358  res->data=(void *)hSecondSeries((intvec *)v->Data());
    43744359  return FALSE;
     
    55175502  if (rIsLPRing(currRing))
    55185503  {
    5519 #ifdef HAVE_RINGS
    55205504    if (rField_is_Ring(currRing))
    55215505    {
     
    55235507      return TRUE;
    55245508    }
    5525 #endif
    55265509    if (currRing->qideal != NULL)
    55275510    {
     
    62386221    return TRUE;
    62396222  }
    6240 #ifdef HAVE_RINGS
    62416223  if (rField_is_Z(currRing))
    62426224  {
     
    62446226    PrintS("//       performed for generic fibre, that is, over Q\n");
    62456227  }
    6246 #endif
    62476228  assumeStdFlag(u);
    62486229  intvec *module_w=(intvec *)atGet(u,"isHomog",INTVEC_CMD);
     
    62666247static BOOLEAN jjHILBERT3Qt(leftv res, leftv u, leftv v, leftv w)
    62676248{
    6268 #ifdef HAVE_RINGS
    62696249  if (rField_is_Z(currRing))
    62706250  {
     
    62726252    PrintS("//       performed for generic fibre, that is, over Q\n");
    62736253  }
    6274 #endif
    62756254  assumeStdFlag(u);
    62766255  ring Qt =(ring)v->Data();
  • Singular/ipshell.cc

    rb731111 raa4e28  
    18851885}
    18861886
    1887 #ifdef HAVE_RINGS
    18881887static void rDecomposeRing_41(leftv h,const coeffs C)
    18891888/* field is R or C */
     
    19121911  L->m[1].data=(void *)LL;
    19131912}
    1914 #endif
    19151913
    19161914void rDecomposeRing(leftv h,const ring R)
    19171915/* field is R or C */
    19181916{
    1919 #ifdef HAVE_RINGS
    19201917  lists L=(lists)omAlloc0Bin(slists_bin);
    19211918  if (rField_is_Z(R)) L->Init(1);
     
    19401937  L->m[1].rtyp=LIST_CMD;
    19411938  L->m[1].data=(void *)LL;
    1942 #else
    1943   WerrorS("rDecomposeRing");
    1944 #endif
    19451939}
    19461940
     
    19601954    rDecomposeC_41(res,C);
    19611955  }
    1962 #ifdef HAVE_RINGS
    19631956  else if (nCoeff_is_Ring(C))
    19641957  {
    19651958    rDecomposeRing_41(res,C);
    19661959  }
    1967 #endif
    19681960  else if ( C->extRing!=NULL )// nCoeff_is_algExt(r->cf))
    19691961  {
     
    23082300}
    23092301
    2310 #ifdef HAVE_RINGS
    23112302void rComposeRing(lists L, ring R)
    23122303/* field is R or C */
     
    24002391  mpz_clear(modBase);
    24012392}
    2402 #endif
    24032393
    24042394static void rRenameVars(ring R)
     
    28492839    lists LL=(lists)L->m[0].Data();
    28502840
    2851 #ifdef HAVE_RINGS
    28522841    if (LL->m[0].Typ() == STRING_CMD) // 1st comes a string?
    28532842    {
     
    28552844    }
    28562845    else
    2857 #endif
    28582846    if (LL->nr < 3)
    28592847      rComposeC(LL,R); // R, long_R, long_C
     
    58085796    assume( cf != NULL );
    58095797  }
    5810 #ifdef HAVE_RINGS
    58115798  else if ((pn->name != NULL) && (strcmp(pn->name, "integer") == 0))
    58125799  {
     
    58955882    mpz_clear(modBase);
    58965883  }
    5897 #endif
    58985884  // ring NEW = OLD, (), (); where OLD is a polynomial ring...
    58995885  else if ((pn->Typ()==RING_CMD) && (P == 1))
Note: See TracChangeset for help on using the changeset viewer.