Changeset 7f10dc in git


Ignore:
Timestamp:
Sep 27, 2011, 2:33:33 PM (13 years ago)
Author:
Burcin Erocal <burcin@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
331fd0c201d231df280ec231efdbbc5b3ac84369
Parents:
1577ebd5335ce968d500335fe1900d966692ef82
git-author:
Burcin Erocal <burcin@erocal.org>2011-09-27 14:33:33+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:37+01:00
Message:
Fix redirection of n_* methods which take ring arguments to coeff arguments.

Some methods used to call the same n_ method without accessing the
coeffs member with r->cf.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/coeffrings.h

    r1577ebd r7f10dc  
    2323static inline BOOLEAN n_GreaterZero(number n, const ring r){ return n_GreaterZero(n,r->cf); }
    2424static inline number n_Init(int i,       const ring r){ return n_Init(i,r->cf); }
    25 static inline number n_Neg(number n,     const ring r){ return n_Neg(n,r); }
    26 static inline number n_Invers(number a,  const ring r){ return n_Invers(a,r); }
    27 static inline int    n_Size(number n,    const ring r){ return n_Size(n,r); }
    28 static inline void   n_Normalize(number& n, const ring r){ return n_Normalize(n,r); }
    29 static inline void   n_Write(number& n,  const ring r){ return n_Write(n,r); }
     25static inline number n_Neg(number n,     const ring r){ return n_Neg(n,r->cf); }
     26static inline number n_Invers(number a,  const ring r){ return n_Invers(a,r->cf); }
     27static inline int    n_Size(number n,    const ring r){ return n_Size(n,r->cf); }
     28static inline void   n_Normalize(number& n, const ring r){ return n_Normalize(n,r->cf); }
     29static inline void   n_Write(number& n,  const ring r){ return n_Write(n,r->cf); }
    3030static inline number n_GetDenom(number& n, const ring r){ return n_GetDenom(n, r->cf);}
    3131static inline number n_GetNumerator(number& n, const ring r){ return n_GetNumerator(n, r->cf);}
    32 static inline void   n_Power(number a, int b, number *res, const ring r){ n_Power(a,b,res,r); }
     32static inline void   n_Power(number a, int b, number *res, const ring r){ n_Power(a,b,res,r->cf); }
    3333static inline number n_Mult(number a, number b, const ring r){ return n_Mult(a, b, r->cf);}
    34 static inline void n_InpMult(number &a, number b, const ring r){ n_InpMult(a,b,r); }
     34static inline void n_InpMult(number &a, number b, const ring r){ n_InpMult(a,b,r->cf); }
    3535static inline number n_Sub(number a, number b, const ring r){ return n_Sub(a, b, r->cf);}
    3636static inline number n_Add(number a, number b, const ring r){ return n_Add(a, b, r->cf);}
Note: See TracChangeset for help on using the changeset viewer.