Changeset 77bb59 in git for Singular/ipshell.cc


Ignore:
Timestamp:
Aug 12, 2011, 7:28:54 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
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
Message:
CHG: minor changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rd914cf0 r77bb59  
    66* ABSTRACT:
    77*/
    8 
    9 #include <math.h>
     8#include <kernel/mod2.h>
     9#include <misc/auxiliary.h>
     10
    1011
    1112#include <misc/options.h>
    12 #include <misc/auxiliary.h>
     13#include <misc/mylimits.h>
     14
    1315#ifdef HAVE_FACTORY
    1416#define SI_DONT_HAVE_GLOBAL_VARS
     
    1719
    1820#include <Singular/maps_ip.h>
    19 #include <kernel/mod2.h>
    2021#include <Singular/tok.h>
    2122#include <misc/options.h>
     
    4647#include <kernel/splist.h>
    4748#include <kernel/spectrum.h>
    48 #include <coeffs/gnumpfl.h>
     49////// #include <coeffs/gnumpfl.h>
    4950//#include <kernel/mpr_base.h>
    50 #include <coeffs/ffields.h>
     51////// #include <coeffs/ffields.h>
    5152#include <polys/clapsing.h>
    5253#include <kernel/hutil.h>
     
    5556#include <polys/ext_fields/algext.h>
    5657#include <coeffs/mpr_complex.h>
    57 #include <coeffs/longrat.h>
     58////// #include <coeffs/longrat.h>
    5859#include <numeric/mpr_base.h>
    5960#include <numeric/mpr_numeric.h>
     61
     62#include <math.h>
    6063
    6164// define this if you want to use the fast_map routine for mapping ideals
     
    659662    //             rPar(IDRING(r)),
    660663    //             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//      {
    669673        Werror("can not map from ground field of %s to current ground field",
    670674          theMap->preimage);
    671675        return NULL;
    672       }
     676//      }
    673677    }
    674678    if (IDELEMS(theMap)<IDRING(r)->N)
     
    48814885}
    48824886
     4887const short MAX_SHORT = SHRT_MAX; // (1 << (sizeof(short)*8)) - 1;
     4888
    48834889////////////////////
    48844890//
     
    51035109  {
    51045110    int l=rv->listLength();
    5105 #if SIZEOF_SHORT == 2
    5106 #define MAX_SHORT 0x7fff
    5107 #endif
     5111
    51085112    if (l>MAX_SHORT)
    51095113    {
Note: See TracChangeset for help on using the changeset viewer.