Changeset f0a8c59 in git


Ignore:
Timestamp:
Jul 19, 2011, 5:55:43 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
99cfa5e3566af5edf083913e4d9a15e16196be67
Parents:
f478f5beee78cd910479115b993cc9e7b02b82a8
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-19 17:55:43+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:52:42+01:00
Message:
FIX: pNorm, was a macro => wrong method name... :/
FIX: nGcd may need currRing or another ring: moved to polys/polys.h for now
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/kInline.h

    rf478f5b rf0a8c59  
    1414#if !defined(NO_KINLINE) || defined(KUTIL_CC)
    1515
     16#include <omalloc/omalloc.h>
     17#include <misc/options.h>
     18
    1619#include <polys/monomials/p_polys.h>
    17 #include <polys/polys.h>
    1820#include <polys/templates/p_Procs.h>
    1921#include <polys/kbuckets.h>
    20 #include <omalloc/omalloc.h>
    21 #include <misc/options.h>
     22
     23#include <polys/polys.h>
     24
    2225
    2326#define HAVE_TAIL_BIN
     
    419422
    420423//extern void pCleardenom(poly p);
    421 extern void pNorm(poly p);
     424// extern void pNorm(poly p);
     425
    422426// manipulations
    423427KINLINE void  sTObject::pCleardenom()
     
    467471}
    468472
    469 KINLINE void  sTObject::pNorm()
     473KINLINE void sTObject::pNorm() // pNorm seems to be a _bad_ method name...
    470474{
    471475  assume(p != NULL);
    472476  if (! is_normalized)
    473477  {
    474     ::pNorm(p);
     478    p_Norm(p, currRing);
    475479    if (t_p != NULL)
    476480      pSetCoeff0(t_p, pGetCoeff(p));
  • libpolys/coeffs/numbers.h

    rf478f5b rf0a8c59  
    3131#define nNormalize(n)     n_Normalize(n,currRing->cf)
    3232
    33 inline number nGcd(number a, number b, const ring r = currRing) { return n_Gcd(a, b, r->cf); }
    3433inline number nGcd(number a, number b, const coeffs cf) { return n_Gcd(a, b, cf); }
    3534
  • libpolys/polys/polys.h

    rf478f5b rf0a8c59  
    1313extern ring currRing;
    1414extern void rChangeCurrRing(ring r);
     15
     16#include <coeffs/numbers.h>
     17inline number nGcd(number a, number b, const ring r = currRing) { return n_Gcd(a, b, r->cf); }
    1518
    1619/***************************************************************
     
    319322void      pSetPolyComp(poly p, int comp);
    320323#define   pDeleteComp(p,k) p_DeleteComp(p,k,currRing)
    321 #define   pNorm(p) p_Norm(p,currRing)
     324
     325inline void pNorm(poly p, const ring R = currRing){ p_Norm(p, R); }
     326
     327
    322328#define   pSubst(p,n,e) p_Subst(p,n.e,currRing)
    323329#define   ppJet(p,m) pp_Jet(p,m,currRing)
Note: See TracChangeset for help on using the changeset viewer.