Ignore:
Timestamp:
Aug 3, 2011, 7:36:56 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
1e872a8ed7451934142b28236ec124f6235b5679
Parents:
f218a7daf5f60792a940256fb8358b13d4d85ef3
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-03 19:36:56+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:14:22+01:00
Message:
FIX: most Syzygy-related (e.g. *Comps) functions need a ring now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    rf218a7 raf66d6  
    42044204* change the block to reflect the sequence given by appending v
    42054205*/
    4206 
     4206static inline void rNChangeSComps(int* currComponents, long* currShiftedComponents, ring r)
     4207{
     4208  assume(r->typ[1].ord_typ == ro_syzcomp);
     4209
     4210  r->typ[1].data.syzcomp.ShiftedComponents = currShiftedComponents;
     4211  r->typ[1].data.syzcomp.Components = currComponents;
     4212}
     4213
     4214static inline void rNGetSComps(int** currComponents, long** currShiftedComponents, ring r)
     4215{
     4216  assume(r->typ[1].ord_typ == ro_syzcomp);
     4217
     4218  *currShiftedComponents = r->typ[1].data.syzcomp.ShiftedComponents;
     4219  *currComponents =   r->typ[1].data.syzcomp.Components;
     4220}
    42074221#ifdef PDEBUG
    4208 void rDBChangeSComps(int* currComponents,
     4222static inline void rDBChangeSComps(int* currComponents,
    42094223                     long* currShiftedComponents,
    42104224                     int length,
     
    42164230  rNChangeSComps( currComponents, currShiftedComponents, r);
    42174231}
    4218 void rDBGetSComps(int** currComponents,
     4232static inline void rDBGetSComps(int** currComponents,
    42194233                 long** currShiftedComponents,
    42204234                 int *length,
     
    42284242#endif
    42294243
    4230 void rNChangeSComps(int* currComponents, long* currShiftedComponents, ring r)
    4231 {
    4232   assume(r->typ[1].ord_typ == ro_syzcomp);
    4233 
    4234   r->typ[1].data.syzcomp.ShiftedComponents = currShiftedComponents;
    4235   r->typ[1].data.syzcomp.Components = currComponents;
    4236 }
    4237 
    4238 void rNGetSComps(int** currComponents, long** currShiftedComponents, ring r)
    4239 {
    4240   assume(r->typ[1].ord_typ == ro_syzcomp);
    4241 
    4242   *currShiftedComponents = r->typ[1].data.syzcomp.ShiftedComponents;
    4243   *currComponents =   r->typ[1].data.syzcomp.Components;
    4244 }
     4244void rChangeSComps(int* currComponents, long* currShiftedComponents, int length, ring r)
     4245{
     4246#ifdef PDEBUG
     4247   rDBChangeSComps(currComponents, currShiftedComponents, length, r);
     4248#else
     4249   rNChangeSComps(currComponents, currShiftedComponents, r);
     4250#endif
     4251}
     4252
     4253void rGetSComps(int** currComponents, long** currShiftedComponents, int *length, ring r)
     4254{
     4255#ifdef PDEBUG
     4256   rDBGetSComps(currComponents, currShiftedComponents, length, r);
     4257#else
     4258   rNGetSComps(currComponents, currShiftedComponents, r);
     4259#endif
     4260}
     4261
    42454262
    42464263/////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.