Changeset 8f8b75 in git
- Timestamp:
- May 11, 2010, 1:53:49 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 7a95e9169a993d42f4a8184742b7ffbc5725a115
- Parents:
- f945d2b0105e7e765829a443b2044990186c9f2e
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-05-11 13:53:49+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:52:54+01:00
- Location:
- coeffs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/coeffs.h
rf945d2b r8f8b75 46 46 coeffs next; 47 47 unsigned int ringtype; /* 0 => coefficient field, 1 => coeffs from Z/2^m */ 48 49 // general properties: 50 BOOLEAN has_simple_Alloc; /* TRUE, if nNew/nDelete are dummies */ 51 BOOLEAN has_simple_Inverse; /* TRUE, if nInvers is cheap */ 52 53 // tests for numbers.cc: 54 BOOLEAN (*nCoeffIsEqual)(const coeffs r, n_coeffType n, int parameter); 48 55 49 56 // the union stuff -
coeffs/numbers.h
rf945d2b r8f8b75 52 52 53 53 #define n_New(n, r) nNew(n) 54 55 /* variables */56 extern unsigned short fftable[];57 54 58 55 /* prototypes */ … … 162 159 163 160 static inline BOOLEAN nField_has_simple_inverse(const coeffs r) 164 /* { return (r->ch>1) || (r->ch== -1); } *//* Z/p, GF(p,n), R, long_R, long_C*/ 165 #ifdef HAVE_RINGS 166 { return (r->ringtype > 0) || (r->ch>1) || ((r->ch== -1) && (r->float_len < 10)); } /* Z/2^n, Z/p, GF(p,n), R, long_R, long_C*/ 167 #else 168 { return (r->ch>1) || ((r->ch== -1) && (r->float_len < 10)); } /* Z/p, GF(p,n), R, long_R, long_C*/ 169 #endif 161 { return r->has_simple_Inverse; } 162 /* Z/2^n, Z/p, GF(p,n), R, long_R, long_C*/ 170 163 171 164 static inline BOOLEAN nField_has_simple_Alloc(const coeffs r) 172 { return (nField_is_Zp(r) 173 || nField_is_GF(r) 174 #ifdef HAVE_RINGS 175 || nField_is_Ring_2toM(r) 176 #endif 177 || nField_is_R(r)); 178 } 179 /* Z/p, GF(p,n), R: nCopy, nNew, nDelete are dummies*/ 165 { return r->has_simple_Alloc; } 166 /* Z/p, GF(p,n), R, Ring_2toM: nCopy, nNew, nDelete are dummies*/ 180 167 181 168 static inline BOOLEAN nField_is_Extension(const coeffs r) 182 169 { return (nField_is_Q_a(r)) || (nField_is_Zp_a(r)); } /* Z/p(a) and Q(a)*/ 183 170 184 171 typedef void (*cfInitCharProc)(coeffs, int); 172 n_coeffType nRegister(n_coeffType n, cfInitCharProc p); 185 173 186 174
Note: See TracChangeset
for help on using the changeset viewer.