- Timestamp:
- Apr 9, 2024, 4:45:14 PM (6 weeks ago)
- Branches:
- (u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 806aa6c0fd11dd028cc4613b3207981bf99cd82a
- Parents:
- b731111a31281d6447b4a56ab74d5c5ca6660db9
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/gfanlib/tropicalStrategy.cc
rb731111 raa4e28 31 31 int i = idPosConstant(I); 32 32 if ((i != -1) 33 #ifdef HAVE_RINGS34 33 && (n_IsUnit(p_GetCoeff(I->m[i],currRing->cf),currRing->cf)) 35 #endif36 34 ) 37 35 return -1; -
Singular/extra.cc
rb731111 raa4e28 104 104 105 105 106 #ifdef HAVE_RINGS107 106 #include "kernel/GBEngine/ringgb.h" 108 #endif109 107 110 108 #ifdef HAVE_F5 … … 2963 2961 #endif 2964 2962 /*==================== redNF_ring =================*/ 2965 #ifdef HAVE_RINGS2966 2963 if (strcmp(sys_cmd, "redNF_ring")==0) 2967 2964 { … … 2975 2972 } 2976 2973 else 2977 #endif2978 2974 /*==================== Roune Hilb =================*/ 2979 2975 if (strcmp(sys_cmd, "hilbroune") == 0) … … 3030 3026 #endif 3031 3027 /*==================== Testing groebner basis =================*/ 3032 #ifdef HAVE_RINGS3033 3028 if (strcmp(sys_cmd, "NF_ring")==0) 3034 3029 { … … 3063 3058 } 3064 3059 else 3065 #endif3066 3060 /*==================== sca:AltVar ==================================*/ 3067 3061 #ifdef HAVE_PLURAL -
Singular/gentable.cc
rb731111 raa4e28 18 18 #include "Singular/tok.h" 19 19 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 27 22 28 23 static inline int RingDependend(int t) { return (BEGIN_RING<t)&&(t<END_RING); } … … 877 872 } 878 873 #endif 879 #ifdef HAVE_RINGS880 #endif881 874 } 882 875 } … … 907 900 } 908 901 #endif 909 #ifdef HAVE_RINGS910 #endif911 902 } 912 903 } … … 937 928 } 938 929 #endif 939 #ifdef HAVE_RINGS940 #endif941 930 } 942 931 } … … 965 954 } 966 955 #endif 967 #ifdef HAVE_RINGS968 #endif969 956 } 970 957 i++; -
Singular/iparith.cc
rb731111 raa4e28 95 95 #endif /* HAVE_PLURAL */ 96 96 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 104 99 #define ALLOW_PLURAL 1 105 100 #define NO_NC 0 … … 2412 2407 static BOOLEAN jjHILBERT2(leftv res, leftv u, leftv v) 2413 2408 { 2414 #ifdef HAVE_RINGS2415 2409 if (rField_is_Z(currRing)) 2416 2410 { … … 2418 2412 PrintS("// performed for generic fibre, that is, over Q\n"); 2419 2413 } 2420 #endif2421 2414 assumeStdFlag(u); 2422 2415 intvec *module_w=(intvec*)atGet(u,"isHomog",INTVEC_CMD); … … 4051 4044 { 4052 4045 SPrintStart(); 4053 #ifdef HAVE_RINGS4054 4046 if (rField_is_Z(currRing)) 4055 4047 { … … 4057 4049 PrintS("// generic fibre, that is, over Q\n"); 4058 4050 } 4059 #endif4060 4051 assumeStdFlag(v); 4061 4052 intvec *module_w=(intvec*)atGet(v,"isHomog",INTVEC_CMD); … … 4164 4155 if (rIsLPRing(currRing)) 4165 4156 { 4166 #ifdef HAVE_RINGS4167 4157 if (rField_is_Ring(currRing)) 4168 4158 { … … 4170 4160 return TRUE; 4171 4161 } 4172 #endif4173 4162 if (currRing->qideal != NULL) 4174 4163 { … … 4349 4338 static BOOLEAN jjHILBERT(leftv, leftv v) 4350 4339 { 4351 #ifdef HAVE_RINGS4352 4340 if (rField_is_Z(currRing)) 4353 4341 { … … 4355 4343 PrintS("// performed for generic fibre, that is, over Q\n"); 4356 4344 } 4357 #endif4358 4345 assumeStdFlag(v); 4359 4346 intvec *module_w=(intvec*)atGet(v,"isHomog",INTVEC_CMD); … … 4364 4351 static BOOLEAN jjHILBERT_IV(leftv res, leftv v) 4365 4352 { 4366 #ifdef HAVE_RINGS4367 4353 if (rField_is_Z(currRing)) 4368 4354 { … … 4370 4356 PrintS("// performed for generic fibre, that is, over Q\n"); 4371 4357 } 4372 #endif4373 4358 res->data=(void *)hSecondSeries((intvec *)v->Data()); 4374 4359 return FALSE; … … 5517 5502 if (rIsLPRing(currRing)) 5518 5503 { 5519 #ifdef HAVE_RINGS5520 5504 if (rField_is_Ring(currRing)) 5521 5505 { … … 5523 5507 return TRUE; 5524 5508 } 5525 #endif5526 5509 if (currRing->qideal != NULL) 5527 5510 { … … 6238 6221 return TRUE; 6239 6222 } 6240 #ifdef HAVE_RINGS6241 6223 if (rField_is_Z(currRing)) 6242 6224 { … … 6244 6226 PrintS("// performed for generic fibre, that is, over Q\n"); 6245 6227 } 6246 #endif6247 6228 assumeStdFlag(u); 6248 6229 intvec *module_w=(intvec *)atGet(u,"isHomog",INTVEC_CMD); … … 6266 6247 static BOOLEAN jjHILBERT3Qt(leftv res, leftv u, leftv v, leftv w) 6267 6248 { 6268 #ifdef HAVE_RINGS6269 6249 if (rField_is_Z(currRing)) 6270 6250 { … … 6272 6252 PrintS("// performed for generic fibre, that is, over Q\n"); 6273 6253 } 6274 #endif6275 6254 assumeStdFlag(u); 6276 6255 ring Qt =(ring)v->Data(); -
Singular/ipshell.cc
rb731111 raa4e28 1885 1885 } 1886 1886 1887 #ifdef HAVE_RINGS1888 1887 static void rDecomposeRing_41(leftv h,const coeffs C) 1889 1888 /* field is R or C */ … … 1912 1911 L->m[1].data=(void *)LL; 1913 1912 } 1914 #endif1915 1913 1916 1914 void rDecomposeRing(leftv h,const ring R) 1917 1915 /* field is R or C */ 1918 1916 { 1919 #ifdef HAVE_RINGS1920 1917 lists L=(lists)omAlloc0Bin(slists_bin); 1921 1918 if (rField_is_Z(R)) L->Init(1); … … 1940 1937 L->m[1].rtyp=LIST_CMD; 1941 1938 L->m[1].data=(void *)LL; 1942 #else1943 WerrorS("rDecomposeRing");1944 #endif1945 1939 } 1946 1940 … … 1960 1954 rDecomposeC_41(res,C); 1961 1955 } 1962 #ifdef HAVE_RINGS1963 1956 else if (nCoeff_is_Ring(C)) 1964 1957 { 1965 1958 rDecomposeRing_41(res,C); 1966 1959 } 1967 #endif1968 1960 else if ( C->extRing!=NULL )// nCoeff_is_algExt(r->cf)) 1969 1961 { … … 2308 2300 } 2309 2301 2310 #ifdef HAVE_RINGS2311 2302 void rComposeRing(lists L, ring R) 2312 2303 /* field is R or C */ … … 2400 2391 mpz_clear(modBase); 2401 2392 } 2402 #endif2403 2393 2404 2394 static void rRenameVars(ring R) … … 2849 2839 lists LL=(lists)L->m[0].Data(); 2850 2840 2851 #ifdef HAVE_RINGS2852 2841 if (LL->m[0].Typ() == STRING_CMD) // 1st comes a string? 2853 2842 { … … 2855 2844 } 2856 2845 else 2857 #endif2858 2846 if (LL->nr < 3) 2859 2847 rComposeC(LL,R); // R, long_R, long_C … … 5808 5796 assume( cf != NULL ); 5809 5797 } 5810 #ifdef HAVE_RINGS5811 5798 else if ((pn->name != NULL) && (strcmp(pn->name, "integer") == 0)) 5812 5799 { … … 5895 5882 mpz_clear(modBase); 5896 5883 } 5897 #endif5898 5884 // ring NEW = OLD, (), (); where OLD is a polynomial ring... 5899 5885 else if ((pn->Typ()==RING_CMD) && (P == 1))
Note: See TracChangeset
for help on using the changeset viewer.