Changeset afdd55 in git
- Timestamp:
- May 5, 2010, 3:43:04 PM (13 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- 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
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r2336d0 rafdd55 6 6 *.exe 7 7 depend 8 tags 8 9 Makefile 9 10 GNUMakefile -
coeffs/coeffs.h
r2336d0 rafdd55 110 110 111 111 coeffs next; 112 n_coeffType fieldtype;113 112 unsigned int ringtype; /* 0 => coefficient field, 1 => coeffs from Z/2^m */ 114 113 -
coeffs/modulop.cc
r2336d0 rafdd55 361 361 #endif 362 362 } 363 r->type=n_Zp; 364 r->cfInitChar=npInitChar; 363 365 r->cfKillChar=npKillChar; 364 366 r->cfSetChar=npSetChar; 365 367 npSetChar(r); 366 r->cfSetChar=NULL;367 368 r->cfInit = npInit; 368 369 r->nInit_bigint=npMap0; -
coeffs/numbers.cc
r2336d0 rafdd55 266 266 n->nGetUnit = (nMapFunc)NULL; 267 267 #endif 268 #if 0 /*vertagt*/ 268 269 if (nField_is_Extension(r)) 269 270 { … … 305 306 #endif 306 307 } 308 #endif 307 309 #ifdef HAVE_RINGS 308 310 /* -------------- Z/2^m ----------------------- */ … … 321 323 n->cfInit = nrzInit; 322 324 n->cfDelete= nrzDelete; 323 n-> nCopy = nrzCopy;325 n->cfCopy = nrzCopy; 324 326 n->cfCopy = cfrzCopy; 325 327 n->nSize = nrzSize; … … 374 376 n->nNeg = nlNeg; 375 377 n->nInvers= nlInvers; 376 n-> nCopy = nlCopy;378 n->cfCopy = nlCopy; 377 379 n->nGreater = nlGreater; 378 380 n->nEqual = nlEqual; … … 454 456 n->nNeg = nfNeg; 455 457 n->nInvers= nfInvers; 456 n-> nCopy = ndCopy;458 n->cfCopy = ndCopy; 457 459 n->nGreater = nfGreater; 458 460 n->nEqual = nfEqual; … … 484 486 n->nNeg = nrNeg; 485 487 n->nInvers= nrInvers; 486 n-> nCopy = ndCopy;488 n->cfCopy = ndCopy; 487 489 n->nGreater = nrGreater; 488 490 n->nEqual = nrEqual; … … 514 516 n->nNeg = ngfNeg; 515 517 n->nInvers= ngfInvers; 516 n-> nCopy = ngfCopy;518 n->cfCopy = ngfCopy; 517 519 n->nGreater = ngfGreater; 518 520 n->nEqual = ngfEqual; … … 545 547 n->nNeg = ngcNeg; 546 548 n->nInvers= ngcInvers; 547 n-> nCopy = ngcCopy;549 n->cfCopy = ngcCopy; 548 550 n->nGreater = ngcGreater; 549 551 n->nEqual = ngcEqual; … … 571 573 #endif 572 574 #ifdef HAVE_RINGS 573 if (n->nGetUnit==(nMapFunc)NULL) n->nGetUnit=n-> nCopy;575 if (n->nGetUnit==(nMapFunc)NULL) n->nGetUnit=n->cfCopy; 574 576 #endif 575 577 if (!errorreported) -
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.