Changeset af66d6 in git for libpolys/polys/monomials


Ignore:
Timestamp:
Aug 3, 2011, 7:36:56 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
Location:
libpolys/polys/monomials
Files:
2 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/////////////////////////////////////////////////////////////////////////////
  • libpolys/polys/monomials/ring.h

    rf218a7 raf66d6  
    380380
    381381// The following are for LaScala3 only!
    382 #ifdef PDEBUG
    383 #define rChangeSComps(c,s,l) rDBChangeSComps(c,s,l)
    384 #define rGetSComps(c,s,l) rDBGetSComps(c,s,l)
    385 void rDBChangeSComps(int* currComponents,
    386                      long* currShiftedComponents,
    387                      int length,
    388                      ring r);
    389 void rDBGetSComps(int** currComponents,
    390                   long** currShiftedComponents,
    391                   int *length,
    392                   ring r);
    393 #else
    394 #define rChangeSComps(c,s,l) rNChangeSComps(c,s)
    395 #define rGetSComps(c,s,l) rNGetSComps(c,s)
    396 #endif
    397 
    398 void rNChangeSComps(int* currComponents, long* currShiftedComponents, ring r);
    399 void rNGetSComps(int** currComponents, long** currShiftedComponents, ring r);
     382void rChangeSComps(int* currComponents, long* currShiftedComponents, int length, ring r);
     383void rGetSComps(int** currComponents, long** currShiftedComponents, int *length, ring r);
     384
     385
    400386
    401387//idhdl  rFindHdl(ring r, idhdl n, idhdl w);
Note: See TracChangeset for help on using the changeset viewer.