Changeset 77bb59 in git
- Timestamp:
- Aug 12, 2011, 7:28:54 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- d1433769dfd20e9bf7a4179195d41d4095c91fc7
- Parents:
- d914cf06d3d3be1689cf60fc38f82a7c3dbdf2c6
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-12 19:28:54+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:24:03+01:00
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
rd914cf0 r77bb59 81 81 82 82 83 lists rDecompose(const ring r); 84 ring rCompose(const lists L); 83 lists rDecompose(const ring r); ring rCompose(const lists L); 85 84 86 85 -
Singular/ipshell.cc
rd914cf0 r77bb59 6 6 * ABSTRACT: 7 7 */ 8 9 #include <math.h> 8 #include <kernel/mod2.h> 9 #include <misc/auxiliary.h> 10 10 11 11 12 #include <misc/options.h> 12 #include <misc/auxiliary.h> 13 #include <misc/mylimits.h> 14 13 15 #ifdef HAVE_FACTORY 14 16 #define SI_DONT_HAVE_GLOBAL_VARS … … 17 19 18 20 #include <Singular/maps_ip.h> 19 #include <kernel/mod2.h>20 21 #include <Singular/tok.h> 21 22 #include <misc/options.h> … … 46 47 #include <kernel/splist.h> 47 48 #include <kernel/spectrum.h> 48 #include <coeffs/gnumpfl.h>49 ////// #include <coeffs/gnumpfl.h> 49 50 //#include <kernel/mpr_base.h> 50 #include <coeffs/ffields.h>51 ////// #include <coeffs/ffields.h> 51 52 #include <polys/clapsing.h> 52 53 #include <kernel/hutil.h> … … 55 56 #include <polys/ext_fields/algext.h> 56 57 #include <coeffs/mpr_complex.h> 57 #include <coeffs/longrat.h>58 ////// #include <coeffs/longrat.h> 58 59 #include <numeric/mpr_base.h> 59 60 #include <numeric/mpr_numeric.h> 61 62 #include <math.h> 60 63 61 64 // define this if you want to use the fast_map routine for mapping ideals … … 659 662 // rPar(IDRING(r)), 660 663 // IDRING(r)->minpoly))) 661 if ((nMap=nSetMap(IDRING(r)->cf))==NULL) 662 { 663 if (rEqual(IDRING(r),currRing)) 664 { 665 nMap=n_SetMap(currRing->cf, currRing->cf); 666 } 667 else 668 { 664 if ((nMap=n_SetMap(IDRING(r)->cf, currRing->cf))==NULL) 665 { 666 ////////// WTF? 667 // if (rEqual(IDRING(r),currRing)) 668 // { 669 // nMap = n_SetMap(currRing->cf, currRing->cf); 670 // } 671 // else 672 // { 669 673 Werror("can not map from ground field of %s to current ground field", 670 674 theMap->preimage); 671 675 return NULL; 672 }676 // } 673 677 } 674 678 if (IDELEMS(theMap)<IDRING(r)->N) … … 4881 4885 } 4882 4886 4887 const short MAX_SHORT = SHRT_MAX; // (1 << (sizeof(short)*8)) - 1; 4888 4883 4889 //////////////////// 4884 4890 // … … 5103 5109 { 5104 5110 int l=rv->listLength(); 5105 #if SIZEOF_SHORT == 2 5106 #define MAX_SHORT 0x7fff 5107 #endif 5111 5108 5112 if (l>MAX_SHORT) 5109 5113 { -
kernel/gr_kstd2.cc
rd914cf0 r77bb59 19 19 #include <polys/weight.h> 20 20 #include <polys/polys.h> 21 #include <polys/monomials/ring.h> 21 22 22 23 #include <polys/nc/nc.h> -
libpolys/misc/mylimits.h
rd914cf0 r77bb59 19 19 #else 20 20 #include <limits.h> 21 22 21 #endif 23 22 -
libpolys/polys/monomials/ring.cc
rd914cf0 r77bb59 5543 5543 assume(C != NULL); 5544 5544 5545 if( rField_is_Extension(r) ) 5545 const BOOLEAN ret = nCoeff_is_algExt(C); 5546 5547 if( ret ) 5546 5548 { 5547 5549 const ring R = C->extRing; 5548 5550 assume( R != NULL ); 5549 return idIs0(R->minideal); 5550 } 5551 return TRUE; 5551 assume( !idIs0(R->minideal) ); 5552 } 5553 5554 return ret; 5552 5555 } 5553 5556 -
standalone.test/test.cc
rd914cf0 r77bb59 115 115 116 116 117 BOOLEAN simple(const n_coeffType _type, cfInitCharProc p,void* param = NULLp)117 BOOLEAN simple(const n_coeffType _type, void* param = NULLp) 118 118 { 119 n_coeffType type = nRegister( _type, p);120 assume( type == _type ); // ?121 return ( Test( type, param) );119 // n_coeffType type = nRegister( _type, p); 120 // assume( type == _type ); // ? 121 return ( Test(_type, param) ); 122 122 } 123 123 … … 132 132 PrintS(StringAppendS("\n")); 133 133 // longrat 134 extern BOOLEAN nlInitChar(coeffs, void*); // Q 135 if( simple(n_Q, nlInitChar) ) 134 if( simple(n_Q) ) 136 135 PrintS("Q: Test Passed!"); 137 136 else … … 140 139 141 140 // modulop 142 extern BOOLEAN npInitChar(coeffs, void*); // Zp 143 if( simple(n_Zp, npInitChar, (void*)7) ) 141 if( simple(n_Zp, (void*)7) ) 144 142 PrintS("Zp: Test Passed!"); 145 143 else … … 148 146 149 147 // due to coeffs/ffields.h 150 extern BOOLEAN nfInitChar(coeffs, void*); // GF151 148 struct 152 149 { … … 160 157 param.GFPar_name= (const char*)"Q"; 161 158 162 if( simple(n_GF, nfInitChar,(void*)¶m) )159 if( simple(n_GF, (void*)¶m) ) 163 160 PrintS("GF: Test Passed!"); 164 161 else
Note: See TracChangeset
for help on using the changeset viewer.