Changeset afdd55 in git for coeffs/numbers.h
- Timestamp:
- May 5, 2010, 3:43:04 PM (14 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/numbers.h
r2336d0 rafdd55 118 118 119 119 120 static inline n_coeffType nField_is(const coeffs r)121 { return r->fieldtype; }122 120 static inline BOOLEAN nField_is_Zp(const coeffs r) 123 { return nField_is(r)==n_Zp; }121 { return getCoeffType(r)==n_Zp; } 124 122 125 123 static 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))); } 127 125 128 126 static inline BOOLEAN nField_is_Q(const coeffs r) 129 { return nField_is(r)==n_Q; }127 { return getCoeffType(r)==n_Q; } 130 128 131 129 static 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); } 133 131 134 132 static inline BOOLEAN nField_is_R(const coeffs r) 135 { return nField_is(r)==n_R; }133 { return getCoeffType(r)==n_R; } 136 134 137 135 static inline BOOLEAN nField_is_GF(const coeffs r) 138 { return nField_is(r)==n_GF; }136 { return getCoeffType(r)==n_GF; } 139 137 140 138 static 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); } 142 140 143 141 static inline BOOLEAN nField_is_Zp_a(const coeffs r) … … 151 149 152 150 static inline BOOLEAN nField_is_long_R(const coeffs r) 153 { return nField_is(r)==n_long_R; }151 { return getCoeffType(r)==n_long_R; } 154 152 155 153 static inline BOOLEAN nField_is_long_C(const coeffs r) 156 { return nField_is(r)==n_long_C; }154 { return getCoeffType(r)==n_long_C; } 157 155 158 156 static inline BOOLEAN nField_has_simple_inverse(const coeffs r)
Note: See TracChangeset
for help on using the changeset viewer.