Changeset e6c3d1 in git
- Timestamp:
- Jan 18, 2013, 3:20:53 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 271d25946dbb409d16650bb1ecdffccf0c03594e65eb96fdc6f956671461df48dd8f6bde869c96f8
- Parents:
- 2aee667644f2d68561171e8c9ca4258221af3702ebdbfddc10fbb7eff4bf79217b5742f5f24d9a78
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.am
r2aee66 re6c3d1 413 413 pyobject_la_SOURCES += pyobject.cc 414 414 endif 415 pyobject_la_SOURCES = pyobject.cc416 415 pyobject_la_CPPFLAGS = ${AM_CPPFLAGS} ${NODEBUGDEFS} 417 416 pyobject_g_la_CPPFLAGS = ${AM_CPPFLAGS} -
libpolys/coeffs/coeffs.h
rebdbfd re6c3d1 94 94 { 95 95 coeffs next; 96 unsigned int ringtype; /*=0 => coefficient field,96 /*unsigned int ringtype; =0 => coefficient field, 97 97 !=0 => coeffs from one of the rings: 98 98 =1 => Z/2^mZ … … 609 609 // Tests: 610 610 static inline BOOLEAN nCoeff_is_Ring_2toM(const coeffs r) 611 { assume(r != NULL); return ( r->ringtype == 1); }611 { assume(r != NULL); return (getCoeffType(r)==n_Z2m); } 612 612 613 613 static inline BOOLEAN nCoeff_is_Ring_ModN(const coeffs r) 614 { assume(r != NULL); return ( r->ringtype == 2); }614 { assume(r != NULL); return (getCoeffType(r)==n_Zn); } 615 615 616 616 static inline BOOLEAN nCoeff_is_Ring_PtoM(const coeffs r) 617 { assume(r != NULL); return ( r->ringtype == 3); }617 { assume(r != NULL); return (getCoeffType(r)==n_Znm); } 618 618 619 619 static inline BOOLEAN nCoeff_is_Ring_Z(const coeffs r) 620 { assume(r != NULL); return ( r->ringtype == 4); }620 { assume(r != NULL); return (getCoeffType(r)==n_Z); } 621 621 622 622 static inline BOOLEAN nCoeff_is_Ring(const coeffs r) 623 { assume(r != NULL); return ( r->ringtype != 0); }623 { assume(r != NULL); return ((getCoeffType(r)==n_Z) || (getCoeffType(r)==n_Z2m) || (getCoeffType(r)==n_Zn) || (getCoeffType(r)==n_Znm)); } 624 624 625 625 /// returns TRUE, if r is not a field and r has no zero divisors (i.e is a domain) … … 628 628 assume(r != NULL); 629 629 #ifdef HAVE_RINGS 630 return ( r->ringtype == 4 || r->ringtype == 0);630 return (getCoeffType(r)==n_Z || ((getCoeffType(r)!=n_Z2m) && (getCoeffType(r)!=n_Zn) && (getCoeffType(r)!=n_Znm))); 631 631 #else 632 632 return TRUE; … … 707 707 /// returns TRUE, if r is not a field and r has non-trivial units 708 708 static inline BOOLEAN nCoeff_has_Units(const coeffs r) 709 { assume(r != NULL); return (( r->ringtype == 1) || (r->ringtype == 2) || (r->ringtype == 3)); }709 { assume(r != NULL); return ((getCoeffType(r)==n_Zn) || (getCoeffType(r)==n_Z2m) || (getCoeffType(r)==n_Znm)); } 710 710 711 711 static inline BOOLEAN nCoeff_is_Zp(const coeffs r) -
libpolys/coeffs/rintegers.cc
rebdbfd re6c3d1 430 430 r->nNULL = 0; 431 431 r->ch = 0; 432 r->ringtype = 4;433 432 r->has_simple_Alloc=FALSE; 434 433 r->has_simple_Inverse=FALSE; -
libpolys/coeffs/rmodulo2m.cc
rebdbfd re6c3d1 54 54 r->modBase = (int_number) omAllocBin (gmp_nrz_bin); 55 55 mpz_init_set_si (r->modBase, 2L); 56 r->ringtype = 1;57 56 r->modNumber= (int_number) omAllocBin (gmp_nrz_bin); 58 57 mpz_init (r->modNumber); -
libpolys/coeffs/rmodulon.cc
rebdbfd re6c3d1 55 55 nrnInitExp (info->exp, r); 56 56 57 if (info->exp > 1)58 r->ringtype= 3;59 else60 r->ringtype= 2;61 57 /* next computation may yield wrong characteristic as r->modNumber 62 58 is a GMP number */ … … 508 504 nCoeff_is_Ring_2toM(src) || nCoeff_is_Zp(src)) 509 505 { 510 if ( ( src->ringtype > 0)506 if ( (!nCoeff_is_Zp(src)) 511 507 && (mpz_cmp(src->modBase, dst->modBase) == 0) 512 508 && (src->modExponent == dst->modExponent)) return nrnMapGMP; -
libpolys/polys/ext_fields/algext.cc
rebdbfd re6c3d1 1192 1192 } 1193 1193 1194 void naKillChar(coeffs cf) 1195 { 1196 if ((--cf->extRing->ref) == 0) 1197 rDelete(cf->extRing); 1198 } 1199 1200 1194 1201 1195 1202 BOOLEAN naInitChar(coeffs cf, void * infoStruct) … … 1257 1264 cf->cfCoeffWrite = naCoeffWrite; 1258 1265 cf->cfNormalize = naNormalize; 1266 cf->cfKillChar = naKillChar; 1259 1267 #ifdef LDEBUG 1260 1268 cf->cfDBTest = naDBTest; -
m4/ax_python_with_version.m4
r2aee66 re6c3d1 33 33 [],[withval="yes"] 34 34 ) 35 si_try_embed="no" 35 36 py_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 36 37 for elt in $withval; do … … 38 39 case $elt in 39 40 embed|embedding) 40 si_try_embed= true41 si_try_embed="yes" 41 42 ;; 42 43 static|dynamic|shared|module) … … 64 65 # for the executable. 65 66 # So, let's search the PATH Environment Variable. 66 AC_PATH_PROG (67 AC_PATH_PROGS( 67 68 [PYTHON], 68 python,69 [python2 python], 69 70 [], 70 71 $2 … … 79 80 else 80 81 AX_PYTHON_VERSION_CHECK([$1], 81 [ ax_python_use=true 82 si_embed_python=$si_try_embed 83 AC_MSG_RESULT(yes) 84 AX_PYTHON_PREFIX( ) 85 AX_PYTHON_LSPEC( ) 86 AX_PYTHON_CSPEC( ) 87 ], 88 [ax_python_use=false 89 AC_MSG_RESULT([too old, skipping python interface!])] 82 [ AC_MSG_RESULT(yes) 83 AX_PYTHON_VERSION_CHECK([3], 84 [ ax_python_use=false 85 AC_MSG_RESULT([too recent, skipping python interface!]) 86 ], 87 [ ax_python_use=true 88 si_embed_python=$si_try_embed 89 AC_MSG_RESULT([no (ok)]) 90 AC_MSG_CHECKING(embedding python interface module) 91 AC_MSG_RESULT($si_try_embed) 92 AX_PYTHON_PREFIX( ) 93 AX_PYTHON_LSPEC( ) 94 AX_PYTHON_CSPEC( ) 95 ]) 96 ], 97 [ ax_python_use=false 98 AC_MSG_RESULT([too old, skipping python interface!])] 90 99 ) 91 100 fi 92 101 fi 93 102 94 if test x"$si_embed_python" = x" true"103 if test x"$si_embed_python" = x"yes" 95 104 then 96 105 AC_DEFINE(EMBED_PYTHON,1,integrate python) … … 105 114 106 115 AM_CONDITIONAL(PYTHON_USE, test x"$ax_python_use" = x"true") 107 AM_CONDITIONAL(SI_EMBED_PYTHON, test x"$ax_python_use$si_embed_python" = x"true true")108 AM_CONDITIONAL(PYTHON_MODULE, test x"$ax_python_use" = x"true" -a x"$si_embed_python" != x" true" )116 AM_CONDITIONAL(SI_EMBED_PYTHON, test x"$ax_python_use$si_embed_python" = x"trueyes") 117 AM_CONDITIONAL(PYTHON_MODULE, test x"$ax_python_use" = x"true" -a x"$si_embed_python" != x"yes" ) 109 118 110 119 ])
Note: See TracChangeset
for help on using the changeset viewer.