Changeset afdd55 in git for coeffs/numbers.h


Ignore:
Timestamp:
May 5, 2010, 3:43:04 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
81bff55bd91793d5286706a40319145c80986141
Parents:
2336d0a674d92415a0e20e0b4abf6b1a96ab56e2
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-05-05 15:43:04+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:51:39+01:00
Message:
nField_is -> getCoeffType
File:
1 edited

Legend:

Unmodified
Added
Removed
  • coeffs/numbers.h

    r2336d0 rafdd55  
    118118
    119119
    120 static inline n_coeffType nField_is(const coeffs r)
    121 { return r->fieldtype; }
    122120static inline BOOLEAN nField_is_Zp(const coeffs r)
    123 { return nField_is(r)==n_Zp; }
     121{ return getCoeffType(r)==n_Zp; }
    124122
    125123static inline BOOLEAN nField_is_Zp(const coeffs r, int p)
    126 { return (nField_is_Zp(r)  && (r->ch == ABS(p))); }
     124{ return (getCoeffType(r)  && (r->ch == ABS(p))); }
    127125
    128126static inline BOOLEAN nField_is_Q(const coeffs r)
    129 { return nField_is(r)==n_Q; }
     127{ return getCoeffType(r)==n_Q; }
    130128
    131129static inline BOOLEAN nField_is_numeric(const coeffs r) /* R, long R, long C */
    132 {  return (nField_is(r)==n_R) || (nField_is(r)==n_long_R) || (nField_is(r)==n_long_C); }
     130{  return (getCoeffType(r)==n_R) || (getCoeffType(r)==n_long_R) || (getCoeffType(r)==n_long_C); }
    133131
    134132static inline BOOLEAN nField_is_R(const coeffs r)
    135 { return nField_is(r)==n_R; }
     133{ return getCoeffType(r)==n_R; }
    136134
    137135static inline BOOLEAN nField_is_GF(const coeffs r)
    138 { return nField_is(r)==n_GF; }
     136{ return getCoeffType(r)==n_GF; }
    139137
    140138static inline BOOLEAN nField_is_GF(const coeffs r, int q)
    141 { return (nField_is(r)==n_GF) && (r->ch == q); }
     139{ return (getCoeffType(r)==n_GF) && (r->ch == q); }
    142140
    143141static inline BOOLEAN nField_is_Zp_a(const coeffs r)
     
    151149
    152150static inline BOOLEAN nField_is_long_R(const coeffs r)
    153 { return nField_is(r)==n_long_R; }
     151{ return getCoeffType(r)==n_long_R; }
    154152
    155153static inline BOOLEAN nField_is_long_C(const coeffs r)
    156 { return nField_is(r)==n_long_C; }
     154{ return getCoeffType(r)==n_long_C; }
    157155
    158156static inline BOOLEAN nField_has_simple_inverse(const coeffs r)
Note: See TracChangeset for help on using the changeset viewer.