- Timestamp:
- May 25, 2011, 2:42:41 PM (12 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- cdf22a94dc67efa0ec23a42eb27722000f1e3645
- Parents:
- 141342d81455232f75bdb4b9179a8cd396939ba4
- git-author:
- Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-05-25 14:42:41+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:52+01:00
- Location:
- libpolys/coeffs
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/coeffs.h
r141342 rf0797c 70 70 coeffs next; 71 71 unsigned int ringtype; /* =0 => coefficient field, 72 !=0 => coeffs from one of the rings */ 72 !=0 => coeffs from one of the rings: 73 =1 => Z/2^mZ 74 =2 => Z/nZ, n not a prime 75 =3 => Z/p^mZ 76 =4 => Z */ 73 77 74 78 // general properties: … … 213 217 unsigned long mod2mMask; 214 218 #endif 215 int ch; /* characteristic, rInit */ 219 int ch; /* characteristic, rInit 220 PLEASE DOCUMENT HERE when this will be negative! */ 216 221 217 222 short float_len; /* additional char-flags, rInit */ … … 452 457 { 453 458 assume(r != NULL); 454 printf("###### %d, %d\n", r->ringtype, r->ch);455 printf("###### %d, %d, %d\n", getCoeffType(r), n_algExt, n_transExt);456 459 return (r->ringtype == 0) && 457 460 ((getCoeffType(r)==n_algExt) || (getCoeffType(r)==n_transExt)) && -
libpolys/coeffs/modulop.cc
r141342 rf0797c 408 408 // the variables: 409 409 r->nNULL = (number)0; 410 //r->type = n_Zp;410 r->type = n_Zp; 411 411 r->ch = c; 412 412 r->has_simple_Alloc=TRUE; -
libpolys/coeffs/rintegers.cc
r141342 rf0797c 426 426 r->nNULL = 0; 427 427 r->type = n_Z; 428 r-> ch = 0;428 r->ringtype = 4; 429 429 r->has_simple_Alloc=FALSE; 430 430 r->has_simple_Inverse=FALSE; -
libpolys/coeffs/rmodulo2m.cc
r141342 rf0797c 47 47 r->cfKillChar = ndKillChar; /* dummy*/ 48 48 r->nCoeffIsEqual = nr2mCoeffIsEqual; 49 50 r->ringtype = 1; 51 r->type = n_Z2m; 49 52 50 53 r->cfInit = nr2mInit; -
libpolys/coeffs/rmodulon.cc
r141342 rf0797c 47 47 48 48 nrnInitExp((int)(long)(p), r); 49 r->ringtype = 2; 50 r->type = n_Zn; 49 51 50 52 r->cfInit = nrnInit; … … 488 490 } 489 491 // Some type of Z/n ring / field 490 if (nCoeff_is_Ring_ModN(src) || nCoeff_is_Ring_PtoM(src) || nCoeff_is_Ring_2toM(src) || nCoeff_is_Zp(src)) 492 if (nCoeff_is_Ring_ModN(src) || nCoeff_is_Ring_PtoM(src) || 493 nCoeff_is_Ring_2toM(src) || nCoeff_is_Zp(src)) 491 494 { 492 495 if ( (src->ringtype > 0)
Note: See TracChangeset
for help on using the changeset viewer.