Changeset a6a239 in git for Singular/structs.h


Ignore:
Timestamp:
Sep 12, 2000, 6:01:23 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
fe7bd4983d0c4322efb17bf36dbf3b28109b9608
Parents:
47e83c37a0601dd5b7dadba83e9c5b04d7efeaf1
Message:
* new implementation of polys


git-svn-id: file:///usr/local/Singular/svn/trunk@4580 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/structs.h

    r47e83c3 ra6a239  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: structs.h,v 1.35 2000-08-24 14:42:46 obachman Exp $ */
     6/* $Id: structs.h,v 1.36 2000-09-12 16:01:17 obachman Exp $ */
    77/*
    88* ABSTRACT
     
    2222   but configure dislikes it */
    2323
    24 #ifdef HAVE_SHIFTED_EXPONENTS
    25 /* Define the type of the exponents to be used in monomials */
    26 #undef EXPONENT_TYPE
    27 #define EXPONENT_TYPE long
    28 /* Define the size of exponent */
    29 #undef SIZEOF_EXPONENT
    30 #define SIZEOF_EXPONENT SIZEOF_LONG
    31 #endif
    32 
    33 typedef EXPONENT_TYPE Exponent_t;
     24
     25typedef long Exponent_t;
     26typedef unsigned long Order_t;
    3427
    3528enum tHomog
     
    259252  ideal      qideal; /* extension to the ring structure: qring */
    260253
    261 #ifdef HAVE_SHIFTED_EXPONENTS
    262254  unsigned long bitmask;
    263 #endif
    264255
    265256  int      *VarOffset;
    266   /* mapping exp. of var(i) -> p->exp.l */
     257  /* mapping exp. of var(i) -> p->exp */
    267258#ifdef HAVE_SHIFTED_EXPONENTS
    268259  /* mapping exp. of var(i) ->
    269   p->exp.l[(VarOffset[i] & 0xffffff)] >> (VarOffset[i] >> 24) & bitmask */
     260  p->exp[(VarOffset[i] & 0xffffff)] >> (VarOffset[i] >> 24) & bitmask */
    270261#else
    271262  /* mapping exp. of var(i) -> p->exp.e[VarOffset[i]] */
     
    286277  // contains component, but no weight fields in E */
    287278  // better: pVarLowIndexE / pVarLowIndexL
    288   #ifdef LONG_MONOMS
    289   short      pDivLow;
    290   short      pDivHigh; /* the same as pVarLow..pVarHigh, */
    291                        /* but as index in the 'long' field */
    292   #endif
    293   #ifndef HAVE_SHIFTED_EXPONENTS
    294   short      pCompLowIndex; // better: use pCompareLowIndexL
    295   #endif
    296   short      pCompHighIndex; /* use p->exp.l[pCompLowIndex..ppCompHighIndex] */
     279  short      pCompHighIndex; /* use p->exp[pCompLowIndex..ppCompHighIndex] */
    297280                             /* for comparing monomials */
    298281  short      pCompLSize; // pCompHighIndex - pCompLowIndex + 1
    299282
    300283  short      pCompIndex; /* p->exp.e[pCompIndex] is the component */
    301   short      pOrdIndex; /* p->exp.l[pOrdIndex] is pGetOrd(p) */
     284  short      pOrdIndex; /* p->exp[pOrdIndex] is pGetOrd(p) */
    302285
    303286  short      ExpESize; /* size of exponent vector in Exponent_t */
Note: See TracChangeset for help on using the changeset viewer.