Changeset 47bc1c in git for Singular/structs.h


Ignore:
Timestamp:
Oct 23, 2000, 2:02:23 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
e6ad3ebfbb2c2611080bdaeb70701b50c2ef9444
Parents:
cebf9e609bfa59b57202a95a5f952cdf6c85e7fa
Message:
* almost get rid off p_SetGlobals
* pFDeg, pLDeg ring dependent


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

Legend:

Unmodified
Added
Removed
  • Singular/structs.h

    rcebf9e r47bc1c  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: structs.h,v 1.39 2000-10-19 15:00:22 obachman Exp $ */
     6/* $Id: structs.h,v 1.40 2000-10-23 12:02:20 obachman Exp $ */
    77/*
    88* ABSTRACT
     
    153153typedef struct _scmdnames cmdnames;
    154154
     155/* the function pointer types */
     156typedef number (*numberfunc)(number a,number b);
     157
     158extern ring      currRing;
     159typedef int     (*pLDegProc)(poly p, int *length, ring r= currRing);
     160typedef int     (*pFDegProc)(poly p, ring r = currRing);
     161
    155162typedef enum
    156163{
     
    248255
    249256  // is NULL for lp or N == 1, otherwise non-NULL (with OrdSize > 0 entries) */
    250   sro_ord *  typ;   /* array of orderings + sizes, OrdSize entries */
     257  sro_ord*   typ;   /* array of orderings + sizes, OrdSize entries */
    251258
    252259  ideal      qideal; /* extension to the ring structure: qring */
     
    254261
    255262  int      *VarOffset;
    256   /* mapping exp. of var(i) -> p->exp */
    257   /* mapping exp. of var(i) ->
    258   p->exp[(VarOffset[i] & 0xffffff)] >> (VarOffset[i] >> 24) & bitmask */
     263  int*     firstwv;
    259264
    260265  struct omBin_s*   PolyBin; /* Bin from where monoms are allocated */
     
    267272  short      OrdSgn; /* 1 for polynomial rings, -1 otherwise */
    268273
     274  short     firstBlockEnds;
     275 
     276
    269277  BOOLEAN   VectorOut;
    270278  BOOLEAN   ShortOut;
    271279  BOOLEAN   CanShortOut;
     280  BOOLEAN   LexOrder;
     281  // TRUE if the monomial ordering has polynomial and power series blocks
     282  BOOLEAN   MixedOrder;
     283  // 1 for lex ordering (except ls), -1 otherwise
     284  BOOLEAN   ComponentOrder;
     285 
    272286 
    273287  // what follows below here should be set by rComplete, _only_
     
    298312     if <  0, long vars in exp vector are not consecutive */
    299313  short     VarL_LowIndex;
     314 
     315  /* if this is > 0, then NegWeightL_Offset[0..size_1] is index of longs in
     316   ExpVector whose values need an offset due to negative weights */
     317  short     NegWeightL_Size;
     318  /* array of NegWeigtL_Size indicies */
     319  int*      NegWeightL_Offset;
     320 
    300321  /* array of size VarL_Size,
    301322     VarL_Offset[i] gets i-th long var in exp vector */
     
    307328  unsigned long divmask;
    308329
    309   p_Procs_s* p_Procs;
     330  p_Procs_s*    p_Procs;
     331  pFDegProc     pFDeg;
     332  pLDegProc     pLDeg;
    310333};
    311334
     
    329352#endif /* __cplusplus */
    330353
    331 /* the function pointer types */
    332 typedef number (*numberfunc)(number a,number b);
    333 
    334 typedef void    (*pSetmProc)(poly p);
    335 typedef int     (*pLDegProc)(poly p, int *length);
    336 typedef int     (*pFDegProc)(poly p);
    337 typedef int     (*pCompProc)(poly p1, poly p2);
    338 
    339 extern ring      currRing;
     354
    340355
    341356/*
     
    344359
    345360/* 7.1 C-routines : */
     361
    346362
    347363#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.