Changeset 77bb59 in git for Singular/ipshell.cc
- Timestamp:
- Aug 12, 2011, 7:28:54 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 {
Note: See TracChangeset
for help on using the changeset viewer.