Changeset 949e57 in git for polys/polys.h


Ignore:
Timestamp:
Nov 22, 2010, 4:41:43 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5bc2461738edac589c7bb7fe19322b1ed8897029
Parents:
5c39a93f6a52a5a83fcc9028a16d640959005ca5
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-11-22 16:41:43+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:41+01:00
Message:
pSetDegProcs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • polys/polys.h

    r5c39a9 r949e57  
    230230
    231231
    232 /*-------------ring management:----------------------*/
    233 
    234 // resets the pFDeg and pLDeg: if pLDeg is not given, it is
    235 // set to currRing->pLDegOrig, i.e. to the respective LDegProc which
    236 // only uses pFDeg (and not pDeg, or pTotalDegree, etc).
    237 // If you use this, make sure your procs does not make any assumptions
    238 // on ordering and/or OrdIndex -- otherwise they might return wrong results
    239 // on strat->tailRing
    240 extern void pSetDegProcs(pFDegProc new_FDeg, pLDegProc new_lDeg = NULL);
    241 // restores pFDeg and pLDeg:
    242 extern void pRestoreDegProcs(pFDegProc old_FDeg, pLDegProc old_lDeg);
    243 
    244232/*-----------the ordering of monomials:-------------*/
    245233#define pSetm(p)    p_Setm(p, currRing)
     
    252240 *
    253241 ***************************************************************/
    254 extern pLDegProc pLDeg;
    255 extern pFDegProc pFDeg;
     242static inline long  pFDeg(const poly p, const ring r)  { return r->pFDeg(p,r); }
     243static inline long  pLDeg(const poly p,  int *l, const ring r)  { return r->pLDeg(p,l,r); }
    256244#define pWeight(c) p_Weight(c,currRing)
    257245#define pDeg(p)    p_Deg(p,currRing)
Note: See TracChangeset for help on using the changeset viewer.