Changeset 098f98f in git for kernel


Ignore:
Timestamp:
Jan 6, 2010, 3:55:03 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
eaf66fe9969d8b8c2cf369ea94e7616f379a3229
Parents:
b46774f2ffde4294abff59d9fdb51d1914924c72
Message:
IDTYP etc -> ipid.h

git-svn-id: file:///usr/local/Singular/svn/trunk@12409 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/fglm.h

    rb46774 r098f98f  
    8282// if deleteIdeal==FALSE, then nothing happens to sourceIdeal
    8383BOOLEAN
    84 fglmzero( idhdl sourceRingHdl, ideal & sourceIdeal, idhdl destRingHdl, ideal & destideal, BOOLEAN switchBack = TRUE, BOOLEAN deleteIdeal = FALSE );
     84fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destideal, BOOLEAN switchBack = TRUE, BOOLEAN deleteIdeal = FALSE );
    8585
    8686BOOLEAN
  • kernel/fglmzero.cc

    rb46774 r098f98f  
    3030#include "omalloc.h"
    3131#include "kstd1.h" // for kNF (see fglmquot)
    32 #include "intvec.h" 
     32#include "intvec.h"
    3333#include "fglm.h"
    3434#include "fglmvec.h"
     
    593593void
    594594internalCalculateFunctionals( const ideal & theIdeal, idealFunctionals & l,
    595                               fglmSdata & data )
     595                              fglmSdata & data )
    596596{
    597597
     
    663663static BOOLEAN
    664664CalculateFunctionals( const ideal & theIdeal, idealFunctionals & l,
    665                       poly & p, fglmVector & v )
     665                      poly & p, fglmVector & v )
    666666{
    667667    fglmSdata data( theIdeal );
     
    669669    //    STICKYPROT("Calculating vector rep\n");
    670670    v = data.getVectorRep( p );
    671     // if ( v.isZero() ) 
     671    // if ( v.isZero() )
    672672    //   STICKYPROT("vectorrep is 0\n");
    673673    return ( data.state() );
     
    10191019static ideal
    10201020GroebnerViaFunctionals( const idealFunctionals & l,
    1021                         fglmVector iv = fglmVector() )
     1021                        fglmVector iv = fglmVector() )
    10221022// If iv is zero, calculates the groebnerBasis for the ideal which is
    10231023// defined by l.
     
    10391039      initv = iv;
    10401040    }
    1041      
     1041
    10421042    poly one = pOne();
    10431043    data.updateCandidates( one, initv );
     
    11041104    for(i = pVariables; i > 0; i--) varpermutation[pVariables+1-i] = (*iv)[i-1];
    11051105    delete iv;
    1106      
     1106
    11071107    for (i= 1; i <= pVariables; i++ )
    11081108    {
     
    11571157// for a descritption of the parameters see fglm.h
    11581158BOOLEAN
    1159 fglmzero( idhdl sourceRingHdl, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )
     1159fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )
    11601160{
    11611161    idhdl initialRingHdl = currRingHdl;
    11621162    BOOLEAN fglmok;
    11631163
    1164     if ( currRingHdl != sourceRingHdl )
    1165         rSetHdl( sourceRingHdl );
     1164    if ( currRing != sourceRing )
     1165    {
     1166        rChangeCurrRing( sourceRing );
     1167        currRingHdl=NULL;
     1168    }
    11661169    idealFunctionals L( 100, pVariables );
    11671170    fglmok = CalculateFunctionals( sourceIdeal, L );
     
    11691172        idDelete( & sourceIdeal );
    11701173    rSetHdl( destRingHdl );
    1171     if ( fglmok == TRUE ) {
    1172         L.map( IDRING( sourceRingHdl ) );
     1174    if ( fglmok == TRUE )
     1175    {
     1176        L.map( sourceRing );
    11731177        destIdeal= GroebnerViaFunctionals( L );
    11741178    }
  • kernel/misc.cc

    rb46774 r098f98f  
    5757omBin sip_smap_bin = omGetSpecBin(sizeof(sip_smap));
    5858omBin sip_sring_bin = omGetSpecBin(sizeof(sip_sring));
    59 omBin ip_sideal_bin = omGetSpecBin(sizeof(ip_sideal));
    60 omBin ip_sring_bin = omGetSpecBin(sizeof(ip_sring));
    6159
    6260/*0 implementation*/
  • kernel/ring.cc

    rb46774 r098f98f  
    558558  }
    559559#endif
    560   omFreeBin(r, ip_sring_bin);
     560  omFreeBin(r, sip_sring_bin);
    561561}
    562562
     
    13111311    }
    13121312  }
    1313   sum=(ring)omAllocBin(ip_sring_bin);
     1313  sum=(ring)omAllocBin(sip_sring_bin);
    13141314  memcpy(sum,&tmpR,sizeof(ip_sring));
    13151315  rComplete(sum);
     
    15381538  if (r == NULL) return NULL;
    15391539  int i,j;
    1540   ring res=(ring)omAllocBin(ip_sring_bin);
     1540  ring res=(ring)omAllocBin(sip_sring_bin);
    15411541  memset(res,0,sizeof(ip_sring));
    15421542  //memcpy4(res,r,sizeof(ip_sring));
     
    28422842    return r;
    28432843  }
    2844   ring res=(ring)omAlloc0Bin(ip_sring_bin);
     2844  ring res=(ring)omAlloc0Bin(sip_sring_bin);
    28452845  *res = *r;
    28462846
     
    29452945ring rModifyRing_Wp(ring r, int* weights)
    29462946{
    2947   ring res=(ring)omAlloc0Bin(ip_sring_bin);
     2947  ring res=(ring)omAlloc0Bin(sip_sring_bin);
    29482948  *res = *r;
    29492949#ifdef HAVE_PLURAL
     
    30193019      order[1]=ringorder_C;
    30203020    }
    3021     ring res=(ring)omAlloc0Bin(ip_sring_bin);
     3021    ring res=(ring)omAlloc0Bin(sip_sring_bin);
    30223022    *res = *r;
    30233023#ifdef HAVE_PLURAL
     
    30723072  omFree(r->block1);
    30733073  omFree(r->wvhdl);
    3074   omFreeBin(r,ip_sring_bin);
     3074  omFreeBin(r,sip_sring_bin);
    30753075}
    30763076
     
    30833083  omFree(r->wvhdl[0]);
    30843084  omFree(r->wvhdl);
    3085   omFreeBin(r,ip_sring_bin);
     3085  omFreeBin(r,sip_sring_bin);
    30863086}
    30873087
  • kernel/structs.h

    rb46774 r098f98f  
    899899extern struct omBin_s* sip_smap_bin;
    900900extern struct omBin_s* sip_sring_bin;
    901 extern struct omBin_s* ip_sideal_bin;
    902 extern struct omBin_s* ip_sring_bin;
    903901extern struct omBin_s* sleftv_bin;
    904902
     
    936934  int        id_i;
    937935
    938 #define IDNEXT(a)    ((a)->next)
    939 #define IDTYP(a)     ((a)->typ)
    940 #define IDFLAG(a)    ((a)->flag)
    941 #define IDLEV(a)     ((a)->lev)
    942 #define IDID(a)      ((a)->id)
    943 #define IDATTR(a)    ((a)->attribute)
    944 
    945 #define IDINT(a)    ((int)(long)((a)->data.ustring))
    946 #define IDDATA(a)   ((a)->data.ustring)
    947 #define IDRING(a)   ((a)->data.uring)
    948 #define IDINTVEC(a) ((a)->data.iv)
    949 #define IDPOLY(a)   ((a)->data.p)
    950 #define IDBIGINT(a) ((a)->data.n)
    951 #define IDNUMBER(a) ((a)->data.n)
    952 #define IDIDEAL(a)  (((a)->data).uideal)
    953 #define IDMATRIX(a) (((a)->data).umatrix)
    954 #define IDMAP(a)    (((a)->data).umap)
    955 #define IDSTRING(a) ((a)->data.ustring)
    956 #define IDLIST(a)   ((a)->data.l)
    957 #define IDLINK(a)   ((a)->data.li)
    958 #define IDPACKAGE(a) ((a)->data.pack)
    959 #define IDPROC(a)   ((a)->data.pinf)
    960 
    961936  idrec() { memset(this,0,sizeof(*this)); }
    962937  idhdl get(const char * s, int lev);
  • kernel/walkProc.cc

    rb46774 r098f98f  
    5454
    5555WalkState
    56 walkConsistency( idhdl sringHdl, idhdl dringHdl, int * vperm )
     56walkConsistency( ring sring, ring dring, int * vperm )
    5757{
    5858    int k;
    5959    WalkState state= WalkOk;
    60     ring dring = IDRING( dringHdl );
    61     ring sring = IDRING( sringHdl );
    6260
    6361    if ( rChar(sring) != rChar(dring) )
     
    212210
    213211WalkState
    214 fractalWalkConsistency( idhdl sringHdl, idhdl dringHdl, int * vperm )
     212fractalWalkConsistency( ring sring, ring dring, int * vperm )
    215213{
    216214    int k;
    217215    WalkState state= WalkOk;
    218     ring dring = IDRING( dringHdl );
    219     ring sring = IDRING( sringHdl );
    220216
    221217    if ( rChar(sring) != rChar(dring) )
  • kernel/walkProc.h

    rb46774 r098f98f  
    44ideal walkProc(leftv first, leftv second);
    55ideal fractalWalkProc(leftv first, leftv second);
    6 WalkState walkConsistency( idhdl sringHdl, idhdl dringHdl, int * vperm );
    7 WalkState fractalWalkConsistency( idhdl sringHdl, idhdl dringHdl, int * vperm );
     6WalkState walkConsistency( ring sring, ring dring, int * vperm );
     7WalkState fractalWalkConsistency( ring sring, ring dring, int * vperm );
    88#endif
    99
  • kernel/walkSupport.cc

    rb46774 r098f98f  
    10251025  if (r == NULL) return NULL;
    10261026  int i,j;
    1027   ring res=(ring)omAllocBin(ip_sring_bin);
     1027  ring res=(ring)omAllocBin(sip_sring_bin);
    10281028
    10291029  memcpy4(res,r,sizeof(ip_sring));
Note: See TracChangeset for help on using the changeset viewer.